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