{
  "resourceType": "StructureDefinition",
  "id": "au-medlist",
  "url": "http://hl7.org.au/fhir/StructureDefinition/au-medlist",
  "version": "1.1.0",
  "name": "AUMedicineList",
  "title": "AU Medicine List",
  "status": "draft",
  "date": "2018-11-30",
  "publisher": "Health Level Seven Australia (Medications WG)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org.au/fhir",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This profile defines a list structure including core localisation concepts for use as a medicines list in an Australian context. This profile is intended to offer a common structure and expectations to record, exchange, and fetch a list of medications associated with a patient in an Australian healthcare context.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "List",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/List",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "List",
        "path": "List",
        "short": "A list of medications in an Australian healthcare context"
      },
      {
        "id": "List.extension",
        "path": "List.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "List.extension:sourceRole",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "draft"
          }
        ],
        "path": "List.extension",
        "sliceName": "sourceRole",
        "short": "Practitioner role that defined the list contents (aka Author)",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org.au/fhir/StructureDefinition/author-role"
          }
        ]
      },
      {
        "id": "List.extension:sourceRelatedPerson",
        "path": "List.extension",
        "sliceName": "sourceRelatedPerson",
        "short": "Related person that defined the list contents (aka Author)",
        "definition": "The entity (related person) responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org.au/fhir/StructureDefinition/author-related-person"
          }
        ]
      },
      {
        "id": "List.entry",
        "path": "List.entry",
        "short": "Medicine list entry",
        "definition": "List of medicine type entries"
      },
      {
        "id": "List.entry.extension",
        "path": "List.entry.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "List.entry.extension:changeDescription",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "draft"
          }
        ],
        "path": "List.entry.extension",
        "sliceName": "changeDescription",
        "short": "Description of the change to the item",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org.au/fhir/StructureDefinition/change-description"
          }
        ]
      },
      {
        "id": "List.entry.flag",
        "path": "List.entry.flag",
        "short": "Medicine item change",
        "binding": {
          "strength": "preferred",
          "valueSetReference": {
            "reference": "http://hl7.org.au/fhir/ValueSet/medicine-item-change"
          }
        }
      },
      {
        "id": "List.entry.item",
        "path": "List.entry.item",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/MedicationStatement"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/MedicationDispense"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Immunization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org.au/fhir/StructureDefinition/au-norelevantfinding"
          }
        ]
      }
    ]
  }
}