{
  "resourceType": "StructureDefinition",
  "url": "http://apiframework.dedalus.eu/fhir/StructureDefinition/List-ForMedicationDischarge",
  "name": "List-ForMedicationDischarge",
  "title": "List-ForMedicationDischarge",
  "status": "active",
  "experimental": false,
  "description": "Represent a collected snapshot of medication statement information, either flat or grouped by sub-lists of joint statements, that is the output of the medication history collection process (e.g. performed when a patient is admitted)",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "List",
  "baseDefinition": "http://apiframework.dedalus.eu/fhir/StructureDefinition/List",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "List.status",
        "path": "List.status",
        "fixedCode": "current"
      },
      {
        "id": "List.mode",
        "path": "List.mode",
        "fixedCode": "snapshot"
      },
      {
        "id": "List.title",
        "path": "List.title",
        "mustSupport": true
      },
      {
        "id": "List.code",
        "path": "List.code",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://apiframework.dedalus.eu/fhir/ValueSet/ListCodes"
          }
        }
      },
      {
        "id": "List.code.coding",
        "path": "List.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "List.code.coding.code",
        "path": "List.code.coding.code",
        "min": 1,
        "fixedCode": "medication-discharge"
      },
      {
        "id": "List.subject",
        "path": "List.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Patient"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "List.encounter",
        "path": "List.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Encounter"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "List.date",
        "path": "List.date",
        "min": 1
      },
      {
        "id": "List.source",
        "path": "List.source",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "List.entry.item",
        "path": "List.entry.item",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/MedicationRequest"
          }
        ]
      },
      {
        "id": "List.entry.item.reference",
        "path": "List.entry.item.reference",
        "min": 1
      },
      {
        "id": "List.emptyReason",
        "path": "List.emptyReason",
        "mustSupport": true
      }
    ]
  }
}