Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Med resources #5

Merged
merged 8 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions input/fsh/codesystems/ICD11.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
CodeSystem: ICD11
Id: ICD11
Title: "ICD-11"
Description: "ICD-11."

* ^url = $ICD11

* #XM28X5 "Measles vaccines"
* #XM8L15 "Measles, live attenuated"
* #XM9439 "Measles, combinations with mumps, live attenuated"
* #XM8TF3 "Measles, combinations with mumps and rubella, live attenuated"
* #XM21H2 "Measles, combinations with rubella, live attenuated"
* #XM4AJ8 "Measles, combinations with mumps, rubella and varicella, live attenuated"

* #XM1131 "Mumps vaccines"
* #XM2340 "Mumps, live attenuated"

* #XX45B7 "Intersex"
* #XX2PX3 "Biological sex not specified"
* #XX2V25 "Female"
* #XX2UQ8 "Male"
* #1B1Z "Tuberculosis"
* #1C62.Z "Human immunodeficiency virus disease without mention of tuberculosis or malaria"
* #1H0Z "Certain infectious or parasitic diseases"
* #3A51 "Sickle cell disorders or other haemoglobinopathies"
* #4B4Z "Diseases of the immune system"
* #KA21.4 "Preterm newborn"
* #QA02.0 "Observation for suspected tuberculosis, ruled out"
* #QA02.Y "Medical observation or evaluation for suspected diseases or conditions, ruled out"
* #QA48.1 "Care or examination of lactating mother"
* #QC60 "Family history of infectious diseases"
* #XM18Y8 "Meningococcus C, purified polysaccharides antigen conjugated vaccines"
* #XM2280 "Meningococcus A, purified polysaccharides antigen conjugated vaccines"
* #XM33K4 "Typhoid, oral, live attenuated vaccines"
* #XM3KQ4 "Interferon gamma"
* #XM3SF6 "Typhoid, purified polysaccharide antigen vaccines"
* #XM47S0 "Encephalitis, Japanese, live attenuated"
* #XM5V19 "Poliomyelitis, trivalent, inactivated, whole virus"
* #XM79H3 "Poliomyelitis oral, bivalent, live attenuated"
* #XM7PF6 "Tuberculin"
* #XT0S "Pregnancy"
14 changes: 14 additions & 0 deletions input/fsh/codesystems/VaccineProducts.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CodeSystem: VaccineProducts
Title: "Vaccine Product codes CodeSet"
Description: "Vaccine Product codes, containing the different available products."

* ^property[+].code = #classification
* ^property[=].type = #code
* ^property[=].uri = "http://smart.who.int/ig/smart-immunizations-measles#classification"

* #20009060/2 "Serum Institute of India Measles vaccine"
* ^property[+].code = #classification
* ^property[=].valueCode = #XM8L15
* #7680007030014 "M-M-RvaxPRO"
* ^property[+].code = #classification
* ^property[=].valueCode = #XM8TF3
63 changes: 63 additions & 0 deletions input/fsh/conceptmaps/IMMZ.D4.ConceptMap.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
Instance: IMMZ.D4.ConceptMap
InstanceOf: ConceptMap
Description: "Mapping to and from IMMZ.D4 Data Dictionary to other codesystems."
Usage: #definition

* name = "IMMZ_D4_ConceptMap"
* title = "ConceptMap to and from IMMZ.D4 DataElements"
* status = #active
* experimental = false
* date = "2023-10-09"

* group[+]
* source = Canonical(IMMZ.D4)
* target = $ICD11
* insert ElementMap(DE162, QA41, equivalent)
* insert ElementMap(DE165, 4B4Z, relatedto)
* insert ElementMap(DE166, QC44.0, equivalent)
* insert ElementMap(DE167, QC44.2, relatedto)
* insert ElementMap(DE168, 1C62.1, equivalent)

* group[+]
* source = $ICD11
* target = Canonical(IMMZ.D4)
* insert ElementMap(QA41, DE162, equivalent)
* insert ElementMap(4B4Z, DE165, relatedto)
* insert ElementMap(QC44.0, DE166, equivalent)
* insert ElementMap(QC44.2, DE167, relatedto)
* insert ElementMap(1C62.1, DE168, equivalent)

* group[+]
* source = Canonical(IMMZ.D4)
* target = $LNC
* insert ElementMap(DE162, 82810-3, equivalent)
* insert ElementMap(DE165, 96381-9, relatedto)
* insert ElementMap(DE168, 47244-9, wider)

* group[+]
* source = $LNC
* target = Canonical(IMMZ.D4)
* insert ElementMap(82810-3, DE162, equivalent)
* insert ElementMap(96381-9, DE165, relatedto)
* insert ElementMap(47244-9, DE168, narrower)
* element[=].target[=].comment = "The source concept is more specific than the target"

* group[+]
* source = Canonical(IMMZ.D4)
* target = $SCT
* insert ElementMap(DE162, 77386006, equivalent)
* insert ElementMap(DE165, 370388006, equivalent)
* insert ElementMap(DE166, 10839421000119100, equivalent)
* insert ElementMap(DE167, 419076005, wider)
* insert ElementMap(DE168, 86406008, equivalent)


* group[+]
* source = $SCT
* target = Canonical(IMMZ.D4)
* insert ElementMap(77386006, DE162, equivalent)
* insert ElementMap(370388006, DE165, equivalent)
* insert ElementMap(10839421000119100, DE166, equivalent)
* insert ElementMap(419076005, DE167, narrower)
* element[=].target[=].comment = "The source concept is more specific than the target"
* insert ElementMap(86406008, DE168, equivalent)
11 changes: 11 additions & 0 deletions input/fsh/examples/Immunization1.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Instance: Immunization1
InstanceOf: SGImmunization
Description: "Immunization record"
* vaccineCode = $ICD11#XM28X5
* lotNumber = "lot123"
* expirationDate = "2023-10-01"
//* extension[administeredProduct].valueReference = Reference(Measlesprod1)
* extension[administeredProduct].valueCodeableConcept = VaccineProducts#20009060/2
* patient.reference = "Patient/Patient1"
* status = #completed
* occurrenceDateTime = "2023-08-05"
7 changes: 7 additions & 0 deletions input/fsh/examples/Vaccine-MSDMMRVaxPro.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Instance: Vaccine-MSDMMRVaxPro
InstanceOf: SGVaccineProduct
Title: "MSD - M-M-RvaxPRO"
Description: "M-M-RvaxPRO"
* code = VaccineProducts#7680007030014
* extension[classification][+].valueCodeableConcept = $ICD11#XM8L15
* extension[classification][+].valueCodeableConcept = $ICD11#XM2340
6 changes: 6 additions & 0 deletions input/fsh/examples/Vaccine-SIIMeasles.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Instance: Vaccine-SIIMeasles
InstanceOf: SGVaccineProduct
Title: "Serum Institute of India Measles - Medication Product"
Description: "Serum Institute of India Measles - Medication Product"
* code = VaccineProducts#20009060/2
* extension[classification][+].valueCodeableConcept = $ICD11#XM8L15
5 changes: 5 additions & 0 deletions input/fsh/examples/VaccineProposal1.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Instance: VaccineProposal1
InstanceOf: SGVaccineProposal
* status = #active
* medicationCodeableConcept = $ICD11#XM28X5
* subject = Reference(Patient/patient1)
5 changes: 5 additions & 0 deletions input/fsh/extensions/SGIMMAdministeredProduct.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Extension: SGIMMAdministeredProduct
Id: sg-ext-administeredProduct
Title: "SGAdministeredProduct"
Description: "The product administered"
* value[x] only Reference(SGVaccineProduct) or CodeableConcept
4 changes: 4 additions & 0 deletions input/fsh/extensions/SGMedicationClassification.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Extension: SGMedicationClassification
Description: "Medication Classification."
* value[x] only CodeableConcept
* value[x] from VaccineTypes (required)
63 changes: 0 additions & 63 deletions input/fsh/models/codes-IMMZ.D4.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -28,66 +28,3 @@ Description: "ValueSet for Potential Contraindications for IMMZ.D4.DE161."
* IMMZ.D4#DE168 "Symptomatic HIV infection"


Instance: IMMZ.D4.ConceptMap
InstanceOf: ConceptMap
Description: "Mapping to and from IMMZ.D4 Data Dictionary to other codesystems."
Usage: #definition

* name = "IMMZ_D4_ConceptMap"
* title = "ConceptMap to and from IMMZ.D4 DataElements"
* status = #active
* experimental = false
* date = "2023-10-09"

* group[+]
* source = Canonical(IMMZ.D4)
* target = $ICD11
* insert ElementMap(DE162, QA41, equivalent)
* insert ElementMap(DE165, 4B4Z, relatedto)
* insert ElementMap(DE166, QC44.0, equivalent)
* insert ElementMap(DE167, QC44.2, relatedto)
* insert ElementMap(DE168, 1C62.1, equivalent)

* group[+]
* source = $ICD11
* target = Canonical(IMMZ.D4)
* insert ElementMap(QA41, DE162, equivalent)
* insert ElementMap(4B4Z, DE165, relatedto)
* insert ElementMap(QC44.0, DE166, equivalent)
* insert ElementMap(QC44.2, DE167, relatedto)
* insert ElementMap(1C62.1, DE168, equivalent)

* group[+]
* source = Canonical(IMMZ.D4)
* target = $LNC
* insert ElementMap(DE162, 82810-3, equivalent)
* insert ElementMap(DE165, 96381-9, relatedto)
* insert ElementMap(DE168, 47244-9, wider)

* group[+]
* source = $LNC
* target = Canonical(IMMZ.D4)
* insert ElementMap(82810-3, DE162, equivalent)
* insert ElementMap(96381-9, DE165, relatedto)
* insert ElementMap(47244-9, DE168, narrower)
* element[=].target[=].comment = "The source concept is more specific than the target"

* group[+]
* source = Canonical(IMMZ.D4)
* target = $SCT
* insert ElementMap(DE162, 77386006, equivalent)
* insert ElementMap(DE165, 370388006, equivalent)
* insert ElementMap(DE166, 10839421000119100, equivalent)
* insert ElementMap(DE167, 419076005, wider)
* insert ElementMap(DE168, 86406008, equivalent)


* group[+]
* source = $SCT
* target = Canonical(IMMZ.D4)
* insert ElementMap(77386006, DE162, equivalent)
* insert ElementMap(370388006, DE165, equivalent)
* insert ElementMap(10839421000119100, DE166, equivalent)
* insert ElementMap(419076005, DE167, narrower)
* element[=].target[=].comment = "The source concept is more specific than the target"
* insert ElementMap(86406008, DE168, equivalent)
5 changes: 5 additions & 0 deletions input/fsh/profiles/SGImmunization.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Profile: SGImmunization
Parent: Immunization
Description: "A record of an immunization, with a given product"

* extension contains SGIMMAdministeredProduct named administeredProduct 0..1
5 changes: 5 additions & 0 deletions input/fsh/profiles/SGVaccineProduct.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Profile: SGVaccineProduct
Parent: Medication
Description: "A Vaccine product"

* extension contains SGMedicationClassification named classification 0..* MS
5 changes: 5 additions & 0 deletions input/fsh/profiles/SGVaccineProposal.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Profile: SGVaccineProposal
Parent: MedicationRequest
Description: "An order for immunization (for a disease, not a specific product)"
* intent = #proposal
* medicationCodeableConcept from VaccineTypes
5 changes: 5 additions & 0 deletions input/fsh/profiles/SGVaccineRequest.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Profile: SGVaccineRequest
Parent: MedicationRequest
Description: "An order for an actual product"
* intent = #instance-order
* medication[x] only Reference(SGVaccineProduct)
File renamed without changes.
5 changes: 5 additions & 0 deletions input/fsh/valuesets/MeaslesVaccineProducts.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ValueSet: VSMeaslesVaccineProducts
Id: VSMeaslesVaccineProducts
Title: "MeaslesVaccine Type ValueSet"
Description: "Vaccine type Codes, containing the different types of antigens used in vaccine guidelines."
* codes from system VaccineProducts //where classification = "XM28X5"
5 changes: 5 additions & 0 deletions input/fsh/valuesets/VaccineTypes.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ValueSet: VaccineTypes
Id: VaccineTypes
Title: "Vaccine Type ValueSet"
Description: "Vaccine type Codes, containing the different types of antigens used in vaccine guidelines."
* codes from system ICD11
1 change: 1 addition & 0 deletions input/resources/device/cqf-tooling.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"resourceType":"Device","id":"cqf-tooling","meta":{"profile":["http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/device-softwaresystem-cqfm"]},"manufacturer":"CQFramework","deviceName":[{"name":"cqf-tooling","type":"manufacturer-name"}],"type":{"coding":[{"system":"http://hl7.org/fhir/us/cqfmeasures/CodeSystem/software-system-type","code":"tooling"}]},"version":[{"value":"2.4.0"}]}