Skip to content

Commit

Permalink
[#62] Fixed cardinality of PMLC medication statement () extension , a…
Browse files Browse the repository at this point in the history
…dded with CH EMED 5.0.0, to and added it to the IG examples.
  • Loading branch information
dvribeira committed Mar 27, 2024
1 parent 27d7a7c commit d2db8fd
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
6 changes: 6 additions & 0 deletions input/fsh/instance/medication_statement.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
17 changes: 10 additions & 7 deletions input/fsh/instance/pmlc1.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions input/fsh/structuredefinition/medication_statement.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions input/pagecontent/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2db8fd

Please sign in to comment.