{
  "resourceType": "StructureDefinition",
  "id": "6d6d70a2-92bf-4eb9-b331-909b201e4cda",
  "meta": {
    "lastUpdated": "2021-03-05T21:55:16.764+00:00"
  },
  "url": "http://example.org/fhir/StructureDefinition/MyNZHospitalXPatient",
  "name": "NZHospitalXPatient",
  "title": "Hospital X New Zealand Patient",
  "status": "draft",
  "date": "2021-03-05T21:47:00.2322151+00:00",
  "description": "For patients registered in Hospital X New Zealand branch, make sure the patient data both adheres to the previously defined Hospital X patient profile, but also conforms to some specific requirements for New Zealand.",
  "purpose": "Hospital X also has a branch in New Zealand.",
  "fhirVersion": "4.0.1",
  "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"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "loinc",
      "uri": "http://loinc.org",
      "name": "LOINC code for the element"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://philforestall.ca/fhir/StructureDefinition/HospitalXPatient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "use"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Patient.identifier:sliceCurrent",
        "path": "Patient.identifier",
        "sliceName": "sliceCurrent"
      },
      {
        "id": "Patient.identifier:sliceCurrent.use",
        "path": "Patient.identifier.use",
        "short": "current record",
        "fixedCode": "active"
      },
      {
        "id": "Patient.identifier:sliceCurrent.system",
        "path": "Patient.identifier.system",
        "type": [
          {
            "code": "uri",
            "profile": [
              "https://standards.digital.health.nz/ns/nhi-id"
            ]
          }
        ]
      },
      {
        "id": "Patient.identifier:sliceHistoric",
        "path": "Patient.identifier",
        "sliceName": "sliceHistoric"
      },
      {
        "id": "Patient.identifier:sliceHistoric.use",
        "path": "Patient.identifier.use",
        "short": "historical record",
        "fixedCode": "old"
      },
      {
        "id": "Patient.identifier:sliceHistoric.system",
        "path": "Patient.identifier.system",
        "type": [
          {
            "code": "uri",
            "profile": [
              "https://standards.digital.health.nz/ns/nhi-id"
            ]
          }
        ]
      }
    ]
  }
}