{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.clevermed.com/StructureDefinition/Patient-BNet-Preg",
  "name": "Patient-BNet-Preg",
  "status": "active",
  "date": "2025-03-25T15:48:13.1545379Z",
  "publisher": "Clevermed Ltd.",
  "contact": [
    {
      "name": "Clevermed BadgerNet Spine FHIR Team",
      "telecom": [
        {
          "system": "email",
          "value": "support@clevermed.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "",
  "copyright": "(c) Clevermed Ltd.  Usage by permission and for BadgerNet Spine Platform integration only.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "patient",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/patient",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "patient.id",
        "path": "patient.id",
        "short": "Logical ID for the patient",
        "definition": "",
        "min": 1,
        "max": "1"
      },
      {
        "id": "patient.identifier.coding.code",
        "path": "patient.identifier.coding.code",
        "short": "Patient's current NHI or NHS number format",
        "definition": "The NHI/NHS number, EDD and DOB must be unique for each pregnancy. Hence, when the NHI/NHS number is updated, the Spine will verify whether the new NHI/NHS number, EDD and DOB exists. If it does, a HTTP 409 conflict error will be returned.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.name.prefix",
        "path": "patient.name.prefix",
        "short": "Patient's title (prefix)",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.name.given",
        "path": "patient.name.given",
        "short": "Patient's given name(s)",
        "definition": "Woman/pregnant person's given name(s) provided as an array.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.name.family",
        "path": "patient.name.family",
        "short": "Patient's surname",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.name.suffix",
        "path": "patient.name.suffix",
        "short": "Patient name suffix",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.name.use",
        "path": "patient.name.use",
        "short": "Identifies the purpose for this name.",
        "definition": "This item defines the type of name provided. This item should be either \"official\" or \"usual\".",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.dateOfBirth",
        "path": "patient.dateOfBirth",
        "short": "Patient identity Date of birth",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.extension:patientEthnicities",
        "path": "patient.extension:patientEthnicities",
        "short": "Wrapper element for patient's ethnicities. The URL for this extension is https://clevermed.com/fhir/StructureDefinition/Patient-BNet-Preg-Ethnicities",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.extension",
        "path": "patient.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "patient.extension(patient-ethnicities).extension:ethnicity",
        "path": "patient.extension",
        "sliceName": "ethnicity",
        "definition": "Patient identity Ethnicity. The URL for this extension is http://hl7.org.nz/fhir/StructureDefinition/nz-ethnicity.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.clevermed.com/StructureDefinition/Patient-ethnicity"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "patient.gender",
        "path": "patient.gender",
        "short": "Gender of patient",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.address.extension",
        "path": "patient.address.extension",
        "short": "Patient's building name of residence",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.address.extension:buldingName",
        "path": "patient.address.extension:buldingName",
        "short": "Patient's building name of residence. The extension URL is: http://hl7.org.nz/fhir/StructureDefinition/building-name.",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.address.extension:suburb",
        "path": "patient.extension",
        "sliceName": "suburb",
        "definition": "Address' suburb. The extension URL is: https://hl7.org.nz/fhir/StructureDefinition/suburb.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.clevermed.com/StructureDefinition/Patient-suburb"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "patient.address.use",
        "path": "patient.address.use",
        "short": "The purpose of this address.",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.address.line",
        "path": "patient.address.line",
        "short": "Patient address of residence",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.address.city",
        "path": "patient.address.city",
        "short": "Patient city/town of residence",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.address.postCode",
        "path": "patient.address.postCode",
        "short": "Patient address Postcode (zip/postal code)",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.address.country",
        "path": "patient.address.country",
        "short": "Patient address Country code",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.Language",
        "path": "patient.Language",
        "short": "Patient language",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.Language.coding.system",
        "path": "patient.Language.coding.system",
        "fixedUri": "http://hl7.org/fhir/R4B/valueset-languages"
      },
      {
        "id": "patient.Language.coding.code",
        "path": "patient.Language.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "description": "Language values accepted by the BadgerNet Spine.",
          "valueSet": "https://simplifier.net/badgernet/ValueSet-BNet-Patient-Languages"
        }
      },
      {
        "id": "patient.EmergencyContact.name.use",
        "path": "patient.EmergencyContact.name.use",
        "short": "First emergency contact's preferred name indicator.",
        "definition": "This is an optional element.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.name.family",
        "path": "patient.EmergencyContact.name.family",
        "short": "First emergency contact's surname",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.name.given",
        "path": "patient.EmergencyContact.name.given",
        "short": "First emergency contact's given name",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.AddressLine",
        "path": "patient.EmergencyContact.AddressLine",
        "short": "First emergency contact's lines of address",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.City",
        "path": "patient.EmergencyContact.City",
        "short": "First emergency contact's city or town of residence",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.postCode",
        "path": "patient.EmergencyContact.postCode",
        "short": "First emergency contact's postcode",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.Telecom.Home",
        "path": "patient.EmergencyContact.Telecom.Home",
        "short": "First emergency contact's home telephone number",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.Telecom.Work",
        "path": "patient.EmergencyContact.Telecom.Work",
        "short": "First emergency contact's work telephone number",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.Telecom.Mobile",
        "path": "patient.EmergencyContact.Telecom.Mobile",
        "short": "First emergency contact's mobile telephone number",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.Telecom.Email",
        "path": "patient.EmergencyContact.Telecom.Email",
        "short": "First emergency contact's email address",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.name.use",
        "path": "patient.EmergencyContact.name.use",
        "short": "Second emergency contact's preferred name indicator.",
        "definition": "This is an optional element.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.name.family",
        "path": "patient.EmergencyContact.name.family",
        "short": "Second emergency contact's surname",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.name.given",
        "path": "patient.EmergencyContact.name.given",
        "short": "Second emergency contact's given name",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.AddressLine",
        "path": "patient.EmergencyContact.AddressLine",
        "short": "Second emergency contact's lines of address",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.City",
        "path": "patient.EmergencyContact.City",
        "short": "Second emergency contact's city or town of residence",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.postCode",
        "path": "patient.EmergencyContact.postCode",
        "short": "Second emergency contact's postcode",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.Telecom.Home",
        "path": "patient.EmergencyContact.Telecom.Home",
        "short": "Second emergency contact's home telephone number",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.Telecom.Work",
        "path": "patient.EmergencyContact.Telecom.Work",
        "short": "Second emergency contact's work telephone number",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.Telecom.Mobile",
        "path": "patient.EmergencyContact.Telecom.Mobile",
        "short": "Second emergency contact's mobile telephone number",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.EmergencyContact.Telecom.Email",
        "path": "patient.EmergencyContact.Telecom.Email",
        "short": "Second emergency contact's email address",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.NextofKin.name.use",
        "path": "patient.NextofKin.name.use",
        "short": "Next of kin's preferred name indicator.",
        "definition": "This is an optional element.",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.NextofKin.name.family",
        "path": "patient.NextofKin.name.family",
        "short": "Next of kin's surname",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.NextofKin.name.given",
        "path": "patient.NextofKin.name.given",
        "short": "Next of kin's given name",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.NextofKin.AddressLine",
        "path": "patient.NextofKin.AddressLine",
        "short": "Next of kin's address lines",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.NextofKin.City",
        "path": "patient.NextofKin.City",
        "short": "Next of kin's city of residence",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.NextofKin.postCode",
        "path": "patient.NextofKin.postCode",
        "short": "Next of kin's postcode",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.NextofKin.Telecom.Home",
        "path": "patient.NextofKin.Telecom.Home",
        "short": "Next of kin's home telephone number",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.NextofKin.Telecome.Work",
        "path": "patient.NextofKin.Telecome.Work",
        "short": "Next of kin's work telephone number",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.NextofKin.Telecom.Mobile",
        "path": "patient.NextofKin.Telecom.Mobile",
        "short": "Next of kin's work mobile number",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.NextofKin.Telecom.Email",
        "path": "patient.NextofKin.Telecom.Email",
        "short": "Next of kin's email address",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.Telecom.Home",
        "path": "patient.Telecom.Home",
        "short": "Patient's home telephone number",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.Telecom.Work",
        "path": "patient.Telecom.Work",
        "short": "Patient's work telephone number",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.Telecom.Mobile",
        "path": "patient.Telecom.Mobile",
        "short": "Patient's mobile telephone number",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "patient.Telecom.Email",
        "path": "patient.Telecom.Email",
        "short": "Patient's email address",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      }
    ]
  }
}