{
  "resourceType": "StructureDefinition",
  "id": "edf829dd-5e27-4c4a-a92a-7f96fb4e8f17",
  "meta": {
    "lastUpdated": "2020-03-09T14:50:35.907+00:00"
  },
  "url": "http://clevehr.com/fhir/StructureDefinition/ClevehrRecipe",
  "name": "ClevehrRecipe",
  "status": "draft",
  "date": "2020-03-09T14:50:35.5352922+00:00",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.id",
        "path": "Bundle.id",
        "min": 1
      },
      {
        "id": "Bundle.meta",
        "path": "Bundle.meta",
        "min": 1
      },
      {
        "id": "Bundle.meta.lastUpdated",
        "path": "Bundle.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "Bundle.identifier",
        "path": "Bundle.identifier",
        "min": 1
      },
      {
        "id": "Bundle.identifier.system",
        "path": "Bundle.identifier.system",
        "min": 1,
        "type": [
          {
            "code": "uri",
            "profile": [
              "urn:healthone.com"
            ]
          }
        ],
        "fixedUri": "urn:healthone.com"
      },
      {
        "id": "Bundle.identifier.value",
        "path": "Bundle.identifier.value",
        "min": 1
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "fixedCode": "document"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "description": "Composition",
          "rules": "closed"
        }
      },
      {
        "id": "Bundle.entry:CompositionEntry",
        "path": "Bundle.entry",
        "sliceName": "CompositionEntry",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:CompositionEntry.id",
        "path": "Bundle.entry.id",
        "min": 1,
        "fixedString": "medicationscheme"
      },
      {
        "id": "Bundle.entry:CompositionEntry.resource",
        "path": "Bundle.entry.resource",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Bundle.entry:CompositionEntry.resource:sliceResource",
        "path": "Bundle.entry.resource",
        "sliceName": "sliceResource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "http://smartehr.com/fhir/StructureDefinition/ClevEhrMedicationRequest"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:PatientEntry",
        "path": "Bundle.entry",
        "sliceName": "PatientEntry",
        "short": "Entry in the bundle - shall contain a Patient resource",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:PatientEntry.resource",
        "path": "Bundle.entry.resource",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Patient resource",
        "min": 1
      },
      {
        "id": "Bundle.entry:PatientEntry.resource:ClevehrPatient",
        "path": "Bundle.entry.resource",
        "sliceName": "ClevehrPatient",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "Patient"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:PractitionerEntry",
        "path": "Bundle.entry",
        "sliceName": "PractitionerEntry",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:PractitionerEntry.resource",
        "path": "Bundle.entry.resource",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Bundle.entry:PractitionerEntry.resource:sliceResource",
        "path": "Bundle.entry.resource",
        "sliceName": "sliceResource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "Practitioner"
            ]
          }
        ]
      }
    ]
  }
}