From 61a6a0efb951b039700fc40b51588c04a80e2f0c Mon Sep 17 00:00:00 2001 From: Hendre Janse van Rensburg Date: Fri, 23 Aug 2024 12:10:05 +0200 Subject: [PATCH] add the readme file and fix a rule set bug --- API-Examples/FSH-Files/README.md | 23 ++++++++++ .../FSH-Files/fsh-generated/fsh-index.json | 42 +++++++++---------- .../FSH-Files/fsh-generated/fsh-index.txt | 42 +++++++++---------- ...versicherte-02-response-taskGetSingle.json | 4 +- ...arameters-ExampleCloseInputParameters.json | 14 +++++-- ...ameters-ExampleInputMultipleDispenses.json | 24 +++++++++-- ...Parameters-ExampleCloseInputParameters.fsh | 4 +- .../input/fsh/rulesets/Versioning.fsh | 5 ++- 8 files changed, 106 insertions(+), 52 deletions(-) create mode 100644 API-Examples/FSH-Files/README.md diff --git a/API-Examples/FSH-Files/README.md b/API-Examples/FSH-Files/README.md new file mode 100644 index 00000000..e07ca91e --- /dev/null +++ b/API-Examples/FSH-Files/README.md @@ -0,0 +1,23 @@ +# Documentation Guide + +## Table of Contents +- [Introduction](#introduction) +- [Instructions](#instructions) + - [Generating the Examples](#generating-the-examples) + - [Updating or Adding Examples](#updating-or-adding-examples) + +## Introduction +This folder contains the FSH files and a script to recreate the examples for the API documentation of a specific Workflow Package profile. + +## Instructions +### Generating the Examples +Follow these steps to produce the examples for the specified version: +1. Update the version parameters in the `Versioning.fsh` file. +2. Run the `main.sh` script. +3. The examples will be generated in the `output` folder. + +### Updating or Adding Examples +The examples are located in the `/input/fsh/examples` folder, with subfolders corresponding to the various pages. These FSH files can be modified, and new ones can be added. + +- Any examples that need to remain as JSON files and not be converted to XML files should be added to the `/scripts/process_files.sh` script. +- Any non-FSH files added to the input folders will be copied as-is to the corresponding subfolder in the `output` folder. This is useful for non-FHIR examples that are also being displayed. diff --git a/API-Examples/FSH-Files/fsh-generated/fsh-index.json b/API-Examples/FSH-Files/fsh-generated/fsh-index.json index 88dfbcb9..824ba3b4 100644 --- a/API-Examples/FSH-Files/fsh-generated/fsh-index.json +++ b/API-Examples/FSH-Files/fsh-generated/fsh-index.json @@ -45,7 +45,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_abrufen\\07_request_taskCloseMultiple.fsh", "startLine": 1, - "endLine": 10 + "endLine": 9 }, { "outputFile": "Bundle-erp-abrufen-09-response-taskClose.json", @@ -53,7 +53,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_abrufen\\09_response_taskClose.fsh", "startLine": 1, - "endLine": 22 + "endLine": 21 }, { "outputFile": "Bundle-erp-abrufen-10-response-taskGet.json", @@ -261,7 +261,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_communication\\01_request_PostPatientToPharmacy.fsh", "startLine": 1, - "endLine": 28 + "endLine": 27 }, { "outputFile": "Communication-erp-communication-02-response-PostPatientToPharmacy.json", @@ -269,7 +269,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_communication\\02_response_PostPatientToPharmacy.fsh", "startLine": 1, - "endLine": 33 + "endLine": 32 }, { "outputFile": "Communication-erp-communication-03-request-PostPharmacyToPatient.json", @@ -277,7 +277,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_communication\\03_request_PostPharmacyToPatient.fsh", "startLine": 1, - "endLine": 10 + "endLine": 9 }, { "outputFile": "Communication-erp-communication-04-response-PostPharmacyToPatient.json", @@ -285,7 +285,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_communication\\04_response_PostPharmacyToPatient.fsh", "startLine": 1, - "endLine": 15 + "endLine": 14 }, { "outputFile": "Communication-erp-communication-05-request-RezeptZuweisen.json", @@ -293,7 +293,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_communication\\05_request_RezeptZuweisen.fsh", "startLine": 1, - "endLine": 10 + "endLine": 9 }, { "outputFile": "Communication-erp-communication-06-response-RezeptZuweisen.json", @@ -301,7 +301,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_communication\\06_response_RezeptZuweisen.fsh", "startLine": 1, - "endLine": 15 + "endLine": 14 }, { "outputFile": "Communication-erp-diga-03-communication-zuweisung-diga.json", @@ -309,7 +309,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_diga\\03_communication_zuweisung_diga.fsh", "startLine": 1, - "endLine": 15 + "endLine": 14 }, { "outputFile": "Consent-erp-consent-01-request-PostConsent.json", @@ -333,7 +333,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_eml_epa_notes\\03_Medication-Medication-Rezeptur.fsh", "startLine": 1, - "endLine": 29 + "endLine": 28 }, { "outputFile": "Medication-erp-eml-epa-notes-04-Medication-Medication-Kombipackung.json", @@ -341,7 +341,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_eml_epa_notes\\04_Medication-Medication-Kombipackung.fsh", "startLine": 1, - "endLine": 19 + "endLine": 18 }, { "outputFile": "MedicationDispense-erp-abrufen-06-request-taskClose.json", @@ -349,7 +349,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_abrufen\\06_request_taskClose.fsh", "startLine": 1, - "endLine": 17 + "endLine": 16 }, { "outputFile": "MedicationDispense-erp-abrufen-08-response-taskDispense.json", @@ -357,7 +357,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_abrufen\\08_response_taskDispense.fsh", "startLine": 1, - "endLine": 17 + "endLine": 16 }, { "outputFile": "MedicationDispense-erp-diga-04-medication-dispense-diga.json", @@ -373,7 +373,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_diga\\06_medication_dispense_diga.fsh", "startLine": 1, - "endLine": 18 + "endLine": 17 }, { "outputFile": "OperationOutcome-erp-statuscodes-01-example-operationOutcome-validation.json", @@ -405,7 +405,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_eml_epa_notes\\01_Parameters-ExampleCloseInputParameters.fsh", "startLine": 1, - "endLine": 42 + "endLine": 40 }, { "outputFile": "Parameters-erp-eml-epa-notes-02-Parameters-ExampleInputMultipleDispenses.json", @@ -413,7 +413,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_eml_epa_notes\\02_Parameters-ExampleDispenseInputParametersMultipleMedicationDispenses.fsh", "startLine": 1, - "endLine": 83 + "endLine": 82 }, { "outputFile": "Parameters-erp-steuerung-durch-le-01-request-taskCreate169.json", @@ -453,7 +453,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_bereitstellen\\01_response_taskCreate.fsh", "startLine": 1, - "endLine": 22 + "endLine": 21 }, { "outputFile": "Task-erp-bereitstellen-05-response-taskActivate.json", @@ -461,7 +461,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_bereitstellen\\05_response_taskActivate.fsh", "startLine": 1, - "endLine": 31 + "endLine": 30 }, { "outputFile": "Task-erp-diga-01-task-162-create.json", @@ -469,7 +469,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_diga\\01_task_162_create.fsh", "startLine": 1, - "endLine": 21 + "endLine": 20 }, { "outputFile": "Task-erp-steuerung-durch-le-02-response-taskCreate169.json", @@ -477,7 +477,7 @@ "fshType": "Instance", "fshFile": "examples\\erp_steuerung_durch_le\\02_response_taskCreate169.fsh", "startLine": 1, - "endLine": 24 + "endLine": 23 }, { "outputFile": "Task-erp-steuerung-durch-le-04-response-taskActivate.json", @@ -485,6 +485,6 @@ "fshType": "Instance", "fshFile": "examples\\erp_steuerung_durch_le\\04_response_taskActivate.fsh", "startLine": 1, - "endLine": 26 + "endLine": 25 } ] diff --git a/API-Examples/FSH-Files/fsh-generated/fsh-index.txt b/API-Examples/FSH-Files/fsh-generated/fsh-index.txt index 05e231dc..6648c7a8 100644 --- a/API-Examples/FSH-Files/fsh-generated/fsh-index.txt +++ b/API-Examples/FSH-Files/fsh-generated/fsh-index.txt @@ -4,8 +4,8 @@ Bundle-authentisieren-07-response-InnverVau.json a Bundle-erp-abrufen-01-response-taskAccept.json erp-abrufen-01-response-taskAccept Instance examples\erp_abrufen\01_response_taskAccept.fsh 1 - 9 Bundle-erp-abrufen-02-response-taskAcceptWithConsent.json erp-abrufen-02-response-taskAcceptWithConsent Instance examples\erp_abrufen\02_response_taskAcceptWithConsent.fsh 1 - 13 Bundle-erp-abrufen-03-request-recovery-secret.json erp-abrufen-03-request-recovery-secret Instance examples\erp_abrufen\03_request_recovery_secret.fsh 1 - 11 -Bundle-erp-abrufen-07-request-taskCloseMultiple.json erp-abrufen-07-request-taskCloseMultiple Instance examples\erp_abrufen\07_request_taskCloseMultiple.fsh 1 - 10 -Bundle-erp-abrufen-09-response-taskClose.json erp-abrufen-09-response-taskClose Instance examples\erp_abrufen\09_response_taskClose.fsh 1 - 22 +Bundle-erp-abrufen-07-request-taskCloseMultiple.json erp-abrufen-07-request-taskCloseMultiple Instance examples\erp_abrufen\07_request_taskCloseMultiple.fsh 1 - 9 +Bundle-erp-abrufen-09-response-taskClose.json erp-abrufen-09-response-taskClose Instance examples\erp_abrufen\09_response_taskClose.fsh 1 - 21 Bundle-erp-abrufen-10-response-taskGet.json erp-abrufen-10-response-taskGet Instance examples\erp_abrufen\10_response_taskGet.fsh 1 - 9 Bundle-erp-abrufen-egk-05-Response-Task.json erp-abrufen-egk-05-Response-Task Instance examples\erp_abrufen_egk\05_Response_Task.fsh 1 - 12 Bundle-erp-bereitstellen-02-Prescription-Bundle.json erp-bereitstellen-02-Prescription-Bundle Instance examples\erp_bereitstellen\02_Prescription_bundle.fsh 1 - 26 @@ -31,32 +31,32 @@ ChargeItem-erp-chargeItem-04-POST-ChargeItem-Response.json e ChargeItem-erp-chargeItem-06-PUT-ChargeItem-Request.json erp-chargeItem-06-PUT-ChargeItem-Request Instance examples\erp_chargeItem\06_PUT_ChargeItem_Request.fsh 1 - 19 ChargeItem-erp-chargeItem-07-PUT-ChargeItem-Response.json erp-chargeItem-07-PUT-ChargeItem-Response Instance examples\erp_chargeItem\07_PUT_ChargeItem_Response.fsh 1 - 16 ChargeItem-erp-chargeItem-11-PATCH-ChargeItem-Response.json erp-chargeItem-11-PATCH-ChargeItem-Response Instance examples\erp_chargeItem\11_PATCH_ChargeItem_Response.fsh 1 - 26 -Communication-erp-communication-01-request-PostPatientToPharmacy.json erp-communication-01-request-PostPatientToPharmacy Instance examples\erp_communication\01_request_PostPatientToPharmacy.fsh 1 - 28 -Communication-erp-communication-02-response-PostPatientToPharmacy.json erp-communication-02-response-PostPatientToPharmacy Instance examples\erp_communication\02_response_PostPatientToPharmacy.fsh 1 - 33 -Communication-erp-communication-03-request-PostPharmacyToPatient.json erp-communication-03-request-PostPharmacyToPatient Instance examples\erp_communication\03_request_PostPharmacyToPatient.fsh 1 - 10 -Communication-erp-communication-04-response-PostPharmacyToPatient.json erp-communication-04-response-PostPharmacyToPatient Instance examples\erp_communication\04_response_PostPharmacyToPatient.fsh 1 - 15 -Communication-erp-communication-05-request-RezeptZuweisen.json erp-communication-05-request-RezeptZuweisen Instance examples\erp_communication\05_request_RezeptZuweisen.fsh 1 - 10 -Communication-erp-communication-06-response-RezeptZuweisen.json erp-communication-06-response-RezeptZuweisen Instance examples\erp_communication\06_response_RezeptZuweisen.fsh 1 - 15 -Communication-erp-diga-03-communication-zuweisung-diga.json erp-diga-03-communication-zuweisung-diga Instance examples\erp_diga\03_communication_zuweisung_diga.fsh 1 - 15 +Communication-erp-communication-01-request-PostPatientToPharmacy.json erp-communication-01-request-PostPatientToPharmacy Instance examples\erp_communication\01_request_PostPatientToPharmacy.fsh 1 - 27 +Communication-erp-communication-02-response-PostPatientToPharmacy.json erp-communication-02-response-PostPatientToPharmacy Instance examples\erp_communication\02_response_PostPatientToPharmacy.fsh 1 - 32 +Communication-erp-communication-03-request-PostPharmacyToPatient.json erp-communication-03-request-PostPharmacyToPatient Instance examples\erp_communication\03_request_PostPharmacyToPatient.fsh 1 - 9 +Communication-erp-communication-04-response-PostPharmacyToPatient.json erp-communication-04-response-PostPharmacyToPatient Instance examples\erp_communication\04_response_PostPharmacyToPatient.fsh 1 - 14 +Communication-erp-communication-05-request-RezeptZuweisen.json erp-communication-05-request-RezeptZuweisen Instance examples\erp_communication\05_request_RezeptZuweisen.fsh 1 - 9 +Communication-erp-communication-06-response-RezeptZuweisen.json erp-communication-06-response-RezeptZuweisen Instance examples\erp_communication\06_response_RezeptZuweisen.fsh 1 - 14 +Communication-erp-diga-03-communication-zuweisung-diga.json erp-diga-03-communication-zuweisung-diga Instance examples\erp_diga\03_communication_zuweisung_diga.fsh 1 - 14 Consent-erp-consent-01-request-PostConsent.json erp-consent-01-request-PostConsent Instance examples\erp_consent\01_request_PostConsent.fsh 1 - 12 Consent-erp-consent-02-response-PostConsent.json erp-consent-02-response-PostConsent Instance examples\erp_consent\02_response_PostConsent.fsh 1 - 12 -Medication-erp-eml-epa-notes-03-Medication-Medication-Rezeptur.json erp-eml-epa-notes-03-Medication-Medication-Rezeptur Instance examples\erp_eml_epa_notes\03_Medication-Medication-Rezeptur.fsh 1 - 29 -Medication-erp-eml-epa-notes-04-Medication-Medication-Kombipackung.json erp-eml-epa-notes-04-Medication-Medication-Kombipackung Instance examples\erp_eml_epa_notes\04_Medication-Medication-Kombipackung.fsh 1 - 19 -MedicationDispense-erp-abrufen-06-request-taskClose.json erp-abrufen-06-request-taskClose Instance examples\erp_abrufen\06_request_taskClose.fsh 1 - 17 -MedicationDispense-erp-abrufen-08-response-taskDispense.json erp-abrufen-08-response-taskDispense Instance examples\erp_abrufen\08_response_taskDispense.fsh 1 - 17 +Medication-erp-eml-epa-notes-03-Medication-Medication-Rezeptur.json erp-eml-epa-notes-03-Medication-Medication-Rezeptur Instance examples\erp_eml_epa_notes\03_Medication-Medication-Rezeptur.fsh 1 - 28 +Medication-erp-eml-epa-notes-04-Medication-Medication-Kombipackung.json erp-eml-epa-notes-04-Medication-Medication-Kombipackung Instance examples\erp_eml_epa_notes\04_Medication-Medication-Kombipackung.fsh 1 - 18 +MedicationDispense-erp-abrufen-06-request-taskClose.json erp-abrufen-06-request-taskClose Instance examples\erp_abrufen\06_request_taskClose.fsh 1 - 16 +MedicationDispense-erp-abrufen-08-response-taskDispense.json erp-abrufen-08-response-taskDispense Instance examples\erp_abrufen\08_response_taskDispense.fsh 1 - 16 MedicationDispense-erp-diga-04-medication-dispense-diga.json erp-diga-04-medication-dispense-diga Instance examples\erp_diga\04_medication_dispense_diga.fsh 1 - 17 -MedicationDispense-erp-diga-06-medication-dispense-diga.json erp-diga-06-medication-dispense-diga Instance examples\erp_diga\06_medication_dispense_diga.fsh 1 - 18 +MedicationDispense-erp-diga-06-medication-dispense-diga.json erp-diga-06-medication-dispense-diga Instance examples\erp_diga\06_medication_dispense_diga.fsh 1 - 17 OperationOutcome-erp-statuscodes-01-example-operationOutcome-validation.json erp-statuscodes-01-example-operationOutcome-validation Instance examples\erp_statuscodes\01_example_operationOutcome_validation.fsh 1 - 7 OperationOutcome-erp-statuscodes-02-example-operationOutcome-status.json erp-statuscodes-02-example-operationOutcome-status Instance examples\erp_statuscodes\02_example_operationOutcome_status.fsh 1 - 6 Parameters-erp-chargeItem-10-patch-chargeitem-request.json erp-chargeItem-10-patch-chargeitem-request Instance examples\erp_chargeItem\10_PATCH_ChargeItem_Request.fsh 1 - 21 -Parameters-erp-eml-epa-notes-01-Parameters-ExampleCloseInputParameters.json erp-eml-epa-notes-01-Parameters-ExampleCloseInputParameters Instance examples\erp_eml_epa_notes\01_Parameters-ExampleCloseInputParameters.fsh 1 - 42 -Parameters-erp-eml-epa-notes-02-Parameters-ExampleInputMultipleDispenses.json erp-eml-epa-notes-02-Parameters-ExampleInputMultipleDispenses Instance examples\erp_eml_epa_notes\02_Parameters-ExampleDispenseInputParametersMultipleMedicationDispenses.fsh 1 - 83 +Parameters-erp-eml-epa-notes-01-Parameters-ExampleCloseInputParameters.json erp-eml-epa-notes-01-Parameters-ExampleCloseInputParameters Instance examples\erp_eml_epa_notes\01_Parameters-ExampleCloseInputParameters.fsh 1 - 40 +Parameters-erp-eml-epa-notes-02-Parameters-ExampleInputMultipleDispenses.json erp-eml-epa-notes-02-Parameters-ExampleInputMultipleDispenses Instance examples\erp_eml_epa_notes\02_Parameters-ExampleDispenseInputParametersMultipleMedicationDispenses.fsh 1 - 82 Parameters-erp-steuerung-durch-le-01-request-taskCreate169.json erp-steuerung-durch-le-01-request-taskCreate169 Instance examples\erp_steuerung_durch_le\01_request_taskCreate169.fsh 1 - 5 Parameters-erp-steuerung-durch-le-03-request-taskActivate169.json erp-steuerung-durch-le-03-request-taskActivate169 Instance examples\erp_steuerung_durch_le\03_request_taskActivate169.fsh 1 - 7 Subscription-erp-notification-avs-01-request-PostSubscriptionPseudo.json erp-notification-avs-01-request-PostSubscriptionPseudo Instance examples\erp_notification_avs\01_request_PostSubscriptionPseudo.fsh 1 - 7 Subscription-erp-notification-avs-02-response-PostSubscriptionPseudo.json erp-notification-avs-02-response-PostSubscriptionPseudo Instance examples\erp_notification_avs\02_response_PostSubscriptionPseudo.fsh 1 - 9 -Task-erp-bereitstellen-01-response-taskCreate.json erp-bereitstellen-01-response-taskCreate Instance examples\erp_bereitstellen\01_response_taskCreate.fsh 1 - 22 -Task-erp-bereitstellen-05-response-taskActivate.json erp-bereitstellen-05-response-taskActivate Instance examples\erp_bereitstellen\05_response_taskActivate.fsh 1 - 31 -Task-erp-diga-01-task-162-create.json erp-diga-01-task-162-create Instance examples\erp_diga\01_task_162_create.fsh 1 - 21 -Task-erp-steuerung-durch-le-02-response-taskCreate169.json erp-steuerung-durch-le-02-response-taskCreate169 Instance examples\erp_steuerung_durch_le\02_response_taskCreate169.fsh 1 - 24 -Task-erp-steuerung-durch-le-04-response-taskActivate.json erp-steuerung-durch-le-04-response-taskActivate Instance examples\erp_steuerung_durch_le\04_response_taskActivate.fsh 1 - 26 \ No newline at end of file +Task-erp-bereitstellen-01-response-taskCreate.json erp-bereitstellen-01-response-taskCreate Instance examples\erp_bereitstellen\01_response_taskCreate.fsh 1 - 21 +Task-erp-bereitstellen-05-response-taskActivate.json erp-bereitstellen-05-response-taskActivate Instance examples\erp_bereitstellen\05_response_taskActivate.fsh 1 - 30 +Task-erp-diga-01-task-162-create.json erp-diga-01-task-162-create Instance examples\erp_diga\01_task_162_create.fsh 1 - 20 +Task-erp-steuerung-durch-le-02-response-taskCreate169.json erp-steuerung-durch-le-02-response-taskCreate169 Instance examples\erp_steuerung_durch_le\02_response_taskCreate169.fsh 1 - 23 +Task-erp-steuerung-durch-le-04-response-taskActivate.json erp-steuerung-durch-le-04-response-taskActivate Instance examples\erp_steuerung_durch_le\04_response_taskActivate.fsh 1 - 25 \ No newline at end of file diff --git a/API-Examples/FSH-Files/fsh-generated/resources/Bundle-erp-versicherte-02-response-taskGetSingle.json b/API-Examples/FSH-Files/fsh-generated/resources/Bundle-erp-versicherte-02-response-taskGetSingle.json index c18250fa..3b079ad0 100644 --- a/API-Examples/FSH-Files/fsh-generated/resources/Bundle-erp-versicherte-02-response-taskGetSingle.json +++ b/API-Examples/FSH-Files/fsh-generated/resources/Bundle-erp-versicherte-02-response-taskGetSingle.json @@ -75,7 +75,9 @@ } ] }, - "valueString": "f8c2298f-7c00-4a68-af29-8a2862d55d43" + "valueReference": { + "reference": "urn:uuid:f8c2298f-7c00-4a68-af29-8a2862d55d43" + } } ], "intent": "order", diff --git a/API-Examples/FSH-Files/fsh-generated/resources/Parameters-erp-eml-epa-notes-01-Parameters-ExampleCloseInputParameters.json b/API-Examples/FSH-Files/fsh-generated/resources/Parameters-erp-eml-epa-notes-01-Parameters-ExampleCloseInputParameters.json index 489d0198..5538e9c4 100644 --- a/API-Examples/FSH-Files/fsh-generated/resources/Parameters-erp-eml-epa-notes-01-Parameters-ExampleCloseInputParameters.json +++ b/API-Examples/FSH-Files/fsh-generated/resources/Parameters-erp-eml-epa-notes-01-Parameters-ExampleCloseInputParameters.json @@ -3,9 +3,7 @@ "id": "erp-eml-epa-notes-01-Parameters-ExampleCloseInputParameters", "meta": { "profile": [ - "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_CloseOperation_Input|1.3", - "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3", - "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Medication|1.3" + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_CloseOperation_Input|1.3" ] }, "parameter": [ @@ -13,6 +11,11 @@ "part": [ { "resource": { + "meta": { + "profile": [ + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3" + ] + }, "resourceType": "MedicationDispense", "id": "Example-MedicationDispense", "identifier": [ @@ -48,6 +51,11 @@ }, { "resource": { + "meta": { + "profile": [ + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Medication|1.3" + ] + }, "resourceType": "Medication", "id": "SumatripanMedication", "extension": [ diff --git a/API-Examples/FSH-Files/fsh-generated/resources/Parameters-erp-eml-epa-notes-02-Parameters-ExampleInputMultipleDispenses.json b/API-Examples/FSH-Files/fsh-generated/resources/Parameters-erp-eml-epa-notes-02-Parameters-ExampleInputMultipleDispenses.json index 2811a148..2c52e98a 100644 --- a/API-Examples/FSH-Files/fsh-generated/resources/Parameters-erp-eml-epa-notes-02-Parameters-ExampleInputMultipleDispenses.json +++ b/API-Examples/FSH-Files/fsh-generated/resources/Parameters-erp-eml-epa-notes-02-Parameters-ExampleInputMultipleDispenses.json @@ -3,9 +3,7 @@ "id": "erp-eml-epa-notes-02-Parameters-ExampleInputMultipleDispenses", "meta": { "profile": [ - "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_DispenseOperation_Input|1.3", - "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3", - "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Medication|1.3" + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_DispenseOperation_Input|1.3" ] }, "parameter": [ @@ -13,6 +11,11 @@ "part": [ { "resource": { + "meta": { + "profile": [ + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3" + ] + }, "resourceType": "MedicationDispense", "id": "Example-MedicationDispense", "identifier": [ @@ -48,6 +51,11 @@ }, { "resource": { + "meta": { + "profile": [ + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Medication|1.3" + ] + }, "resourceType": "Medication", "id": "SumatripanMedication", "extension": [ @@ -108,6 +116,11 @@ "part": [ { "resource": { + "meta": { + "profile": [ + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_MedicationDispense|1.3" + ] + }, "resourceType": "MedicationDispense", "id": "Example-MedicationDispense-2", "identifier": [ @@ -143,6 +156,11 @@ }, { "resource": { + "meta": { + "profile": [ + "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Medication|1.3" + ] + }, "resourceType": "Medication", "id": "Medication-Without-Strength-Code", "code": { diff --git a/API-Examples/FSH-Files/input/fsh/examples/erp_eml_epa_notes/01_Parameters-ExampleCloseInputParameters.fsh b/API-Examples/FSH-Files/input/fsh/examples/erp_eml_epa_notes/01_Parameters-ExampleCloseInputParameters.fsh index 62fde9ab..9f350388 100644 --- a/API-Examples/FSH-Files/input/fsh/examples/erp_eml_epa_notes/01_Parameters-ExampleCloseInputParameters.fsh +++ b/API-Examples/FSH-Files/input/fsh/examples/erp_eml_epa_notes/01_Parameters-ExampleCloseInputParameters.fsh @@ -6,7 +6,7 @@ Usage: #example * parameter.part[0].name = "medicationDispense" * parameter.part[=].resource.resourceType = "MedicationDispense" * parameter.part[=].resource.id = "Example-MedicationDispense" -* insert ParameterPartProfile(StructureDefinition/GEM_ERP_PR_MedicationDispense) +* insert OnlyParameterPartProfile(StructureDefinition/GEM_ERP_PR_MedicationDispense) * parameter.part[=].resource.identifier.system = "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId" * parameter.part[=].resource.identifier.value = "160.000.033.491.280.78" * parameter.part[=].resource.status = #completed @@ -21,7 +21,7 @@ Usage: #example * parameter.part[=].resource.resourceType = "Medication" * parameter.part[=].resource.id = "SumatripanMedication" //* parameter.part[=].resource.meta.profile = "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Medication|1.3" -* insert ParameterPartProfile(StructureDefinition/GEM_ERP_PR_Medication) +* insert OnlyParameterPartProfile(StructureDefinition/GEM_ERP_PR_Medication) * parameter.part[=].resource.extension[0].url = "https://gematik.de/fhir/dev-epa-medication/StructureDefinition/drug-category-extension" * parameter.part[=].resource.extension[=].valueCoding.code = #00 * parameter.part[=].resource.extension[+].url = "https://gematik.de/fhir/dev-epa-medication/StructureDefinition/medication-id-vaccine-extension" diff --git a/API-Examples/FSH-Files/input/fsh/rulesets/Versioning.fsh b/API-Examples/FSH-Files/input/fsh/rulesets/Versioning.fsh index f39a70e7..cc4d69b9 100644 --- a/API-Examples/FSH-Files/input/fsh/rulesets/Versioning.fsh +++ b/API-Examples/FSH-Files/input/fsh/rulesets/Versioning.fsh @@ -8,5 +8,8 @@ RuleSet: MetaProfile(profile, version) RuleSet: EntryResourcePackage(profile) * entry[=].resource.meta.profile = "https://gematik.de/fhir/erp/{profile}|1.3" +RuleSet: OnlyParameterPartProfile(profile) +* parameter.part[=].resource.meta.profile = "https://gematik.de/fhir/erp/{profile}|1.3" + RuleSet: ParameterPartProfile(profile) -* parameter.part[=].resource.meta.profile = "https://gematik.de/fhir/erp/{profile}|1.3" \ No newline at end of file +* parameter[=].part[=].resource.meta.profile = "https://gematik.de/fhir/erp/{profile}|1.3" \ No newline at end of file