{
  "resourceType": "StructureDefinition",
  "id": "befc197b-83c9-4309-8044-41ed14545755",
  "meta": {
    "versionId": "8",
    "lastUpdated": "2020-01-27T12:34:33.726+00:00"
  },
  "url": "https://fhir.graphnethealth.com/STU3/StructureDefinition/Beacon-Patient",
  "version": "1.0.1",
  "name": "Beacon-Patient",
  "title": "Beacon-Patient",
  "status": "draft",
  "date": "2020-01-27T12:34:33.489947Z",
  "publisher": "Graphnet Health Ltd",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "product@graphnethealth.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Used to represent the focal patient when integrating with the Graphnet Beacon Notifications system",
  "purpose": "Used to represent the focal patient when integrating with the Graphnet Beacon Notifications system",
  "copyright": "Copyright © 2020 Graphnet Health",
  "fhirVersion": "3.0.2",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Patient.identifier:NHSNumber",
        "path": "Patient.identifier",
        "sliceName": "NHSNumber",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.identifier:NHSNumber.system",
        "path": "Patient.identifier.system",
        "short": "The namespace for the NHS NUmber",
        "min": 1,
        "fixedUri": "https://fhir.nhs.uk/Id/nhs-number"
      },
      {
        "id": "Patient.identifier:NHSNumber.value",
        "path": "Patient.identifier.value",
        "min": 1
      },
      {
        "id": "Patient.identifier:GraphnetPatientIdentifier",
        "path": "Patient.identifier",
        "sliceName": "GraphnetPatientIdentifier"
      },
      {
        "id": "Patient.identifier:GraphnetPatientIdentifier.system",
        "path": "Patient.identifier.system",
        "min": 1,
        "fixedUri": "https://www.graphnethealth.com/Id/Graphnet-Patient-Id"
      },
      {
        "id": "Patient.active",
        "path": "Patient.active",
        "max": "0"
      },
      {
        "id": "Patient.name",
        "path": "Patient.name",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Patient.name.family",
        "path": "Patient.name.family",
        "min": 1
      },
      {
        "id": "Patient.name.given",
        "path": "Patient.name.given",
        "min": 1
      },
      {
        "id": "Patient.telecom",
        "path": "Patient.telecom",
        "max": "0"
      },
      {
        "id": "Patient.birthDate",
        "path": "Patient.birthDate",
        "min": 1
      },
      {
        "id": "Patient.address",
        "path": "Patient.address",
        "max": "1"
      },
      {
        "id": "Patient.maritalStatus",
        "path": "Patient.maritalStatus",
        "max": "0"
      },
      {
        "id": "Patient.multipleBirth[x]",
        "path": "Patient.multipleBirth[x]",
        "max": "0"
      },
      {
        "id": "Patient.photo",
        "path": "Patient.photo",
        "max": "0"
      },
      {
        "id": "Patient.contact",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Contact"
          }
        ],
        "path": "Patient.contact",
        "max": "0"
      },
      {
        "id": "Patient.animal",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Animal"
          }
        ],
        "path": "Patient.animal",
        "max": "0"
      },
      {
        "id": "Patient.communication",
        "path": "Patient.communication",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          }
        ]
      },
      {
        "id": "Patient.generalPractitioner.reference",
        "path": "Patient.generalPractitioner.reference",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner.identifier",
        "path": "Patient.generalPractitioner.identifier",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.generalPractitioner.display",
        "definition": "Thus should be the name of the Patients GP.",
        "min": 1
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "min": 1
      },
      {
        "id": "Patient.managingOrganization.reference",
        "path": "Patient.managingOrganization.reference",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization.identifier",
        "path": "Patient.managingOrganization.identifier",
        "short": "GP Proactice identifier",
        "definition": "Identifier details fo rthe patients GP",
        "min": 1
      },
      {
        "id": "Patient.managingOrganization.identifier.use",
        "path": "Patient.managingOrganization.identifier.use",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization.identifier.type",
        "path": "Patient.managingOrganization.identifier.type",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization.identifier.system",
        "path": "Patient.managingOrganization.identifier.system",
        "short": "The namespace for ODS codes",
        "min": 1,
        "fixedUri": "https://fhir.nhs.uk/Id/ods-organization-code"
      },
      {
        "id": "Patient.managingOrganization.identifier.value",
        "path": "Patient.managingOrganization.identifier.value",
        "short": "ODS Code for GP Practice",
        "definition": "The ODS code for the GP Practice",
        "min": 1
      },
      {
        "id": "Patient.managingOrganization.identifier.period",
        "path": "Patient.managingOrganization.identifier.period",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization.identifier.assigner",
        "path": "Patient.managingOrganization.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Patient.managingOrganization.display",
        "min": 1
      },
      {
        "id": "Patient.link",
        "path": "Patient.link",
        "max": "0"
      }
    ]
  }
}