{
  "resourceType" : "Bundle",
  "id" : "11223344",
  "meta" : {
    "tag" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/v3-ProcessingID",
      "code" : "P"
    }]
  },
  "type" : "message",
  "timestamp" : "2023-05-14T11:15:33+10:00",
  "entry" : [{
    "fullUrl" : "12345",
    "resource" : {
      "resourceType" : "MessageHeader",
      "id" : "66778899",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"MessageHeader_66778899\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MessageHeader 66778899</b></p><a name=\"66778899\"> </a><a name=\"hc66778899\"> </a><a name=\"66778899-en-US\"> </a><p><b>event</b>: <a href=\"https://common-ig.hip.digital.health.nz/site/CodeSystem-nes-event-type-1.0.html#nes-event-type-1.0-FLS_ENROLMENT_NOMINATION\">NES Event Type FLS_ENROLMENT_NOMINATION</a>: GP Enrolment Nomination</p><h3>Destinations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>Endpoint</b></td></tr><tr><td style=\"display: none\">*</td><td>pmsfacid</td><td>edi123</td></tr></table><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>Software</b></td><td><b>Endpoint</b></td></tr><tr><td style=\"display: none\">*</td><td>Mohfacid</td><td>HSAP11111</td><td>Mohedi</td></tr></table><p><b>focus</b>: </p><ul><li><a href=\"Bundle-11223344.html#https-//api.hip-uat.digital.health.nz/fhir/nhi/v1/Patient/ZKC4633\">Bundle: type = message; timestamp = 2023-05-14 11:15:33+1000</a></li><li><a href=\"Bundle-11223344.html#RelatedPerson_ZJM9397\">Bundle: type = message; timestamp = 2023-05-14 11:15:33+1000</a></li><li><a href=\"Bundle-11223344.html#RelatedPerson_ZAA4828\">Bundle: type = message; timestamp = 2023-05-14 11:15:33+1000</a></li></ul></div>"
      },
      "eventCoding" : {
        "system" : "https://standards.digital.health.nz/ns/nes-event-type",
        "code" : "FLS_ENROLMENT_NOMINATION"
      },
      "destination" : [{
        "name" : "pmsfacid",
        "endpoint" : "edi123"
      }],
      "source" : {
        "name" : "Mohfacid",
        "software" : "HSAP11111",
        "endpoint" : "Mohedi"
      },
      "focus" : [{
        "reference" : "https://api.hip-uat.digital.health.nz/fhir/nhi/v1/Patient/ZKC4633"
      },
      {
        "reference" : "RelatedPerson/ZJM9397"
      },
      {
        "reference" : "RelatedPerson/ZAA4828"
      }]
    }
  },
  {
    "fullUrl" : "https://api.hip-uat.digital.health.nz/fhir/nhi/v1/Patient/ZKC4633",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "ZKC4633",
      "meta" : {
        "profile" : ["NHIPatient"]
      },
      "text" : {
        "status" : "extensions",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Patient_ZKC4633\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient ZKC4633</b></p><a name=\"ZKC4633\"> </a><a name=\"hcZKC4633\"> </a><a name=\"ZKC4633-en-US\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <code>NHIPatient</code></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Baby of Jane Aufderhar  Female, DoB: 2023-05-25 ( https://standards.digital.health.nz/ns/nhi-id#NHI#ZKC4633\u00a0(use:\u00a0official,\u00a0))</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\">23 Thule St Waipu  (NZ Suburb: Waipu river)</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"The ethnic group or groups that a person identifies with or feels they belong to.  Ethnicity is a measure of cultural affiliation as opposed to race, ancestry, nationality or citizen.  Ethnicity is self-perceived and a person can belong to more than one group.\n\nThe Stats New Zealand standard can be found [here](http://aria.stats.govt.nz/aria/#ClassificationView:uri=http://stats.govt.nz/cms/ClassificationVersion/YVqOcFHSlguKkT17).\"><a href=\"https://fhir.org.nz/ig/base/StructureDefinition-nz-ethnicity.html\">NZ Ethnicity</a></td><td colspan=\"3\"><span title=\"Codes:{https://standards.digital.health.nz/ns/ethnic-group-level-4-code 21111}\">Māori</span></td></tr></table></div>"
      },
      "extension" : [{
        "url" : "http://hl7.org.nz/fhir/StructureDefinition/nz-ethnicity",
        "valueCodeableConcept" : {
          "coding" : [{
            "system" : "https://standards.digital.health.nz/ns/ethnic-group-level-4-code",
            "version" : "2.0",
            "code" : "21111",
            "display" : "Māori"
          }]
        }
      }],
      "identifier" : [{
        "use" : "official",
        "system" : "https://standards.digital.health.nz/ns/nhi-id",
        "value" : "ZKC4633"
      }],
      "name" : [{
        "id" : "10",
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/iso21090-preferred",
          "valueBoolean" : true
        }],
        "family" : "Aufderhar",
        "given" : ["Baby of Jane"]
      }],
      "gender" : "female",
      "birthDate" : "2023-05-25",
      "address" : [{
        "extension" : [{
          "url" : "http://hl7.org.nz/fhir/StructureDefinition/suburb",
          "valueString" : "Waipu river"
        }],
        "line" : ["23 Thule St"],
        "city" : "Waipu"
      }]
    }
  },
  {
    "fullUrl" : "RelatedPerson/ZJM9397",
    "resource" : {
      "resourceType" : "RelatedPerson",
      "id" : "ZJM9397",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"RelatedPerson_ZJM9397\"> </a><p class=\"res-header-id\"><b>Generated Narrative: RelatedPerson ZJM9397</b></p><a name=\"ZJM9397\"> </a><a name=\"hcZJM9397\"> </a><a name=\"ZJM9397-en-US\"> </a><p><b>identifier</b>: NHI/ZJM9397\u00a0(use:\u00a0official,\u00a0)</p><p><b>patient</b>: <a href=\"Bundle-11223344.html#https-//api.hip-uat.digital.health.nz/fhir/nhi/v1/Patient/ZKC4633\">Bundle: type = message; timestamp = 2023-05-14 11:15:33+1000</a></p><p><b>relationship</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleCode MTH}\">mother</span></p><p><b>name</b>: Mary Jones </p></div>"
      },
      "identifier" : [{
        "use" : "official",
        "system" : "https://standards.digital.health.nz/ns/nhi-id",
        "value" : "ZJM9397"
      }],
      "patient" : {
        "reference" : "https://api.hip-uat.digital.health.nz/fhir/nhi/v1/Patient/ZKC4633"
      },
      "relationship" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
          "code" : "MTH"
        }]
      }],
      "name" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/iso21090-preferred",
          "valueBoolean" : true
        }],
        "family" : "Jones",
        "given" : ["Mary"]
      }]
    }
  },
  {
    "fullUrl" : "RelatedPerson/ZAA4828",
    "resource" : {
      "resourceType" : "RelatedPerson",
      "id" : "ZAA4828",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"RelatedPerson_ZAA4828\"> </a><p class=\"res-header-id\"><b>Generated Narrative: RelatedPerson ZAA4828</b></p><a name=\"ZAA4828\"> </a><a name=\"hcZAA4828\"> </a><a name=\"ZAA4828-en-US\"> </a><p><b>identifier</b>: NHI/ZAA4828\u00a0(use:\u00a0official,\u00a0)</p><p><b>patient</b>: <a href=\"Bundle-11223344.html#https-//api.hip-uat.digital.health.nz/fhir/nhi/v1/Patient/ZKC4633\">Bundle: type = message; timestamp = 2023-05-14 11:15:33+1000</a></p><p><b>relationship</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-RoleCode MTH}\">mother</span></p><p><b>name</b>: Albert Brown </p></div>"
      },
      "identifier" : [{
        "use" : "official",
        "system" : "https://standards.digital.health.nz/ns/nhi-id",
        "value" : "ZAA4828"
      }],
      "patient" : {
        "reference" : "https://api.hip-uat.digital.health.nz/fhir/nhi/v1/Patient/ZKC4633"
      },
      "relationship" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
          "code" : "MTH"
        }]
      }],
      "name" : [{
        "family" : "Brown",
        "given" : ["Albert"]
      }]
    }
  }]
}