{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-bundle-patientmedicationlist",
  "name": "BundlePatientMedicationList",
  "status": "active",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "patternCode": "transaction"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resource"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Bundle.entry:patientmedicationlist",
        "path": "Bundle.entry",
        "sliceName": "patientmedicationlist",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:patientmedicationlist.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-list-medicationstatement"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:medicationstatement",
        "path": "Bundle.entry",
        "sliceName": "medicationstatement",
        "min": 1
      },
      {
        "id": "Bundle.entry:medicationstatement.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-medicationstatement"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:medication",
        "path": "Bundle.entry",
        "sliceName": "medication",
        "min": 1
      },
      {
        "id": "Bundle.entry:medication.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-medication"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:practitionerrole",
        "path": "Bundle.entry",
        "sliceName": "practitionerrole"
      },
      {
        "id": "Bundle.entry:practitionerrole.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-practitionerrole"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:relatedperson",
        "path": "Bundle.entry",
        "sliceName": "relatedperson"
      },
      {
        "id": "Bundle.entry:relatedperson.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-relatedperson"
            ]
          }
        ]
      }
    ]
  }
}