From d2db8fd6f57170160cbc64dbfedf0aa3ab4d4bde Mon Sep 17 00:00:00 2001 From: Daniel Vazquez Rivera Date: Wed, 27 Mar 2024 16:42:46 +0100 Subject: [PATCH] [#62] Fixed cardinality of PMLC medication statement () extension , added with CH EMED 5.0.0, to and added it to the IG examples. --- input/fsh/instance/medication_statement.fsh | 6 ++++++ input/fsh/instance/pmlc1.fsh | 17 ++++++++++------- .../medication_statement.fsh | 1 + input/pagecontent/changelog.md | 1 + 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/input/fsh/instance/medication_statement.fsh b/input/fsh/instance/medication_statement.fsh index 16f4ace..9550c4c 100644 --- a/input/fsh/instance/medication_statement.fsh +++ b/input/fsh/instance/medication_statement.fsh @@ -63,6 +63,9 @@ Usage: #example * extension[treatmentPlan].extension[externalDocumentId].url = "externalDocumentId" * extension[treatmentPlan].extension[externalDocumentId].valueIdentifier.system = "urn:ietf:rfc:3986" * extension[treatmentPlan].extension[externalDocumentId].valueIdentifier.value = "urn:uuid:0399ef84-c71b-413b-8a66-b5a835f4f4c5" +* extension[lastConsideredDocument].url = "http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-last-considered-document" +* extension[lastConsideredDocument].valueIdentifier.system = "urn:ietf:rfc:3986" +* extension[lastConsideredDocument].valueIdentifier.value = "urn:uuid:e0c06f3c-1b63-468a-9c46-e800d39b6a15" // #51 TODO add prescription extension??? it is not in the profile but it is at the moment added by the aggregator upon generation * identifier.system = "urn:ietf:rfc:3986" * identifier.value = "urn:uuid:64ac7c70-3edb-4b39-84e6-4045e196884f" @@ -125,6 +128,9 @@ Usage: #example * extension[treatmentPlan].extension[externalDocumentId].url = "externalDocumentId" * extension[treatmentPlan].extension[externalDocumentId].valueIdentifier.system = "urn:ietf:rfc:3986" * extension[treatmentPlan].extension[externalDocumentId].valueIdentifier.value = "urn:uuid:7062399b-61f2-4fb1-b6ba-415c7b6939bc" +* extension[lastConsideredDocument].url = "http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-last-considered-document" +* extension[lastConsideredDocument].valueIdentifier.system = "urn:ietf:rfc:3986" +* extension[lastConsideredDocument].valueIdentifier.value = "urn:uuid:31b60b8f-e15d-42ce-9558-57fde055da7a" // #51 TODO add prescription extension??? it is not in the profile but it is at the moment added by the aggregator upon generation * identifier.system = "urn:ietf:rfc:3986" * identifier.value = "urn:uuid:a98cc3c1-c079-471c-b053-93b01b70f8c4" diff --git a/input/fsh/instance/pmlc1.fsh b/input/fsh/instance/pmlc1.fsh index ff03051..c7dbcde 100644 --- a/input/fsh/instance/pmlc1.fsh +++ b/input/fsh/instance/pmlc1.fsh @@ -145,13 +145,16 @@ Usage: #inline * contained[=].address.city = "Genève" * contained[=].address.postalCode = "1205" * contained[=].address.country = "CH" -* extension.url = "http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan" -* extension.extension[0].url = "id" -* extension.extension[=].valueIdentifier.system = "urn:ietf:rfc:3986" -* extension.extension[=].valueIdentifier.value = "urn:uuid:41b97645-e263-47c2-8d96-79da451a33f2" -* extension.extension[+].url = "externalDocumentId" -* extension.extension[=].valueIdentifier.system = "urn:ietf:rfc:3986" -* extension.extension[=].valueIdentifier.value = "urn:uuid:24c84eef-f9db-4710-8f6c-2d342ad3ac2d" +* extension[treatmentPlan].url = "http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-treatmentplan" +* extension[treatmentPlan].extension[id].url = "id" +* extension[treatmentPlan].extension[id].valueIdentifier.system = "urn:ietf:rfc:3986" +* extension[treatmentPlan].extension[id].valueIdentifier.value = "urn:uuid:41b97645-e263-47c2-8d96-79da451a33f2" +* extension[treatmentPlan].extension[externalDocumentId].url = "externalDocumentId" +* extension[treatmentPlan].extension[externalDocumentId].valueIdentifier.system = "urn:ietf:rfc:3986" +* extension[treatmentPlan].extension[externalDocumentId].valueIdentifier.value = "urn:uuid:24c84eef-f9db-4710-8f6c-2d342ad3ac2d" +* extension[lastConsideredDocument].url = "http://fhir.ch/ig/ch-emed/StructureDefinition/ch-emed-ext-last-considered-document" +* extension[lastConsideredDocument].valueIdentifier.system = "urn:ietf:rfc:3986" +* extension[lastConsideredDocument].valueIdentifier.value = "urn:uuid:24c84eef-f9db-4710-8f6c-2d342ad3ac2d" * identifier.system = "urn:ietf:rfc:3986" * identifier.value = "urn:uuid:41b97645-e263-47c2-8d96-79da451a33f2" * status = #active diff --git a/input/fsh/structuredefinition/medication_statement.fsh b/input/fsh/structuredefinition/medication_statement.fsh index 9cbcb48..43cfbbd 100644 --- a/input/fsh/structuredefinition/medication_statement.fsh +++ b/input/fsh/structuredefinition/medication_statement.fsh @@ -103,6 +103,7 @@ Description: "Definition of the aggregated medication statement for the Medicati * extension[authorDocument].valueReference only Reference(CHEMEDEPRPractitionerRole or CHEMEDEPRPatient or CHEMEDEPRRelatedPerson) * extension[authorDocument] ^short = "The last intervening author, only if different that the last medical author (see 'Document PMLC' and 'Guidance - Different Authors')" * extension[authorDocument] ^comment = "...It represents the author of the last entry (of any kind) in the treatment. If it's the same author as the last medical author, it's not provided." +* extension[lastConsideredDocument] 1..1 * insert base-note-ruleset * note.author[x] 1..1 * note.author[x] only Reference diff --git a/input/pagecontent/changelog.md b/input/pagecontent/changelog.md index 40280c4..c535f18 100644 --- a/input/pagecontent/changelog.md +++ b/input/pagecontent/changelog.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed profile for examples `MedicationStatementParacetamolAxapharmPmlc` and `MedicationStatementParacetamolDafalganEffPmlc` to be `CHEMEDEPRMedicationStatementCard` instead of `CHEMEMedicationStatementCard`. - Added an example for a medication statement with split dosage: `MedicationStatementDafalganEffSplitDose`. - Replace `{Piece}` unit code with SCT `246205007` (`Quantity`) in `CHEMEDEPRAmountQuantityUnitCode` and in the `MedicationWithTwoIngredients` example. +- Fixed cardinality of PMLC medication statement (`CHEMEDEPRMedicationStatementCard`) extension `lastConsideredDocument`, added with CH EMED 5.0.0, to `1..1` and added it to the IG examples. - Updated dependencies to: - CH EMED 5.0.0 - CH Core 5.0.0