<commit_before>Grammar:	DataElement 5.0
Namespace:	onco.core
Description:	"Oncology data elements that broadly apply to most cancer cases."
Uses:  		shr.core

CodeSystem:     SCT = http://snomed.info/sct
CodeSystem:     LNC = http://loinc.org
CodeSystem:	    MTH = http://ncimeta.nci.nih.gov
CodeSystem:     UCUM = http://unitsofmeasure.org

Abstract Element:	CancerCondition
Based on:		Condition
Description:	"Abstract class for describing a primary or secondary metastatic neoplastic diseases."
				PersonInformationSource is type PractitionerInformationSource
0..1            HistologyMorphologyBehavior
				Category is SCT#64572001 "Disease"
				BodyLocation.LocationCode should be from CancerBodyLocationVS
0..0            Severity

	Element:		HistologyMorphologyBehavior
	Description:	"A description of the morphologic and behavioral characteristics of the cancer."
	Value:			CodeableConcept should be from HistologyMorphologyBehaviorVS

	Element:	PractitionerInformationSource
	Based on:	PersonInformationSource
	Description:	"The information comes from a practitioner who asserts the condition."
	Value:		ref(Practitioner)

EntryElement:   PrimaryCancerCondition
Based on:	    CancerCondition
Description:    "Records the history of the primary cancer condition, in which abnormal cells divide without control and can invade nearby tissues."
                Code from PrimaryCancerDisorderVS if covered
  	            StageInformation.StageDetail value is type ref(CancerStageGroup)
0..1			BodyLocation

EntryElement:   SecondaryCancerCondition
Based on:       CancerCondition
Description:    "Records the history of secondary neoplasms, including location(s) and the date of onset of metastases. A secondary cancer results from the spread (metastasization) of cancer from its original site."
				Code from SecondaryCancerDisorderVS if covered
0..1			ref(PrimaryCancerCondition)
0..0			StageInformation

/*
EntryElement:   CancerHistologicType  // Morphology ICD-O-3
// MK - PLEASE EXPLAIN COMMENT:  did not use precoordinated codes because only available for clinical and pathologic. 
Based on:       SimpleCodedLaboratoryObservation<commit_msg>Allow multiple body locations for Primary Cancer Condition<commit_after>Grammar:	DataElement 5.0
Namespace:	onco.core
Description:	"Oncology data elements that broadly apply to most cancer cases."
Uses:  		shr.core

CodeSystem:     SCT = http://snomed.info/sct
CodeSystem:     LNC = http://loinc.org
CodeSystem:	    MTH = http://ncimeta.nci.nih.gov
CodeSystem:     UCUM = http://unitsofmeasure.org

Abstract Element:	CancerCondition
Based on:		Condition
Description:	"Abstract class for describing a primary or secondary metastatic neoplastic diseases."
				PersonInformationSource is type PractitionerInformationSource
0..1            HistologyMorphologyBehavior
				Category is SCT#64572001 "Disease"
				BodyLocation.LocationCode should be from CancerBodyLocationVS
0..0            Severity

	Element:		HistologyMorphologyBehavior
	Description:	"A description of the morphologic and behavioral characteristics of the cancer."
	Value:			CodeableConcept should be from HistologyMorphologyBehaviorVS

	Element:	PractitionerInformationSource
	Based on:	PersonInformationSource
	Description:	"The information comes from a practitioner who asserts the condition."
	Value:		ref(Practitioner)

EntryElement:   PrimaryCancerCondition
Based on:	    CancerCondition
Description:    "Records the history of the primary cancer condition, in which abnormal cells divide without control and can invade nearby tissues."
                Code from PrimaryCancerDisorderVS if covered
  	            StageInformation.StageDetail value is type ref(CancerStageGroup)

EntryElement:   SecondaryCancerCondition
Based on:       CancerCondition
Description:    "Records the history of secondary neoplasms, including location(s) and the date of onset of metastases. A secondary cancer results from the spread (metastasization) of cancer from its original site."
				Code from SecondaryCancerDisorderVS if covered
0..1			ref(PrimaryCancerCondition)
0..0			StageInformation

/*
EntryElement:   CancerHistologicType  // Morphology ICD-O-3
// MK - PLEASE EXPLAIN COMMENT:  did not use precoordinated codes because only available for clinical and pathologic. 
Based on:       SimpleCodedLaboratoryObservation
{'fraction_non_alphanumeric': 0.05123471036233557, 'fraction_numerical': 0.009231479344564966, 'mean_word_length': 4.33743842364532, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6566603', 'n_tokens_mistral': 1221, 'n_tokens_neox': 1117, 'n_words': 420}