{
  "resourceType" : "Bundle",
  "id" : "NgDeviceData-AppleWatch-Transaction",
  "meta" : {
    "profile" : ["https://fhir-ig.digitalhealth.gov.ng/StructureDefinition/ng-device-data-bundle"]
  },
  "type" : "transaction",
  "entry" : [{
    "fullUrl" : "urn:uuid:eeefff55-e5f6-4789-a123-456789abcdef",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "NgPatient-Watch-001",
      "meta" : {
        "lastUpdated" : "2025-11-06T07:00:00+01:00",
        "profile" : ["https://fhir-ig.digitalhealth.gov.ng/StructureDefinition/ng-patient"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Patient_NgPatient-Watch-001\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient NgPatient-Watch-001</b></p><a name=\"NgPatient-Watch-001\"> </a><a name=\"hcNgPatient-Watch-001\"> </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\">Last updated: 2025-11-06 07:00:00+0100</p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ng-patient.html\">NG Patient</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Bola Adeleke  Female, DoB: 1991-12-02 ( mobile: 08035556666)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Record is active\">Active:</td><td colspan=\"3\">true</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\">Rayfield Jos PL </td></tr></table></div>"
      },
      "identifier" : [{
        "type" : {
          "coding" : [{
            "system" : "https://fhir-ig.digitalhealth.gov.ng/CodeSystem/patient-identifier-cs",
            "code" : "MOBILE",
            "display" : "mobile"
          }]
        },
        "system" : "https://fhir-ig.digitalhealth.gov.ng/CodeSystem/patient-identifier-cs",
        "value" : "08035556666"
      }],
      "active" : true,
      "name" : [{
        "family" : "Adeleke",
        "given" : ["Bola"]
      }],
      "gender" : "female",
      "birthDate" : "1991-12-02",
      "address" : [{
        "line" : ["Rayfield"],
        "city" : "Jos",
        "district" : "pl-jos-south",
        "state" : "PL"
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Patient"
    }
  },
  {
    "fullUrl" : "urn:uuid:fffaaa66-e5f6-4789-a123-456789abcdef",
    "resource" : {
      "resourceType" : "Organization",
      "id" : "NgOrganization-AppVendor-001",
      "meta" : {
        "profile" : ["https://fhir-ig.digitalhealth.gov.ng/StructureDefinition/ng-organization"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Organization_NgOrganization-AppVendor-001\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Organization NgOrganization-AppVendor-001</b></p><a name=\"NgOrganization-AppVendor-001\"> </a><a name=\"hcNgOrganization-AppVendor-001\"> </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: <a href=\"StructureDefinition-ng-organization.html\">NG Organization</a></p></div><p><b>identifier</b>: <code>https://fhir-ig.digitalhealth.gov.ng/CodeSystem/ng-device-type-cs</code>/apple</p><p><b>active</b>: true</p><p><b>type</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/organization-type bus}\">Non-Healthcare Business or Corporation</span></p><p><b>name</b>: Wellness App Ltd.</p><p><b>telecom</b>: <a href=\"mailto:support@wellnessapp.ng\">support@wellnessapp.ng</a></p><p><b>address</b>: Tech Hub Building Lagos LA </p></div>"
      },
      "identifier" : [{
        "system" : "https://fhir-ig.digitalhealth.gov.ng/CodeSystem/ng-device-type-cs",
        "value" : "apple"
      }],
      "active" : true,
      "type" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/organization-type",
          "code" : "bus",
          "display" : "Non-Healthcare Business or Corporation"
        }]
      }],
      "name" : "Wellness App Ltd.",
      "telecom" : [{
        "system" : "email",
        "value" : "support@wellnessapp.ng"
      }],
      "address" : [{
        "line" : ["Tech Hub Building"],
        "city" : "Lagos",
        "district" : "la-agege",
        "state" : "LA"
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Organization"
    }
  },
  {
    "fullUrl" : "urn:uuid:aaabbb77-e5f6-4789-a123-456789abcdef",
    "resource" : {
      "resourceType" : "Device",
      "id" : "NgDevice-AppleWatch-001",
      "meta" : {
        "profile" : ["https://fhir-ig.digitalhealth.gov.ng/StructureDefinition/ng-device"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Device_NgDevice-AppleWatch-001\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Device NgDevice-AppleWatch-001</b></p><a name=\"NgDevice-AppleWatch-001\"> </a><a name=\"hcNgDevice-AppleWatch-001\"> </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: <a href=\"StructureDefinition-ng-device.html\">NG Device</a></p></div><p><b>status</b>: Active</p><p><b>manufacturer</b>: Apple Inc.</p><p><b>serialNumber</b>: AW8-BOLA-2025-XYZ</p><h3>DeviceNames</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>Type</b></td></tr><tr><td style=\"display: none\">*</td><td>Apple Watch Series 8</td><td>User Friendly name</td></tr></table><p><b>modelNumber</b>: Series 8</p><p><b>type</b>: <span title=\"Codes:{http://snomed.info/sct 706635000}\">Telephone transmitter/receiver system</span></p><h3>Versions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td></tr><tr><td style=\"display: none\">*</td><td>watchOS 10.1</td></tr></table></div>"
      },
      "status" : "active",
      "manufacturer" : "Apple Inc.",
      "serialNumber" : "AW8-BOLA-2025-XYZ",
      "deviceName" : [{
        "name" : "Apple Watch Series 8",
        "type" : "user-friendly-name"
      }],
      "modelNumber" : "Series 8",
      "type" : {
        "coding" : [{
          "system" : "http://snomed.info/sct",
          "code" : "706635000",
          "display" : "Telephone transmitter/receiver system"
        }]
      },
      "version" : [{
        "value" : "watchOS 10.1"
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Device"
    }
  },
  {
    "fullUrl" : "urn:uuid:bbbccc88-e5f6-4789-a123-456789abcdef",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "NgObservation-HeartRate-001",
      "meta" : {
        "profile" : ["https://fhir-ig.digitalhealth.gov.ng/StructureDefinition/ng-observation"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Observation_NgObservation-HeartRate-001\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Observation NgObservation-HeartRate-001</b></p><a name=\"NgObservation-HeartRate-001\"> </a><a name=\"hcNgObservation-HeartRate-001\"> </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: <a href=\"StructureDefinition-ng-observation.html\">NG Observations</a></p></div><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category social-history}\">Social History</span></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 30525-0}\">Age</span></p><p><b>subject</b>: <a href=\"Bundle-NgDeviceData-AppleWatch-Transaction.html#urn-uuid-eeefff55-e5f6-4789-a123-456789abcdef\">Bola Adeleke  Female, DoB: 1991-12-02 ( mobile: 08035556666)</a></p><p><b>effective</b>: 2025-11-06 06:50:00+0100</p><p><b>performer</b>: <a href=\"Bundle-NgDeviceData-AppleWatch-Transaction.html#urn-uuid-fffaaa66-e5f6-4789-a123-456789abcdef\">Organization Wellness App Ltd.</a></p><p><b>note</b>: </p><blockquote><div><p>Resting heart rate recorded by wearable device</p>\n</div></blockquote><p><b>device</b>: <a href=\"Bundle-NgDeviceData-AppleWatch-Transaction.html#urn-uuid-aaabbb77-e5f6-4789-a123-456789abcdef\">Device: status = active; manufacturer = Apple Inc.; serialNumber = AW8-BOLA-2025-XYZ; modelNumber = Series 8; type = Telephone transmitter/receiver system</a></p><h3>Components</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Code</b></td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{https://fhir-ig.digitalhealth.gov.ng/CodeSystem/age-component-codes mn}\">Months (mo)</span></td><td>444 month<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemo = 'mo')</span></td></tr></table></div>"
      },
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "social-history",
          "display" : "Social History"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "30525-0",
          "display" : "Age"
        }]
      },
      "subject" : {
        "reference" : "urn:uuid:eeefff55-e5f6-4789-a123-456789abcdef"
      },
      "effectiveDateTime" : "2025-11-06T06:50:00+01:00",
      "performer" : [{
        "reference" : "urn:uuid:fffaaa66-e5f6-4789-a123-456789abcdef"
      }],
      "note" : [{
        "text" : "Resting heart rate recorded by wearable device"
      }],
      "device" : {
        "reference" : "urn:uuid:aaabbb77-e5f6-4789-a123-456789abcdef"
      },
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "https://fhir-ig.digitalhealth.gov.ng/CodeSystem/age-component-codes",
            "code" : "mn",
            "display" : "Months (mo)"
          }]
        },
        "valueQuantity" : {
          "value" : 444,
          "unit" : "month",
          "system" : "http://unitsofmeasure.org",
          "code" : "mo"
        }
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  },
  {
    "fullUrl" : "urn:uuid:cccddd99-e5f6-4789-a123-456789abcdef",
    "resource" : {
      "resourceType" : "Observation",
      "id" : "NgObservation-Steps-001",
      "meta" : {
        "profile" : ["https://fhir-ig.digitalhealth.gov.ng/StructureDefinition/ng-observation"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Observation_NgObservation-Steps-001\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Observation NgObservation-Steps-001</b></p><a name=\"NgObservation-Steps-001\"> </a><a name=\"hcNgObservation-Steps-001\"> </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: <a href=\"StructureDefinition-ng-observation.html\">NG Observations</a></p></div><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category social-history}\">Social History</span></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 30525-0}\">Age</span></p><p><b>subject</b>: <a href=\"Bundle-NgDeviceData-AppleWatch-Transaction.html#urn-uuid-eeefff55-e5f6-4789-a123-456789abcdef\">Bola Adeleke  Female, DoB: 1991-12-02 ( mobile: 08035556666)</a></p><p><b>effective</b>: 2025-11-05 00:00:00+0100 --&gt; 2025-11-05 23:59:59+0100</p><p><b>performer</b>: <a href=\"Bundle-NgDeviceData-AppleWatch-Transaction.html#urn-uuid-fffaaa66-e5f6-4789-a123-456789abcdef\">Organization Wellness App Ltd.</a></p><p><b>note</b>: </p><blockquote><div><p>Total daily step count tracked by wearable device</p>\n</div></blockquote><p><b>device</b>: <a href=\"Bundle-NgDeviceData-AppleWatch-Transaction.html#urn-uuid-aaabbb77-e5f6-4789-a123-456789abcdef\">Device: status = active; manufacturer = Apple Inc.; serialNumber = AW8-BOLA-2025-XYZ; modelNumber = Series 8; type = Telephone transmitter/receiver system</a></p><h3>Components</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Code</b></td><td><b>Value[x]</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{https://fhir-ig.digitalhealth.gov.ng/CodeSystem/age-component-codes mn}\">Months (mo)</span></td><td>666 month<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemo = 'mo')</span></td></tr></table></div>"
      },
      "status" : "final",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
          "code" : "social-history",
          "display" : "Social History"
        }]
      }],
      "code" : {
        "coding" : [{
          "system" : "http://loinc.org",
          "code" : "30525-0",
          "display" : "Age"
        }]
      },
      "subject" : {
        "reference" : "urn:uuid:eeefff55-e5f6-4789-a123-456789abcdef"
      },
      "effectivePeriod" : {
        "start" : "2025-11-05T00:00:00+01:00",
        "end" : "2025-11-05T23:59:59+01:00"
      },
      "performer" : [{
        "reference" : "urn:uuid:fffaaa66-e5f6-4789-a123-456789abcdef"
      }],
      "note" : [{
        "text" : "Total daily step count tracked by wearable device"
      }],
      "device" : {
        "reference" : "urn:uuid:aaabbb77-e5f6-4789-a123-456789abcdef"
      },
      "component" : [{
        "code" : {
          "coding" : [{
            "system" : "https://fhir-ig.digitalhealth.gov.ng/CodeSystem/age-component-codes",
            "code" : "mn",
            "display" : "Months (mo)"
          }]
        },
        "valueQuantity" : {
          "value" : 666,
          "unit" : "month",
          "system" : "http://unitsofmeasure.org",
          "code" : "mo"
        }
      }]
    },
    "request" : {
      "method" : "POST",
      "url" : "Observation"
    }
  }]
}