{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/MAMemberPatient",
  "name": "PatientMAMember",
  "status": "draft",
  "publisher": "MedicalertFoundationNZ",
  "description": "A MedicAlert Member for the purpose of the first responder API",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Patient",
  "baseDefinition": "http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Patient.identifier",
        "path": "Patient.identifier",
        "min": 1,
        "example": [
          {
            "label": "medicalert member id",
            "valueIdentifier": {
              "use": "official",
              "system": "https://standards.medicalert.nz/memberId",
              "value": "1001"
            }
          },
          {
            "label": "Nhi Number",
            "valueIdentifier": {
              "use": "official",
              "system": "https://standards.digital.health.nz/ns/nhi-id",
              "value": "ZZZ0008"
            }
          }
        ]
      },
      {
        "id": "Patient.gender",
        "path": "Patient.gender",
        "short": "male | female | non-binary | unknown"
      },
      {
        "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",
        "path": "Patient.contact",
        "definition": "A contact party (e.g. guardian, partner, friend) for the patient. Emergency contacts, Next of Kin, Legal guardians"
      },
      {
        "id": "Patient.contact.relationship.coding",
        "path": "Patient.contact.relationship.coding",
        "max": "0"
      },
      {
        "id": "Patient.contact.name.use",
        "path": "Patient.contact.name.use",
        "max": "0"
      },
      {
        "id": "Patient.contact.name.family",
        "path": "Patient.contact.name.family",
        "max": "0",
        "mustSupport": false
      },
      {
        "id": "Patient.contact.name.given",
        "path": "Patient.contact.name.given",
        "max": "0"
      },
      {
        "id": "Patient.contact.name.prefix",
        "path": "Patient.contact.name.prefix",
        "max": "0"
      },
      {
        "id": "Patient.contact.name.suffix",
        "path": "Patient.contact.name.suffix",
        "max": "0"
      },
      {
        "id": "Patient.contact.name.period",
        "path": "Patient.contact.name.period",
        "max": "0"
      },
      {
        "id": "Patient.contact.telecom.rank",
        "path": "Patient.contact.telecom.rank",
        "max": "0"
      },
      {
        "id": "Patient.contact.telecom.period",
        "path": "Patient.contact.telecom.period",
        "max": "0"
      },
      {
        "id": "Patient.contact.address.use",
        "path": "Patient.contact.address.use",
        "max": "0"
      },
      {
        "id": "Patient.contact.address.type",
        "path": "Patient.contact.address.type",
        "max": "0"
      },
      {
        "id": "Patient.contact.address.period",
        "path": "Patient.contact.address.period",
        "max": "0"
      },
      {
        "id": "Patient.contact.gender",
        "path": "Patient.contact.gender",
        "max": "0"
      },
      {
        "id": "Patient.contact.organization",
        "path": "Patient.contact.organization",
        "max": "0"
      },
      {
        "id": "Patient.contact.period",
        "path": "Patient.contact.period",
        "max": "0"
      },
      {
        "id": "Patient.generalPractitioner",
        "path": "Patient.generalPractitioner",
        "max": "0"
      },
      {
        "id": "Patient.managingOrganization",
        "path": "Patient.managingOrganization",
        "definition": "Organization that is the custodian of the patient record. this is medicalert"
      },
      {
        "id": "Patient.link",
        "path": "Patient.link",
        "max": "0"
      }
    ]
  }
}