{
  "resourceType": "StructureDefinition",
  "id": "TEST-med-list",
  "url": "https://cstest.test.not.a.url/StructureDefinition/TEST-med-list",
  "version": "0.0.1",
  "name": "TESTmedlist",
  "title": "TESTmedlist",
  "status": "active",
  "experimental": false,
  "date": "2024-10-30",
  "publisher": "TEST-med-list",
  "copyright": "TEST-med-list",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "List",
  "baseDefinition": "https://cstest.test.not.a.url/StructureDefinition/cstest-List",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "List.status",
        "path": "List.status",
        "mustSupport": true
      },
      {
        "id": "List.mode",
        "path": "List.mode",
        "mustSupport": true
      },
      {
        "id": "List.code",
        "path": "List.code",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "933361000000108",
              "display": "Medications and medical devices"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "List.subject",
        "path": "List.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "List.encounter",
        "path": "List.encounter",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Encounter"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "List.source",
        "path": "List.source",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://cstest.test.not.a.url/StructureDefinition/cstest-Device"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "List.note.author[x]",
        "path": "List.note.author[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson"
            ]
          },
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "List.entry",
        "path": "List.entry",
        "mustSupport": true
      },
      {
        "id": "List.entry.item",
        "path": "List.entry.item",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-MedicationStatement"
            ]
          }
        ]
      }
    ]
  }
}