SMIS Medication Statement profile

Logical URI: http://smis.ch/fhir/StructureDefinition/MedicationStatement

Base Profile

The profile builds on MedicationStatement

identifierΣ0..*Identifier
basedOnΣ I0..*Reference(MedicationRequest | CarePlan | ProcedureRequest | ReferralRequest)
partOfΣ I0..*Reference(MedicationAdministration | MedicationDispense | MedicationStatement | Procedure | Observation)
contextΣ I0..1Reference(Encounter | EpisodeOfCare)
statusΣ ?!1..1codeBinding
categoryΣ0..1CodeableConceptBinding
medicationCodeableConceptCodeableConcept
medicationReferenceReference(Medication)
effectiveDateTimedateTime
effectivePeriodPeriod
dateAssertedΣ0..1dateTime
informationSourceI0..1Reference(Patient | Practitioner | RelatedPerson | Organization)
subjectΣ I1..1Reference(Patient | Group)
derivedFromI0..*Reference(Resource)
takenΣ ?!1..1codeBinding
reasonNotTakenI0..*CodeableConcept
reasonCode0..*CodeableConcept
reasonReferenceI0..*Reference(Condition | Observation)
note0..*Annotation
dosage0..*Dosage

Differential table

identifierΣ0..*Identifier
basedOnΣ I0..*Reference(MedicationRequest | CarePlan | ProcedureRequest | ReferralRequest)
partOfΣ I0..*Reference(MedicationAdministration | MedicationDispense | MedicationStatement | Procedure | Observation)
contextΣ I0..1Reference(Encounter | EpisodeOfCare)
statusΣ ?!1..1codeBinding
categoryΣ0..1CodeableConceptBinding
medicationReferenceΣ1..1Reference(Smis Medication Profile)
effectiveDateTimeΣ0..1dateTime
dateAssertedΣ0..1dateTime
informationSourceI0..1Reference(Patient | Practitioner | RelatedPerson | Organization)
subjectΣ I1..1Reference(SMIS Patient Profile)
derivedFromI0..*Reference(Resource)
takenΣ ?!1..1codeBinding
reasonNotTakenI0..*CodeableConcept
reasonCode0..*CodeableConcept
reasonReferenceI0..*Reference(Condition | Observation)
note0..*Annotation
dosage0..*Dosage

Structure Definition

<StructureDefinition xmlns="http://hl7.org/fhir">
    <id value="MedicationStatement" />
    <meta>
        <lastUpdated value="2018-09-12T21:06:52.587+00:00" />
    </meta>
    <url value="http://smis.ch/fhir/StructureDefinition/MedicationStatement" />
    <version value="1.0" />
    <name value="MedicationStatement" />
    <title value="SMIS Medication Statement Profile" />
    <status value="draft" />
    <date value="2018-09-12T21:06:51.276+00:00" />
    <publisher value="Arpage AG" />
    <contact>
        <name value="Patrick Husi" />
        <telecom>
            <system value="email" />
        </telecom>
    </contact>
    <description value="SMIS Medication Statement Profile" />
    <fhirVersion value="3.0.1" />
    <kind value="resource" />
    <abstract value="false" />
    <type value="MedicationStatement" />
    <baseDefinition value="http://hl7.org/fhir/StructureDefinition/MedicationStatement" />
    <derivation value="constraint" />
    <differential>
        <element id="MedicationStatement.medication[x]:medicationReference">
            <path value="MedicationStatement.medicationReference" />
            <sliceName value="medicationReference" />
            <type>
                <code value="Reference" />
                <targetProfile value="http://smis.ch/fhir/StructureDefinition/Medication" />
                <aggregation value="contained" />
            </type>
        </element>
        <element id="MedicationStatement.effective[x]:effectiveDateTime">
            <path value="MedicationStatement.effectiveDateTime" />
            <sliceName value="effectiveDateTime" />
            <type>
                <code value="dateTime" />
            </type>
        </element>
        <element id="MedicationStatement.subject">
            <path value="MedicationStatement.subject" />
            <type>
                <code value="Reference" />
                <targetProfile value="http://smis.ch/fhir/StructureDefinition/Patient" />
                <aggregation value="referenced" />
            </type>
        </element>
    </differential>
</StructureDefinition>

MedicationStatement example

{
    "resourceType": "MedicationStatement",
    "id": "1536163214130075",
    "meta": {
        "lastUpdated": "2018-09-12T15:10:56.000+02:00",
        "profile":  [
            "http://smis.ch/fhir/StructureDefinition/MedicationStatement"
        ]
    },
    "contained":  [
        {
            "resourceType": "Medication",
            "id": "1",
            "meta": {
                "profile":  [
                    "http://chmed16af.emediplan.ch/fhir/StructureDefinition/chmed16af-medication"
                ]
            },
            "code": {
                "coding":  [
                    {
                        "system": "urn:oid:2.16.756.5.30.2.6.1",
                        "code": "00589857",
                        "display": "ASPIRIN C Brausetabl 11 Stk"
                    }
                ]
            },
            "status": "active",
            "package": {
                "content":  [
                    {
                        "itemCodeableConcept": {
                            "coding":  [
                                {
                                    "system": "http://chmed16af.emediplan.ch/fhir/CodeSystem/chmed16af-codesystem-cdtyp9",
                                    "code": "U",
                                    "display": "Stk"
                                }
                            ]
                        },
                        "amount": {
                            "value": 3,
                            "unit": "Stk",
                            "system": "http://chmed16af.emediplan.ch/fhir/CodeSystem/chmed16af-codesystem-cdtyp9",
                            "code": "Stk"
                        }
                    }
                ]
            }
        }
    ],
    "identifier":  [
        {
            "use": "usual",
            "system": "http://smis.ch/fhir/element/internal_id",
            "value": "1536163214130075"
        },
        {
            "use": "usual",
            "system": "http://smis.ch/fhir/element/external_id",
            "value": "9E4EFB5B-020B-4682-8B20-B8E86A52C5AC"
        }
    ],
    "status": "completed",
    "medicationReference": {
        "reference": "#1"
    },
    "effectiveDateTime": "2008-01-17T00:00:00+01:00",
    "subject": {
        "reference": "Patient/1489161154728048"
    },
    "taken": "unk",
    "reasonCode":  [
        {
            "coding":  [
                {
                    "system": "http://snomed.info/sct",
                    "code": "3219008",
                    "display": "Disease type AND/OR category unknown"
                }
            ]
        }
    ],
    "note":  [
        {
            "text": "Ab der dritten Woche nach Bedarf"
        }
    ],
    "dosage":  [
        {
            "patientInstruction": "Jeweils vor dem Essen",
            "timing": {
                "repeat": {
                    "boundsPeriod": {
                        "start": "2008-02-15T00:00:00+01:00",
                        "end": "2008-03-16T00:00:00+01:00"
                    },
                    "when":  [
                        "ACM"
                    ]
                }
            },
            "asNeededBoolean": true,
            "doseQuantity": {
                "value": 3,
                "unit": "Stk",
                "system": "http://chmed16af.emediplan.ch/fhir/CodeSystem/chmed16af-codesystem-cdtyp9",
                "code": "Stk"
            }
        },
        {
            "patientInstruction": "Jeweils vor dem Essen",
            "timing": {
                "repeat": {
                    "boundsPeriod": {
                        "start": "2008-02-15T00:00:00+01:00",
                        "end": "2008-03-16T00:00:00+01:00"
                    },
                    "when":  [
                        "ACD"
                    ]
                }
            },
            "asNeededBoolean": true,
            "doseQuantity": {
                "value": 4,
                "unit": "Stk",
                "system": "http://chmed16af.emediplan.ch/fhir/CodeSystem/chmed16af-codesystem-cdtyp9",
                "code": "Stk"
            }
        },
        {
            "patientInstruction": "Jeweils vor dem Essen",
            "timing": {
                "repeat": {
                    "boundsPeriod": {
                        "start": "2008-02-15T00:00:00+01:00",
                        "end": "2008-03-16T00:00:00+01:00"
                    },
                    "when":  [
                        "ACV"
                    ]
                }
            },
            "asNeededBoolean": true,
            "doseQuantity": {
                "value": 5,
                "unit": "Stk",
                "system": "http://chmed16af.emediplan.ch/fhir/CodeSystem/chmed16af-codesystem-cdtyp9",
                "code": "Stk"
            }
        },
        {
            "patientInstruction": "Jeweils vor dem Essen",
            "timing": {
                "repeat": {
                    "boundsPeriod": {
                        "start": "2008-02-15T00:00:00+01:00",
                        "end": "2008-03-16T00:00:00+01:00"
                    },
                    "when":  [
                        "NIGHT"
                    ]
                }
            },
            "asNeededBoolean": true,
            "doseQuantity": {
                "value": 6,
                "unit": "Stk",
                "system": "http://chmed16af.emediplan.ch/fhir/CodeSystem/chmed16af-codesystem-cdtyp9",
                "code": "Stk"
            }
        }
    ]
}