{
  "resourceType": "StructureDefinition",
  "id": "ee-tis-medication-list",
  "url": "https://fhir.ee/StructureDefinition/ee-tis-medication-list",
  "version": "1.0.0",
  "name": "EETISMedicationList",
  "status": "draft",
  "date": "2024-01-19T13:17:15.4473399+00:00",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "List",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/List",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "List",
        "path": "List",
        "short": "RAVIMISKEEM",
        "definition": "List of patient's medication. A List is a curated collection of resources, for things such as problem lists, allergy lists, facility list, organization list, etc."
      },
      {
        "id": "List.contained",
        "path": "List.contained",
        "max": "0"
      },
      {
        "id": "List.title",
        "path": "List.title",
        "short": "Ravimiskeem"
      },
      {
        "id": "List.code",
        "path": "List.code",
        "short": "Ravimiskeem - kas on vaja teha oma koodisüsteem?",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/ValueSet/list-example-codes",
              "code": "medications",
              "display": "Medication List"
            }
          ],
          "text": "Medication List"
        }
      },
      {
        "id": "List.subject",
        "path": "List.subject",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.ee/StructureDefinition/ee-tis-patient"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "List.encounter",
        "path": "List.encounter",
        "max": "0"
      },
      {
        "id": "List.source",
        "path": "List.source",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.ee/StructureDefinition/ee-tis-device-tjt",
              "https://fhir.ee/StructureDefinition/ee-tis-practitioner",
              "https://fhir.ee/StructureDefinition/ee-tis-practitioner-role"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "List.entry.item",
        "path": "List.entry.item",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.ee/StructureDefinition/ee-tis-medication-statement"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      }
    ]
  }
}