{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/SpireCore-Patient",
  "name": "SpireCorePatient",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient",
        "path": "Patient",
        "comment": "- Review extension descriptions with the business.\r\n- Decide on a datatype for deceased/multipleBirth if required."
      },
      {
        "id": "Patient.extension",
        "path": "Patient.extension",
        "min": 1
      },
      {
        "id": "Patient.extension:patientJourneyStage",
        "path": "Patient.extension",
        "sliceName": "patientJourneyStage",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/Extension-SpireCore-PatientJourneyStage"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.extension:patientJourneyStage.value[x]",
        "path": "Patient.extension.value[x]",
        "binding": {
          "strength": "required",
          "valueSet": "https://example.org/fhir/ValueSet/SpireCore-PatientJourneyStage"
        }
      },
      {
        "id": "Patient.extension:registeredWithSpireDate",
        "path": "Patient.extension",
        "sliceName": "registeredWithSpireDate",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/Extension-SpireCore-RegisteredWithSpireDate"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.extension:registeredWithSpireDate.value[x]",
        "path": "Patient.extension.value[x]",
        "min": 1
      },
      {
        "id": "Patient.extension:isVIP",
        "path": "Patient.extension",
        "sliceName": "isVIP",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/Extension-SpireCore-IsVIP"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.extension:riskIndicator",
        "path": "Patient.extension",
        "sliceName": "riskIndicator",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/Extension-SpireCore-RiskIndicator"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.telecom.extension:dataAbsentReason",
        "path": "Patient.telecom.extension",
        "sliceName": "dataAbsentReason",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.telecom.extension:dataAbsentReason.value[x]",
        "path": "Patient.telecom.extension.value[x]",
        "short": "Reason for Absent Data"
      },
      {
        "id": "Patient.contact.extension",
        "path": "Patient.contact.extension",
        "min": 1
      },
      {
        "id": "Patient.contact.extension:contactAllowed",
        "path": "Patient.contact.extension",
        "sliceName": "contactAllowed",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/Extension-SpireCore-ContactAllowed"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.contact.extension:noEmailReason",
        "path": "Patient.contact.extension",
        "sliceName": "noEmailReason",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/Extension-SpireCore-NoEmailReason"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://example.org/fhir/StructureDefinition/SpireCore-Organization",
              "https://example.org/fhir/StructureDefinition/SpireCore-Practitioner",
              "https://example.org/fhir/StructureDefinition/SpireCore-PractitionerRole"
            ]
          }
        ]
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://example.org/fhir/StructureDefinition/SpireCore-Organization"
            ]
          }
        ]
      },
      {
        "id": "Patient.link.other",
        "path": "Patient.link.other",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://example.org/fhir/StructureDefinition/SpireCore-RelatedPerson",
              "https://example.org/fhir/StructureDefinition/SpireCore-Organization"
            ]
          }
        ]
      }
    ]
  }
}