diff --git a/Resources/fsh-generated/resources/Bundle-558c2f69-62f6-4a74-8d13-70e945d28b71.json b/Resources/fsh-generated/resources/Bundle-558c2f69-62f6-4a74-8d13-70e945d28b71.json index e8467d83..8c967010 100644 --- a/Resources/fsh-generated/resources/Bundle-558c2f69-62f6-4a74-8d13-70e945d28b71.json +++ b/Resources/fsh-generated/resources/Bundle-558c2f69-62f6-4a74-8d13-70e945d28b71.json @@ -2,6 +2,9 @@ "resourceType": "Bundle", "id": "558c2f69-62f6-4a74-8d13-70e945d28b71", "meta": { + "profile": [ + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_CloseOperationInputBundle|1.3" + ], "tag": [ { "display": "MedicationDispense Bundle for $close-Operation on dispensation of multiple medications" diff --git a/Resources/fsh-generated/resources/Bundle-9145d0d0-7b77-483f-ad89-cd9d34fc1f08.json b/Resources/fsh-generated/resources/Bundle-9145d0d0-7b77-483f-ad89-cd9d34fc1f08.json index 7b0517a9..2a2e3163 100644 --- a/Resources/fsh-generated/resources/Bundle-9145d0d0-7b77-483f-ad89-cd9d34fc1f08.json +++ b/Resources/fsh-generated/resources/Bundle-9145d0d0-7b77-483f-ad89-cd9d34fc1f08.json @@ -2,6 +2,9 @@ "resourceType": "Bundle", "id": "9145d0d0-7b77-483f-ad89-cd9d34fc1f08", "meta": { + "profile": [ + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_CloseOperationInputBundle|1.3" + ], "tag": [ { "display": "MedicationDispense Bundle for $close-Operation on dispensation of multiple medications" @@ -15,6 +18,11 @@ "resource": { "resourceType": "MedicationDispense", "id": "3465270a-11e7-4bbf-ae53-378f9cc52747", + "meta": { + "profile": [ + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3" + ] + }, "contained": [ { "resourceType": "Medication", @@ -126,6 +134,11 @@ "resource": { "resourceType": "MedicationDispense", "id": "3465270a-11e7-4bbf-ae53-378f9cc52747", + "meta": { + "profile": [ + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3" + ] + }, "contained": [ { "resourceType": "Medication", diff --git a/Resources/fsh-generated/resources/MedicationDispense-3465270a-11e7-4bbf-ae53-378f9cc52747.json b/Resources/fsh-generated/resources/MedicationDispense-3465270a-11e7-4bbf-ae53-378f9cc52747.json index 47113775..4835de58 100644 --- a/Resources/fsh-generated/resources/MedicationDispense-3465270a-11e7-4bbf-ae53-378f9cc52747.json +++ b/Resources/fsh-generated/resources/MedicationDispense-3465270a-11e7-4bbf-ae53-378f9cc52747.json @@ -1,6 +1,11 @@ { "resourceType": "MedicationDispense", "id": "3465270a-11e7-4bbf-ae53-378f9cc52747", + "meta": { + "profile": [ + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3" + ] + }, "contained": [ { "resourceType": "Medication", diff --git a/Resources/fsh-generated/resources/OperationDefinition-CloseOperation.json b/Resources/fsh-generated/resources/OperationDefinition-CloseOperation.json index 05265fa5..90a96c78 100644 --- a/Resources/fsh-generated/resources/OperationDefinition-CloseOperation.json +++ b/Resources/fsh-generated/resources/OperationDefinition-CloseOperation.json @@ -34,8 +34,8 @@ "documentation": "Information on dispensed Medication(s)", "type": "canonical", "targetProfile": [ - "http://hl7.org/fhir/StructureDefinition/MedicationDispense", - "http://hl7.org/fhir/StructureDefinition/Bundle" + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3", + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_CloseOperationInputBundle|1.3" ] }, { diff --git a/Resources/fsh-generated/resources/OperationDefinition-DispenseOperation.json b/Resources/fsh-generated/resources/OperationDefinition-DispenseOperation.json index e83ccc38..8b253764 100644 --- a/Resources/fsh-generated/resources/OperationDefinition-DispenseOperation.json +++ b/Resources/fsh-generated/resources/OperationDefinition-DispenseOperation.json @@ -34,8 +34,8 @@ "documentation": "Information on dispensed Medication(s)", "type": "canonical", "targetProfile": [ - "http://hl7.org/fhir/StructureDefinition/MedicationDispense", - "http://hl7.org/fhir/StructureDefinition/Bundle" + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3", + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_CloseOperationInputBundle|1.3" ] }, { @@ -46,8 +46,8 @@ "documentation": "The MedicationDispense that has been transmitted by the pharmacy as a confirmation, that it has been successfully uploaded.", "type": "canonical", "targetProfile": [ - "http://hl7.org/fhir/StructureDefinition/MedicationDispense", - "http://hl7.org/fhir/StructureDefinition/Bundle" + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3", + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_CloseOperationInputBundle|1.3" ] } ] diff --git a/Resources/fsh-generated/resources/StructureDefinition-GEM-ERP-PR-CloseOperationInputBundle.json b/Resources/fsh-generated/resources/StructureDefinition-GEM-ERP-PR-CloseOperationInputBundle.json new file mode 100644 index 00000000..97e4bb11 --- /dev/null +++ b/Resources/fsh-generated/resources/StructureDefinition-GEM-ERP-PR-CloseOperationInputBundle.json @@ -0,0 +1,91 @@ +{ + "resourceType": "StructureDefinition", + "id": "GEM-ERP-PR-CloseOperationInputBundle", + "url": "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_CloseOperationInputBundle", + "version": "1.3.0", + "name": "GEM_ERP_PR_CloseOperationInputBundle", + "title": "Document Bundle for multiple MedicationDispenses on $close Operation", + "status": "draft", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "cda", + "uri": "http://hl7.org/v3/cda", + "name": "CDA (R2)" + }, + { + "identity": "w5", + "uri": "http://hl7.org/fhir/fivews", + "name": "FiveWs Pattern Mapping" + } + ], + "kind": "resource", + "abstract": false, + "type": "Bundle", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Bundle.meta", + "path": "Bundle.meta", + "min": 1 + }, + { + "id": "Bundle.meta.profile", + "path": "Bundle.meta.profile", + "min": 1, + "max": "1", + "fixedCanonical": "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_CloseOperationInputBundle|1.3" + }, + { + "id": "Bundle.type", + "path": "Bundle.type", + "fixedCode": "collection" + }, + { + "id": "Bundle.entry", + "path": "Bundle.entry", + "slicing": { + "discriminator": [ + { + "type": "type", + "path": "resource" + } + ], + "rules": "closed" + }, + "min": 1 + }, + { + "id": "Bundle.entry:DispensedMedications", + "path": "Bundle.entry", + "sliceName": "DispensedMedications", + "min": 1, + "max": "*" + }, + { + "id": "Bundle.entry:DispensedMedications.resource", + "path": "Bundle.entry.resource", + "type": [ + { + "code": "MedicationDispense", + "profile": [ + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense" + ] + } + ] + } + ] + } +} diff --git a/Resources/fsh-generated/resources/StructureDefinition-GEM-ERP-PR-Task.json b/Resources/fsh-generated/resources/StructureDefinition-GEM-ERP-PR-Task.json index 3ca3cbe1..e77bf956 100644 --- a/Resources/fsh-generated/resources/StructureDefinition-GEM-ERP-PR-Task.json +++ b/Resources/fsh-generated/resources/StructureDefinition-GEM-ERP-PR-Task.json @@ -321,7 +321,7 @@ { "code": "Reference", "targetProfile": [ - "http://hl7.org/fhir/StructureDefinition/Bundle" + "https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle" ] } ] @@ -360,7 +360,7 @@ { "code": "Reference", "targetProfile": [ - "http://hl7.org/fhir/StructureDefinition/MedicationDispense" + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense" ] } ] diff --git a/Resources/input/fsh/aliases.fsh b/Resources/input/fsh/aliases.fsh index b1ff020b..ead574d0 100644 --- a/Resources/input/fsh/aliases.fsh +++ b/Resources/input/fsh/aliases.fsh @@ -1,18 +1,8 @@ -Alias: $communication-topic = http://terminology.hl7.org/CodeSystem/communication-topic -Alias: $AvailabilityStatus = https://gematik.de/fhir/CodeSystem/AvailabilityStatus -Alias: $audit-event-type = http://terminology.hl7.org/CodeSystem/audit-event-type -Alias: $restful-interaction = http://hl7.org/fhir/restful-interaction -Alias: $extra-security-role-type = http://terminology.hl7.org/CodeSystem/extra-security-role-type -Alias: $data-absent-reason = http://terminology.hl7.org/CodeSystem/data-absent-reason -Alias: $KBV_CS_ERP_Medication_Category = https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Category -Alias: $pzn = http://fhir.de/CodeSystem/ifa/pzn -Alias: $KBV_CS_SFHIR_KBV_DARREICHUNGSFORM = https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM -Alias: $consentscope = http://terminology.hl7.org/CodeSystem/consentscope -Alias: $Consenttype = https://gematik.de/fhir/CodeSystem/Consenttype -Alias: $v3-ActCode = http://terminology.hl7.org/CodeSystem/v3-ActCode +// KBV +Alias: $KBV_PR_ERP_Bundle = https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle + +// DE-Basisprofile Alias: $identifier-kvid-10 = http://fhir.de/StructureDefinition/identifier-kvid-10 Alias: $identifier-pkv = http://fhir.de/StructureDefinition/identifier-pkv -Alias: $identifier-telematik-id = http://fhir.de/StructureDefinition/identifier-telematik-id -Alias: $identifier-iknr = http://fhir.de/StructureDefinition/identifier-iknr -Alias: $fhir-core-medicationdispense = http://hl7.org/fhir/StructureDefinition/MedicationDispense -Alias: $fhir-core-bundle = http://hl7.org/fhir/StructureDefinition/Bundle \ No newline at end of file +Alias: $identifier-telematik-id = https://gematik.de/fhir/sid/telematik-id +Alias: $identifier-iknr = http://fhir.de/StructureDefinition/identifier-iknr \ No newline at end of file diff --git a/Resources/input/fsh/operationdefinitions/GEM_ERP_OP_Close.fsh b/Resources/input/fsh/operationdefinitions/GEM_ERP_OP_Close.fsh index 55f54556..ffdc5498 100644 --- a/Resources/input/fsh/operationdefinitions/GEM_ERP_OP_Close.fsh +++ b/Resources/input/fsh/operationdefinitions/GEM_ERP_OP_Close.fsh @@ -21,8 +21,8 @@ Usage: #definition * parameter[=].documentation = "Information on dispensed Medication(s)" * parameter[=].type = #canonical * parameter[=] - * targetProfile[+] = $fhir-core-medicationdispense - * targetProfile[+] = $fhir-core-bundle + * insert PackageTargetProfile(StructureDefinition/GEM_ERP_PR_MedicationDispense) + * insert PackageTargetProfile(StructureDefinition/GEM_ERP_PR_CloseOperationInputBundle) // out * parameter[+].name = #Receipt @@ -70,6 +70,7 @@ InstanceOf: MedicationDispense Title: "MedicationDispense handed to Günther at a pharmacy" Usage: #example * id = "3465270a-11e7-4bbf-ae53-378f9cc52747" +* insert PackageMetaProfile(StructureDefinition/GEM_ERP_PR_MedicationDispense) * contained[+] = SumatripanMedication * identifier[+].system = "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId" * identifier[=].value = "160.000.033.491.280.78" @@ -77,7 +78,7 @@ Usage: #example * medicationReference.reference = "#001413e4-a5e9-48da-9b07-c17bab476407" * subject.identifier.system = "http://fhir.de/sid/gkv/kvid-10" * subject.identifier.value = "X234567890" -* performer[+].actor.identifier.system = "https://gematik.de/fhir/sid/telematik-id" +* performer[+].actor.identifier.system = $identifier-telematik-id * performer[=].actor.identifier.value = "3-abc-1234567890" * whenHandedOver = "2022-02-28" * dosageInstruction[+].text = "1-0-1-0" @@ -88,6 +89,7 @@ Title: "Bundle of 2 MedicationDispense handed to Waltraud at a pharmacy" Description: "Lets asume, Waltraud needs 40 TABs and the pharmacy hands out 2*20, then there will be 2 MedicationDispenses for the E-Rezept backend" Usage: #example * id = "9145d0d0-7b77-483f-ad89-cd9d34fc1f08" +* insert PackageMetaProfile(StructureDefinition/GEM_ERP_PR_CloseOperationInputBundle) * meta.tag.display = "MedicationDispense Bundle for $close-Operation on dispensation of multiple medications" * type = #collection * entry[+].fullUrl = "http://hier-koennte-ihre-werbung-stehen" diff --git a/Resources/input/fsh/operationdefinitions/GEM_ERP_OP_Dispense.fsh b/Resources/input/fsh/operationdefinitions/GEM_ERP_OP_Dispense.fsh index c3dd47d1..bb07bedb 100644 --- a/Resources/input/fsh/operationdefinitions/GEM_ERP_OP_Dispense.fsh +++ b/Resources/input/fsh/operationdefinitions/GEM_ERP_OP_Dispense.fsh @@ -21,8 +21,8 @@ Usage: #definition * parameter[=].documentation = "Information on dispensed Medication(s)" * parameter[=].type = #canonical * parameter[=] - * targetProfile[+] = $fhir-core-medicationdispense - * targetProfile[+] = $fhir-core-bundle + * insert PackageTargetProfile(StructureDefinition/GEM_ERP_PR_MedicationDispense) + * insert PackageTargetProfile(StructureDefinition/GEM_ERP_PR_CloseOperationInputBundle) // out * parameter[+].name = #MedicationDispense @@ -32,8 +32,8 @@ Usage: #definition * parameter[=].documentation = "The MedicationDispense that has been transmitted by the pharmacy as a confirmation, that it has been successfully uploaded." * parameter[=].type = #canonical * parameter[=] - * targetProfile[+] = $fhir-core-medicationdispense - * targetProfile[+] = $fhir-core-bundle + * insert PackageTargetProfile(StructureDefinition/GEM_ERP_PR_MedicationDispense) + * insert PackageTargetProfile(StructureDefinition/GEM_ERP_PR_CloseOperationInputBundle) Instance: OperationDispenseParametersInputMedicationDispense InstanceOf: MedicationDispense @@ -48,7 +48,7 @@ Usage: #example * medicationReference.reference = "#001413e4-a5e9-48da-9b07-c17bab476407" * subject.identifier.system = "http://fhir.de/sid/gkv/kvid-10" * subject.identifier.value = "X234567890" -* performer[+].actor.identifier.system = "https://gematik.de/fhir/sid/telematik-id" +* performer[+].actor.identifier.system = $identifier-telematik-id * performer[=].actor.identifier.value = "3-abc-1234567890" * whenHandedOver = "2022-02-28" * dosageInstruction[+].text = "1-0-1-0" @@ -66,7 +66,7 @@ Usage: #example * medicationReference.reference = "#001413e4-a5e9-48da-9b07-c17bab476407" * subject.identifier.system = "http://fhir.de/sid/gkv/kvid-10" * subject.identifier.value = "X234567890" -* performer[+].actor.identifier.system = "https://gematik.de/fhir/sid/telematik-id" +* performer[+].actor.identifier.system = $identifier-telematik-id * performer[=].actor.identifier.value = "3-abc-1234567890" * whenHandedOver = "2022-02-28" * dosageInstruction[+].text = "1-0-1-0" @@ -77,6 +77,7 @@ Title: "Bundle of 2 MedicationDispense handed to Waltraud at a pharmacy" Description: "Lets asume, Waltraud needs 40 TABs and the pharmacy hands out 2*20, then there will be 2 MedicationDispenses for the E-Rezept backend" Usage: #example * id = "558c2f69-62f6-4a74-8d13-70e945d28b71" +* insert PackageMetaProfile(StructureDefinition/GEM_ERP_PR_CloseOperationInputBundle) * meta.tag.display = "MedicationDispense Bundle for $close-Operation on dispensation of multiple medications" * type = #collection * entry[+].fullUrl = "http://hier-koennte-ihre-werbung-stehen" diff --git a/Resources/input/fsh/profiles/GEM_ERP_PR_AuditEvent.fsh b/Resources/input/fsh/profiles/GEM_ERP_PR_AuditEvent.fsh index 4f7361e3..24f5bfbe 100644 --- a/Resources/input/fsh/profiles/GEM_ERP_PR_AuditEvent.fsh +++ b/Resources/input/fsh/profiles/GEM_ERP_PR_AuditEvent.fsh @@ -52,7 +52,7 @@ Usage: #example * agent[+].type.coding[+].system = "http://terminology.hl7.org/CodeSystem/extra-security-role-type" * agent[=].type.coding[=].code = #humanuser * agent[=].type.coding[=].display = "Human User" -* agent[=].who.identifier.system = "https://gematik.de/fhir/sid/telematik-id" +* agent[=].who.identifier.system = $identifier-telematik-id * agent[=].who.identifier.value = "1-SMC-B-Testkarte-883110000095957" * agent[=].name = "Praxis Dr. Müller" * agent[=].requestor = false diff --git a/Resources/input/fsh/profiles/GEM_ERP_PR_BfArMApproval.fsh b/Resources/input/fsh/profiles/GEM_ERP_PR_BfArMApproval.fsh index c554ddbc..3d0ab751 100644 --- a/Resources/input/fsh/profiles/GEM_ERP_PR_BfArMApproval.fsh +++ b/Resources/input/fsh/profiles/GEM_ERP_PR_BfArMApproval.fsh @@ -80,7 +80,7 @@ Usage: #example * entity.what.identifier.system = "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId" * entity.what.identifier.value = "165.100.000.000.024.67" * agent.who.reference = "https://erp-ref.zentral.erp.splitdns.ti-dienste.de/Device/1" -* agent.onBehalfOf.identifier.system = "https://gematik.de/fhir/sid/telematik-id" +* agent.onBehalfOf.identifier.system = $identifier-telematik-id * agent.onBehalfOf.identifier.value = "1-HBA-Testkarte-883110000123465" * signature.type.system = "urn:iso-astm:E1762-95:2013" * signature.type.code = #1.2.840.10065.1.12.1.7 diff --git a/Resources/input/fsh/profiles/GEM_ERP_PR_CloseOperationInputBundle.fsh b/Resources/input/fsh/profiles/GEM_ERP_PR_CloseOperationInputBundle.fsh new file mode 100644 index 00000000..ae216e41 --- /dev/null +++ b/Resources/input/fsh/profiles/GEM_ERP_PR_CloseOperationInputBundle.fsh @@ -0,0 +1,12 @@ +Profile: GEM_ERP_PR_CloseOperationInputBundle +Parent: Bundle +Id: GEM-ERP-PR-CloseOperationInputBundle +Title: "Document Bundle for multiple MedicationDispenses on $close Operation" +* insert Profile(GEM_ERP_PR_CloseOperationInputBundle) +* type = #collection (exactly) +* entry ^slicing.discriminator.type = #type +* entry ^slicing.discriminator.path = "resource" +* entry ^slicing.rules = #closed +* entry contains + DispensedMedications 1.. +* entry[DispensedMedications].resource only GEM_ERP_PR_MedicationDispense \ No newline at end of file diff --git a/Resources/input/fsh/profiles/GEM_ERP_PR_Communication_DispReq.fsh b/Resources/input/fsh/profiles/GEM_ERP_PR_Communication_DispReq.fsh index 649abaca..a6a664ba 100644 --- a/Resources/input/fsh/profiles/GEM_ERP_PR_Communication_DispReq.fsh +++ b/Resources/input/fsh/profiles/GEM_ERP_PR_Communication_DispReq.fsh @@ -48,7 +48,7 @@ Usage: #example * meta.tag.display = "Communication message sent by patient to pharmacy to request the dispensation of medicine by providing the AccessCode" * basedOn.reference = "Task/160.000.033.491.280.78/$accept?ac=777bea0e13cc9c42ceec14aec3ddee2263325dc2c6c699db115f58fe423607ea" * status = #unknown -* recipient[+].identifier.system = "https://gematik.de/fhir/sid/telematik-id" +* recipient[+].identifier.system = $identifier-telematik-id * recipient[=].identifier.value = "3-SMC-B-Testkarte-883110000123465" * sender.identifier.system = "http://fhir.de/sid/gkv/kvid-10" * sender.identifier.value = "X234567890" diff --git a/Resources/input/fsh/profiles/GEM_ERP_PR_Communication_InfoReq.fsh b/Resources/input/fsh/profiles/GEM_ERP_PR_Communication_InfoReq.fsh index ee430685..43b0bb94 100644 --- a/Resources/input/fsh/profiles/GEM_ERP_PR_Communication_InfoReq.fsh +++ b/Resources/input/fsh/profiles/GEM_ERP_PR_Communication_InfoReq.fsh @@ -65,7 +65,7 @@ Usage: #example * basedOn.reference = "Task/160.000.033.491.280.78" * status = #unknown * about.reference = "#001413e4-a5e9-48da-9b07-c17bab476407" -* recipient[+].identifier.system = "https://gematik.de/fhir/sid/telematik-id" +* recipient[+].identifier.system = $identifier-telematik-id * recipient[=].identifier.value = "3-SMC-B-Testkarte-883110000123465" * sender.identifier.system = "http://fhir.de/sid/gkv/kvid-10" * sender.identifier.value = "X234567890" diff --git a/Resources/input/fsh/profiles/GEM_ERP_PR_Communication_Reply.fsh b/Resources/input/fsh/profiles/GEM_ERP_PR_Communication_Reply.fsh index 640026f8..99097331 100644 --- a/Resources/input/fsh/profiles/GEM_ERP_PR_Communication_Reply.fsh +++ b/Resources/input/fsh/profiles/GEM_ERP_PR_Communication_Reply.fsh @@ -60,7 +60,7 @@ Usage: #example * meta.tag.display = "Communication message sent by pharmacy to patient in response to a previous Task-related message" * basedOn.reference = "Task/160.000.033.491.280.78" * status = #unknown -* sender.identifier.system = "https://gematik.de/fhir/sid/telematik-id" +* sender.identifier.system = $identifier-telematik-id * sender.identifier.value = "3-SMC-B-Testkarte-883110000123465" * recipient[+].identifier.system = "http://fhir.de/sid/gkv/kvid-10" * recipient[=].identifier.value = "X234567890" diff --git a/Resources/input/fsh/profiles/GEM_ERP_PR_Composition.fsh b/Resources/input/fsh/profiles/GEM_ERP_PR_Composition.fsh index 162aabe7..09f14445 100644 --- a/Resources/input/fsh/profiles/GEM_ERP_PR_Composition.fsh +++ b/Resources/input/fsh/profiles/GEM_ERP_PR_Composition.fsh @@ -51,7 +51,7 @@ Usage: #inline * id = "c624cf47-e235-4624-af71-0a09dc9254dc" * insert PackageMetaProfile(StructureDefinition/GEM_ERP_PR_Composition) * extension[Beneficiary].url = "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_Beneficiary" -* extension[Beneficiary].valueIdentifier.system = "https://gematik.de/fhir/sid/telematik-id" +* extension[Beneficiary].valueIdentifier.system = $identifier-telematik-id * extension[Beneficiary].valueIdentifier.value = "3-SMC-B-Testkarte-883110000129070" * status = #final * type.coding = https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_CS_DocumentType#3 "Receipt" diff --git a/Resources/input/fsh/profiles/GEM_ERP_PR_Task.fsh b/Resources/input/fsh/profiles/GEM_ERP_PR_Task.fsh index 198aad44..35c289fd 100644 --- a/Resources/input/fsh/profiles/GEM_ERP_PR_Task.fsh +++ b/Resources/input/fsh/profiles/GEM_ERP_PR_Task.fsh @@ -4,18 +4,6 @@ Id: GEM-ERP-PR-Task Title: "Task for Management of ePrescription Workflow" Description: "This resource manages the ePrescription workflow" * insert Profile(GEM_ERP_PR_Task) -/* -* extension ^slicing.discriminator.type = #value -* extension ^slicing.discriminator.path = "url" -* extension ^slicing.rules = #closed -* extension contains - GEM_ERP_EX_PrescriptionType named flowType 1..1 and - GEM_ERP_EX_AcceptDate named acceptDate 0..1 and - GEM_ERP_EX_ExpiryDate named expiryDate 0..1 - - - -*/ * extension ^slicing.rules = #closed * extension contains GEM_ERP_EX_PrescriptionType named flowType 1..1 * extension contains GEM_ERP_EX_AcceptDate named acceptDate 0..1 @@ -56,28 +44,32 @@ Description: "This resource manages the ePrescription workflow" ePrescription 0..1 and patientReceipt 0..1 and MedicationDispense 0..* + +// QES Binary ePrescription * input[ePrescription].type.coding from GEM_ERP_VS_DocumentType (required) * input[ePrescription].type.coding.system 1.. -//* input[ePrescription].type.coding.system = "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType" (exactly) * input[ePrescription].type.coding.code 1.. * input[ePrescription].type.coding.code = #1 (exactly) * input[ePrescription].value[x] only Reference(GEM_ERP_PR_Binary) * input[ePrescription].value[x].reference 1.. * input[ePrescription] ^short = "QES-Binary of the ePrescription" + +// ePriscription for the patient * input[patientReceipt].type.coding from GEM_ERP_VS_DocumentType (required) * input[patientReceipt].type.coding.system 1.. -//* input[patientReceipt].type.coding.system = "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType" (exactly) * input[patientReceipt].type.coding.code 1.. * input[patientReceipt].type.coding.code = #2 (exactly) -* input[patientReceipt].value[x] only Reference(Bundle) +* input[patientReceipt].value[x] only Reference($KBV_PR_ERP_Bundle) * input[patientReceipt] ^short = "JSON Bundle of the ePrescription to be consumed by the E-Rezept-FdV" + +// References to MedicationDispenses that are part of the task * input[MedicationDispense].type.coding from GEM_ERP_VS_DocumentType (required) * input[MedicationDispense].type.coding.system 1.. -//* input[MedicationDispense].type.coding.system = "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType" (exactly) * input[MedicationDispense].type.coding.code 1.. * input[MedicationDispense].type.coding.code = #4 (exactly) -* input[MedicationDispense].value[x] only Reference(MedicationDispense) +* input[MedicationDispense].value[x] only Reference(GEM_ERP_PR_MedicationDispense) * input[MedicationDispense] ^short = "Reference to the MedicationDispenses of a task" + * output ..1 MS * output ^slicing.discriminator.type = #value * output ^slicing.discriminator.path = "type.coding.code" @@ -85,9 +77,10 @@ Description: "This resource manages the ePrescription workflow" * output ^short = "Output Bundle" * output ^definition = "Reference to the Bundle which represent the receipt." * output contains receipt 0..1 + +// Receipt * output[receipt].type.coding from GEM_ERP_VS_DocumentType (required) * output[receipt].type.coding.system 1.. -//* output[receipt].type.coding.system = "https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType" (exactly) * output[receipt].type.coding.code 1.. * output[receipt].type.coding.code = #3 (exactly) * output[receipt].value[x] only Reference(GEM_ERP_PR_Bundle) diff --git a/Resources/sushi-config.yaml b/Resources/sushi-config.yaml index 780d9203..d14cec2e 100644 --- a/Resources/sushi-config.yaml +++ b/Resources/sushi-config.yaml @@ -7,4 +7,5 @@ version: "1.3.0" dependencies: de.basisprofil.r4: 1.3.2 hl7.fhir.r4.core: 4.0.1 + kbv.ita.for: 1.1.x kbv.ita.erp: 1.1.x \ No newline at end of file