Skip to content

Commit

Permalink
add ibm prescription example
Browse files Browse the repository at this point in the history
  • Loading branch information
florianschoffke committed Dec 17, 2024
1 parent 7b68660 commit 1644be1
Show file tree
Hide file tree
Showing 4 changed files with 295 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<Medication xmlns="http://hl7.org/fhir">
<id value="erp-eml-epa-notes-11-ibm-medication-compounding"/>
<meta>
<profile value="https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0"/>
</meta>
<extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type">
<valueCodeableConcept>
<coding>
<system value="http://snomed.info/sct"/>
<version value="http://snomed.info/sct/900000000000207008/version/20220331"/>
<code value="373873005:860781008=362943005"/>
<display value="Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)"/>
</coding>
</valueCodeableConcept>
</extension>
<extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category">
<valueCoding>
<system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category"/>
<code value="00"/>
</valueCoding>
</extension>
<extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine">
<valueBoolean value="false"/>
</extension>
<code>
<coding>
<system value="https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type"/>
<code value="rezeptur"/>
</coding>
<text value="Sumatriptan-1a Pharma 100 mg Tabletten"/>
</code>
<form>
<text value="TAB"/>
</form>
<amount>
<numerator>
<extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize">
<valueString value="12"/>
</extension>
<unit value="TAB"/>
<system value="http://unitsofmeasure.org"/>
<code value="{tbl}"/>
</numerator>
<denominator>
<value value="1"/>
</denominator>
</amount>
<ingredient>
<itemCodeableConcept>
<coding>
<system value="http://fhir.de/CodeSystem/ifa/pzn"/>
<code value="12343219"/>
</coding>
<text value="1st ingredient"/>
</itemCodeableConcept>
<strength>
<numerator>
<value value="1"/>
<unit value="TAB"/>
<system value="http://unitsofmeasure.org"/>
<code value="{tbl}"/>
</numerator>
<denominator>
<value value="1"/>
</denominator>
</strength>
</ingredient>
<ingredient>
<itemCodeableConcept>
<coding>
<system value="http://fhir.de/CodeSystem/ifa/pzn"/>
<code value="56781239"/>
</coding>
<text value="2nd ingredient"/>
</itemCodeableConcept>
<strength>
<numerator>
<value value="2"/>
<unit value="TAB"/>
<system value="http://unitsofmeasure.org"/>
<code value="{tbl}"/>
</numerator>
<denominator>
<value value="1"/>
</denominator>
</strength>
</ingredient>
</Medication>
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<Medication xmlns="http://hl7.org/fhir">
<id value="erp-eml-epa-notes-12-ibm-medication-compounding-Mapped"/>
<meta>
<profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Medication|1.4"/>
</meta>
<contained>
<Medication>
<id value="FirstIngredient"/>
<meta>
<profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-pzn-ingredient"/>
</meta>
<extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension">
<valueCoding>
<system value="http://snomed.info/sct"/>
<code value="781405001"/>
<display value="Medicinal product package (product)"/>
</valueCoding>
</extension>
<code>
<coding>
<system value="http://fhir.de/CodeSystem/ifa/pzn"/>
<code value="12343219"/>
<display value="1st ingredient"/>
</coding>
<text value="1st ingredient"/>
</code>
</Medication>
</contained>
<contained>
<Medication>
<id value="SecondIngredient"/>
<meta>
<profile value="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-pzn-ingredient"/>
</meta>
<extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension">
<valueCoding>
<system value="http://snomed.info/sct"/>
<code value="781405001"/>
<display value="Medicinal product package (product)"/>
</valueCoding>
</extension>
<code>
<coding>
<system value="http://fhir.de/CodeSystem/ifa/pzn"/>
<code value="56781239"/>
<display value="2nd ingredient"/>
</coding>
<text value="2nd ingredient"/>
</code>
</Medication>
</contained>
<extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension">
<valueCoding>
<system value="https://gematik.de/fhir/epa-medication/CodeSystem/epa-drug-category-cs"/>
<code value="00"/>
</valueCoding>
</extension>
<extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension">
<valueCoding>
<system value="http://snomed.info/sct"/>
<code value="1208954007"/>
<display value="Extemporaneous preparation (product)"/>
</valueCoding>
</extension>
<extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension">
<valueBoolean value="false"/>
</extension>
<code>
<text value="Sumatriptan-1a Pharma 100 mg Tabletten"/>
</code>
<form>
<text value="TAB"/>
</form>
<amount>
<numerator>
<extension url="https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension">
<valueString value="12"/>
</extension>
<unit value="TAB"/>
<system value="http://unitsofmeasure.org"/>
<code value="{tbl}"/>
</numerator>
<denominator>
<value value="1"/>
</denominator>
</amount>
<ingredient>
<itemReference>
<reference value="#FirstIngredient"/>
</itemReference>
<strength>
<numerator>
<value value="1"/>
<unit value="TAB"/>
<system value="http://unitsofmeasure.org"/>
<code value="{tbl}"/>
</numerator>
<denominator>
<value value="1"/>
<system>
<extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason">
<valueCode value="unknown"/>
</extension>
</system>
<code>
<extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason">
<valueCode value="unknown"/>
</extension>
</code>
</denominator>
</strength>
</ingredient>
<ingredient>
<itemReference>
<reference value="#SecondIngredient"/>
</itemReference>
<strength>
<numerator>
<value value="2"/>
<unit value="TAB"/>
<system value="http://unitsofmeasure.org"/>
<code value="{tbl}"/>
</numerator>
<denominator>
<value value="1"/>
<system>
<extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason">
<valueCode value="unknown"/>
</extension>
</system>
<code>
<extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason">
<valueCode value="unknown"/>
</extension>
</code>
</denominator>
</strength>
</ingredient>
</Medication>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Instance: erp-eml-epa-notes-11-ibm-medication-compounding
InstanceOf: KBV_PR_ERP_Medication_Compounding
Usage: #example
* code = $KBV_CS_ERP_Medication_Type#rezeptur
* code.text = "Sumatriptan-1a Pharma 100 mg Tabletten"
* form.text = "TAB"
* extension[Arzneimittelkategorie].valueCoding = $KBV_CS_ERP_Medication_Category#00
* extension[Impfstoff].valueBoolean = false
* extension[Kategorie].valueCodeableConcept.coding.code = #373873005:860781008=362943005

* amount.numerator = $unitsofmeasure#{tbl} "TAB"
* amount.numerator.extension[Gesamtmenge].valueString = "12"
* amount.denominator.value = 1

* ingredient[+]
* strength.numerator = 1 '{tbl}' "TAB"
* strength.denominator.value = 1
* itemCodeableConcept.text = "1st ingredient"
* itemCodeableConcept = $pzn-cs#12343219
* ingredient[+]
* strength.numerator = 2 '{tbl}' "TAB"
* strength.denominator.value = 1
* itemCodeableConcept.text = "2nd ingredient"
* itemCodeableConcept = $pzn-cs#56781239

Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Instance: erp-eml-epa-notes-12-ibm-medication-compounding-Mapped
InstanceOf: GEM_ERP_PR_Medication
Usage: #example
* contained[0] = FirstIngredient
* contained[+] = SecondIngredient
* extension[drugCategory].valueCoding = $epa-drug-category-cs#00
* extension[type].valueCoding = $sct#1208954007 "Extemporaneous preparation (product)"
* extension[isVaccine].valueBoolean = false
* form.text = "TAB"
* code.text = "Sumatriptan-1a Pharma 100 mg Tabletten"

* amount.numerator = $unitsofmeasure#{tbl} "TAB"
* extension[totalQuantity].valueString = "12"
* amount.denominator.value = 1

* ingredient[+]
* itemReference = Reference(FirstIngredient)
* strength.numerator = 1 '{tbl}' "TAB"
* strength.denominator.value = 1
* strength.denominator.system.extension[dataAbsentReason].valueCode = #unknown
* strength.denominator.code.extension[dataAbsentReason].valueCode = #unknown

* ingredient[+]
* itemReference = Reference(SecondIngredient)
* strength.numerator = 2 '{tbl}' "TAB"
* strength.denominator
* value = 1
* system.extension[dataAbsentReason].valueCode = #unknown
* code.extension[dataAbsentReason].valueCode = #unknown

Instance: FirstIngredient
InstanceOf: EPAMedicationPZNIngredient
Usage: #inline
* extension[type].valueCoding = $sct#781405001 "Medicinal product package (product)"
* code = $pzn-cs#12343219 "1st ingredient"
* code.text = "1st ingredient"

Instance: SecondIngredient
InstanceOf: EPAMedicationPZNIngredient
Usage: #inline
* extension[type].valueCoding = $sct#781405001 "Medicinal product package (product)"
* code = $pzn-cs#56781239 "2nd ingredient"
* code.text = "2nd ingredient"

0 comments on commit 1644be1

Please sign in to comment.