{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2024-01-22T13:58:18.2442422+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pa"
    }
  ],
  "url": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1",
  "version": "1.8.0",
  "name": "PCDS-Patient",
  "status": "draft",
  "date": "2024-01-22T13:58:24.4167561+00:00",
  "publisher": "NHS Digital",
  "description": "The patient resource represents the patient involved in the provision of healthcare related services.",
  "copyright": "Copyright © 2019 HL7 UK\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\r\n\r\nhttp://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\r\n\r\nHL7® FHIR® standard Copyright © 2011+ HL7\r\n\r\nThe HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at\r\n\r\nhttps://www.hl7.org/fhir/license.html",
  "fhirVersion": "3.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.id",
        "path": "Patient.id",
        "mustSupport": true
      },
      {
        "id": "Patient.extension:registrationDetails",
        "path": "Patient.extension",
        "sliceName": "registrationDetails",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-RegistrationDetails-1"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.extension:ethnicCategory",
        "path": "Patient.extension",
        "sliceName": "ethnicCategory",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-EthnicCategory-1"
          }
        ]
      },
      {
        "id": "Patient.extension:religiousAffiliation",
        "path": "Patient.extension",
        "sliceName": "religiousAffiliation",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-ReligiousAffiliation-1"
          }
        ]
      },
      {
        "id": "Patient.extension:patient-cadavericDonor",
        "path": "Patient.extension",
        "sliceName": "patient-cadavericDonor",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/patient-cadavericDonor"
          }
        ]
      },
      {
        "id": "Patient.extension:patient-cadavericDonor.valueBoolean:valueBoolean",
        "path": "Patient.extension.valueBoolean",
        "sliceName": "valueBoolean"
      },
      {
        "id": "Patient.extension:residentialStatus",
        "path": "Patient.extension",
        "sliceName": "residentialStatus",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-ResidentialStatus-1"
          }
        ]
      },
      {
        "id": "Patient.extension:treatmentCategory",
        "path": "Patient.extension",
        "sliceName": "treatmentCategory",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-TreatmentCategory-1"
          }
        ]
      },
      {
        "id": "Patient.extension:nhsCommunication",
        "path": "Patient.extension",
        "sliceName": "nhsCommunication",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-NHSCommunication-1"
          }
        ]
      },
      {
        "id": "Patient.extension:nhsCommunication.extension",
        "path": "Patient.extension.extension",
        "min": 1
      },
      {
        "id": "Patient.extension:nhsCommunication.extension:preferred",
        "path": "Patient.extension.extension",
        "sliceName": "preferred"
      },
      {
        "id": "Patient.extension:nhsCommunication.extension:preferred.valueBoolean:valueBoolean",
        "path": "Patient.extension.extension.valueBoolean",
        "sliceName": "valueBoolean"
      },
      {
        "id": "Patient.extension:nhsCommunication.extension:interpreterRequired",
        "path": "Patient.extension.extension",
        "sliceName": "interpreterRequired"
      },
      {
        "id": "Patient.extension:nhsCommunication.extension:interpreterRequired.valueBoolean:valueBoolean",
        "path": "Patient.extension.extension.valueBoolean",
        "sliceName": "valueBoolean"
      },
      {
        "id": "Patient.extension:birthPlace",
        "path": "Patient.extension",
        "sliceName": "birthPlace",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/birthPlace"
          }
        ]
      },
      {
        "id": "Patient.extension:nominatedPharmacy",
        "path": "Patient.extension",
        "sliceName": "nominatedPharmacy",
        "max": "0",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-NominatedPharmacy-1"
          }
        ]
      },
      {
        "id": "Patient.extension:deathNotificationStatus",
        "path": "Patient.extension",
        "sliceName": "deathNotificationStatus",
        "max": "0",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-DeathNotificationStatus-1"
          }
        ]
      },
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "ordered": false,
          "rules": "openAtEnd"
        }
      },
      {
        "id": "Patient.identifier:nhsNumber",
        "path": "Patient.identifier",
        "sliceName": "nhsNumber",
        "short": "The unique identifier for a person within the NHS in England and Wales.",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Patient.identifier:nhsNumber.extension",
        "path": "Patient.identifier.extension",
        "min": 1
      },
      {
        "id": "Patient.identifier:nhsNumber.extension:nhsNumberVerificationStatus",
        "path": "Patient.identifier.extension",
        "sliceName": "nhsNumberVerificationStatus",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-NHSNumberVerificationStatus-1"
          }
        ]
      },
      {
        "id": "Patient.identifier:nhsNumber.use",
        "path": "Patient.identifier.use",
        "max": "0"
      },
      {
        "id": "Patient.identifier:nhsNumber.type",
        "path": "Patient.identifier.type",
        "max": "0"
      },
      {
        "id": "Patient.identifier:nhsNumber.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "https://fhir.nhs.uk/Id/nhs-number"
      },
      {
        "id": "Patient.identifier:nhsNumber.value",
        "path": "Patient.identifier.value",
        "min": 1,
        "example": [
          {
            "label": "General",
            "valueString": "1234567890"
          }
        ]
      },
      {
        "id": "Patient.identifier:nhsNumber.period",
        "path": "Patient.identifier.period",
        "max": "0"
      },
      {
        "id": "Patient.identifier:nhsNumber.assigner",
        "path": "Patient.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "use"
            }
          ],
          "ordered": false,
          "rules": "openAtEnd"
        },
        "definition": "A name associated with the individual. There will only be one name with the value of 'official'."
      },
      {
        "id": "Patient.name:official",
        "path": "Patient.name",
        "sliceName": "official",
        "short": "A name associated with the patient. There will only be one name with the value of 'official'.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.name:official.use",
        "path": "Patient.name.use",
        "min": 1,
        "fixedCode": "official",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "https://www.datadictionary.nhs.uk/data_elements/person_given_name.html"
          }
        }
      },
      {
        "id": "Patient.name:official.text",
        "path": "Patient.name.text",
        "short": "The full name of the person in text representation.",
        "binding": {
          "strength": "example",
          "description": "The use of the text representation of the name.",
          "valueSetUri": "https://www.datadictionary.nhs.uk/data_elements/patient_full_name.html"
        }
      },
      {
        "id": "Patient.name:official.family",
        "path": "Patient.name.family",
        "short": "The family name or surname of the person",
        "definition": "The family name or surname of the person",
        "min": 1,
        "binding": {
          "strength": "example",
          "description": "The use of a family name",
          "valueSetUri": "https://www.datadictionary.nhs.uk/data_elements/person_family_name.html"
        }
      },
      {
        "id": "Patient.name:official.given",
        "path": "Patient.name.given",
        "definition": "The name by which a person wishes to be addressed. The preferred name volunteered by the person or a preferred name given by PDS that the person has asked to be called by.",
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "example",
          "description": "The use of a given name",
          "valueSetUri": "https://www.datadictionary.nhs.uk/data_elements/person_full_name.html"
        }
      },
      {
        "id": "Patient.name:official.prefix",
        "path": "Patient.name.prefix",
        "short": "Person's title",
        "binding": {
          "strength": "example",
          "description": "Prefix example",
          "valueSetUri": "https://www.datadictionary.nhs.uk/data_elements/person_title.html"
        }
      },
      {
        "id": "Patient.name:official.suffix",
        "path": "Patient.name.suffix",
        "short": "A textual suffix that may be added to the end of a PERSON's name, for example, OBE, MBE, BSc, JP, GM",
        "binding": {
          "strength": "example",
          "description": "Suffix example",
          "valueSetReference": {
            "reference": "https://www.datadictionary.nhs.uk/data_elements/person_name_suffix.html"
          }
        }
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "description": "The person's stated gender.",
          "valueSetReference": {
            "reference": "https://fhir.nhs.uk/STU3/ValueSet/CareConnect-AdministrativeGender-1"
          }
        }
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "short": "The date of birth of the person.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Patient.birthDate.extension:patient-birthTime",
        "path": "Patient.birthDate.extension",
        "sliceName": "patient-birthTime",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/patient-birthTime"
          }
        ]
      },
      {
        "id": "Patient.birthDate.extension:patient-birthTime.valueDateTime:valueDateTime",
        "path": "Patient.birthDate.extension.valueDateTime",
        "sliceName": "valueDateTime"
      },
      {
        "id": "Patient.deceased[x]:deceasedDateTime",
        "path": "Patient.deceasedDateTime",
        "sliceName": "deceasedDateTime",
        "max": "0",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Patient.address.text",
        "path": "Patient.address.text",
        "example": [
          {
            "label": "General",
            "valueString": "42 Grove Street, Overtown, West Yorkshire, LS21 1PF"
          }
        ]
      },
      {
        "id": "Patient.address.line",
        "path": "Patient.address.line",
        "short": "Person's first line of address.",
        "min": 1,
        "max": "1",
        "example": [
          {
            "label": "General",
            "valueString": "42 Grove Street"
          }
        ]
      },
      {
        "id": "Patient.address.city",
        "path": "Patient.address.city",
        "short": "Person's second line of address.",
        "example": [
          {
            "label": "General",
            "valueString": "Overtown"
          }
        ]
      },
      {
        "id": "Patient.address.district",
        "path": "Patient.address.district",
        "short": "Person's third line of address.",
        "example": [
          {
            "label": "General",
            "valueString": "West Yorkshire"
          }
        ]
      },
      {
        "id": "Patient.address.state",
        "path": "Patient.address.state",
        "short": "Address line 4"
      },
      {
        "id": "Patient.address.postalCode",
        "path": "Patient.address.postalCode",
        "short": "The person's postcode.",
        "example": [
          {
            "label": "General",
            "valueString": "LS21 1PF"
          }
        ]
      },
      {
        "id": "Patient.address.country",
        "path": "Patient.address.country",
        "short": "Address line 5",
        "example": [
          {
            "label": "General",
            "valueString": "GBR"
          }
        ]
      },
      {
        "id": "Patient.maritalStatus",
        "path": "Patient.maritalStatus",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "https://fhir.nhs.uk/STU3/ValueSet/CareConnect-MaritalStatus-1"
          }
        }
      },
      {
        "id": "Patient.maritalStatus.coding",
        "path": "Patient.maritalStatus.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.maritalStatus.coding.system",
        "path": "Patient.maritalStatus.coding.system",
        "min": 1,
        "example": [
          {
            "label": "General",
            "valueUri": "http://hl7.org/fhir/v3/MaritalStatus"
          }
        ]
      },
      {
        "id": "Patient.maritalStatus.coding.version",
        "path": "Patient.maritalStatus.coding.version",
        "max": "0"
      },
      {
        "id": "Patient.maritalStatus.coding.code",
        "path": "Patient.maritalStatus.coding.code",
        "min": 1
      },
      {
        "id": "Patient.maritalStatus.coding.display",
        "path": "Patient.maritalStatus.coding.display",
        "min": 1
      },
      {
        "id": "Patient.maritalStatus.coding.userSelected",
        "path": "Patient.maritalStatus.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Patient.multipleBirth[x]:multipleBirthBoolean",
        "path": "Patient.multipleBirthBoolean",
        "sliceName": "multipleBirthBoolean",
        "max": "0",
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "Patient.photo",
        "path": "Patient.photo",
        "max": "1"
      },
      {
        "id": "Patient.contact",
        "path": "Patient.contact",
        "short": "The details of the individual's personal contacts."
      },
      {
        "id": "Patient.contact.relationship",
        "path": "Patient.contact.relationship",
        "short": "The relationship the personal contact has to the person, e.g. father, grandmother, family friend etc.",
        "max": "1"
      },
      {
        "id": "Patient.contact.relationship.coding.system",
        "path": "Patient.contact.relationship.coding.system",
        "min": 1
      },
      {
        "id": "Patient.contact.relationship.coding.code",
        "path": "Patient.contact.relationship.coding.code",
        "min": 1
      },
      {
        "id": "Patient.contact.relationship.coding.display",
        "path": "Patient.contact.relationship.coding.display",
        "min": 1
      },
      {
        "id": "Patient.contact.name",
        "path": "Patient.contact.name",
        "short": "The name of the personal contact.",
        "min": 1
      },
      {
        "id": "Patient.contact.name.use",
        "path": "Patient.contact.name.use",
        "min": 1
      },
      {
        "id": "Patient.contact.address.text",
        "path": "Patient.contact.address.text",
        "example": [
          {
            "label": "General",
            "valueString": "120, Grove Street, Overtown, West Yorkshire, LS21 1PT"
          }
        ]
      },
      {
        "id": "Patient.contact.address.line",
        "path": "Patient.contact.address.line",
        "example": [
          {
            "label": "General",
            "valueString": "120, Grove Street"
          }
        ]
      },
      {
        "id": "Patient.contact.address.city",
        "path": "Patient.contact.address.city",
        "example": [
          {
            "label": "General",
            "valueString": "Overtown"
          }
        ]
      },
      {
        "id": "Patient.contact.address.district",
        "path": "Patient.contact.address.district",
        "example": [
          {
            "label": "General",
            "valueString": "West Yorkshire"
          }
        ]
      },
      {
        "id": "Patient.contact.address.state",
        "path": "Patient.contact.address.state",
        "max": "0"
      },
      {
        "id": "Patient.contact.address.postalCode",
        "path": "Patient.contact.address.postalCode",
        "example": [
          {
            "label": "General",
            "valueString": "LS21 1PT"
          }
        ]
      },
      {
        "id": "Patient.contact.address.country",
        "path": "Patient.contact.address.country",
        "example": [
          {
            "label": "General",
            "valueString": "GBR"
          }
        ]
      },
      {
        "id": "Patient.contact.gender",
        "path": "Patient.contact.gender",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "https://fhir.nhs.uk/STU3/ValueSet/CareConnect-AdministrativeGender-1"
          }
        }
      },
      {
        "id": "Patient.contact.organization",
        "path": "Patient.contact.organization",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"
          }
        ]
      },
      {
        "id": "Patient.animal",
        "path": "Patient.animal",
        "max": "0"
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1"
          }
        ]
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"
          }
        ]
      },
      {
        "id": "Patient.link.other",
        "path": "Patient.link.other",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1"
          }
        ]
      }
    ]
  }
}