{
    "resourceType": "Bundle",
    "id": "ncdhc-composition-view-antenatal-visits-list-summary-example",
    "meta": {
        "versionId": "1",
        "lastUpdated": "2020-03-16T00:00:00Z"
    },
    "identifier": {
        "system": "urn:ietf:rfc:3986",
        "value": "urn:uuid:0c4151bd-1cbf-4d64-b04d-cd9187a4c6e0"
    },
    "type": "document",
    "entry": [
        {
            "fullUrl": "https://ncdhc.health.gov.au/fhir/v1.0.0/Composition/0308a72a8-df75-4484-ac89-ac4923f0051",
            "resource": {
                "resourceType": "Composition",
                "id": "0308a72a8-df75-4484-ac89-ac4923f0051",
                "meta": {
                    "versionId": "1",
                    "lastUpdated": "2020-03-16T00:00:00Z",
                    "profile": [
                        "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-composition-view-antenatal-visits-list-summary"
                    ]
                },
                "status": "final",
                "type": {
                    "coding": [
                        {
                            "system": "http://hl7.org.au/fhir/ch/v1/CodeSystem/ncdhc-hi-type-1",
                            "code": "ANTVSTLST"
                        }
                    ],
                    "text": "Antenatal Visit List"
                },
                "subject": {
                    "reference": "Patient/dd78393f-37ca-4738-81d6-d9595b2e5d0f",
                    "display": "Eve Bill"
                },
                "date": "2020-03-16T12:30:02Z",
                "author": [
                    {
                        "reference": "Device/3db74777-fd3d-4d3b-92ec-d405977a11a5",
                        "display": "Child Data Hub"
                    }
                ],
                "title": "My Check-Ups",
                "confidentiality": "N",
                "attester": [
                    {
                        "mode": [
                            "professional"
                        ],
                        "time": "2020-03-16T12:30:02Z",
                        "party": {
                            "reference": "Organization/od78393f-37ca-4738-81d6-d9595b2e5d0f"
                        }
                    }
                ],
                "section": [
                    {
                        "title": "My Check-Ups",
                        "code": {
                            "coding": [
                                {
                                    "system": "http://snomed.info/sct",
                                    "code": "268469004"
                                }
                            ]
                        },
                        "entry": [
                            {
                                "reference": "https://ncdhc.health.gov.au/fhir/v1.0.0/QuestionnaireResponse/antenatal-visits-list-qa-en-s1"
                            }
                        ]
                    }
                ]
            }
        },
        {
            "fullUrl": "https://ncdhc.health.gov.au/fhir/v1.0.0/Patient/dd78393f-37ca-4738-81d6-d9595b2e5d0f",
            "resource": {
                "resourceType": "Patient",
                "id": "dd78393f-37ca-4738-81d6-d9595b2e5d0f",
                "meta": {
                    "versionId": "1",
                    "lastUpdated": "2019-12-27T16:13:03Z",
                    "profile": [
                        "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-patient-expectant-mother"
                    ]
                },
                "identifier": [
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://hl7.org/fhir/v2/0203",
                                    "code": "NI",
                                    "display": "National unique individual identifier"
                                }
                            ],
                            "text": "IHI"
                        },
                        "system": "http://ns.electronichealth.net.au/id/hi/ihi/1.0",
                        "value": "8003608000024083"
                    },
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://hl7.org/fhir/v2/0203",
                                    "code": "MR",
                                    "display": "Medical record number"
                                }
                            ],
                            "text": "Medical Record Number"
                        },
                        "system": "http://ns.electronichealth.net.au/id/hpio-scoped/medicalrecord/1.0/8003620000000000",
                        "value": "02134000",
                        "assigner": {
                            "display": "Blacktown Hospital"
                        }
                    }
                ],
                "active": true,
                "name": [
                    {
                        "prefix": [
                            "Ms"
                        ],
                        "text": "Eve Bill",
                        "family": "Bill",
                        "given": [
                            "Eve"
                        ]
                    }
                ],
                "gender": "female",
                "birthDate": "2004-12-24",
                "_birthDate": {
                    "extension": [
                        {
                            "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime",
                            "valueDateTime": "2004-12-24T14:35:45-05:00"
                        }
                    ]
                },
                "address": [
                    {
                        "text": "home",
                        "line": [
                            "31 Pacquola Street"
                        ],
                        "city": "Blacktown",
                        "state": "NSW",
                        "postalCode": "2148",
                        "country": "Australia"
                    }
                ],
                "telecom": [
                    {
                        "system": "email",
                        "value": "testemail.evebill@gmail.com.au",
                        "use": "home"
                    },
                    {
                        "system": "phone",
                        "value": "0411111567",
                        "use": "mobile"
                    }
                ]
            }
        },
        {
            "fullUrl": "https://ncdhc.health.gov.au/fhir/v1.0.0/Organization/od78393f-37ca-4738-81d6-d9595b2e5d0f",
            "resource": {
                "resourceType": "Organization",
                "id": "od78393f-37ca-4738-81d6-d9595b2e5d0f",
                "meta": {
                    "versionId": "1",
                    "lastUpdated": "2018-12-27T16:13:03Z",
                    "profile": [
                        "http://hl7.org.au/fhir/StructureDefinition/au-organisation"
                    ]
                },
                "identifier": [
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://hl7.org.au/fhir/v2/0203",
                                    "code": "NOI",
                                    "display": "National Organisation Identifier"
                                }
                            ],
                            "text": "HPI-O"
                        },
                        "system": "http://ns.electronichealth.net.au/id/hi/hpio/1.0",
                        "value": "8003621566684455"
                    }
                ],
                "type": [
                    {
                        "coding": [
                            {
                                "system": "http://hl7.org/fhir/organization-type",
                                "code": "prov",
                                "display": "Healthcare Provider"
                            }
                        ]
                    }
                ],
                "name": "Blacktown Hospital",
                "telecom": [
                    {
                        "system": "email",
                        "value": "enquiries@blacktownhospital.com.au",
                        "use": "work"
                    }
                ]
            }
        },
        {
            "fullUrl": "https://ncdhc.health.gov.au/fhir/v1.0.0/Device/3db74777-fd3d-4d3b-92ec-d405977a11a5",
            "resource": {
                "resourceType": "Device",
                "id": "3db74777-fd3d-4d3b-92ec-d405977a11a5",
                "meta": {
                    "profile": [
                        "http://hl7.org.au/fhir/StructureDefinition/au-device"
                    ]
                },
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Child Data Hub</div>"
                },
                "version": "v1.0.0",
                "status": "active"
            }
        },
        {
            "fullUrl": "https://ncdhc.health.gov.au/fhir/v1.0.0/QuestionnaireResponse/antenatal-visits-list-qa-en-s1",
            "resource": {
                "resourceType": "QuestionnaireResponse",
                "id": "antenatal-visits-list-qa-en-s1",
                "meta": {
                    "versionId": "1",
                    "lastUpdated": "2019-10-31T00:00:00Z",
                    "profile": [
                        "http://hl7.org.au/fhir/ch/v1/StructureDefinition/ncdhc-questionnaireresponse-base"
                    ]
                },
                "questionnaire": {
                    "reference": "Questionnaire/antenatal-visits-list-sum-q-en-s1",
                    "display": "Antenatal Visit List Summary"
                },
                "status": "completed",
                "subject": {
                    "reference": "Patient/ncdhc-patient-expectant-mother-example"
                },
                "item": [
                    {
                        "id": "1.0.0.0",
                        "linkId": "1",
                        "subject": {
                            "display": "Reference to fetch 1st antenatal-visit document goes here"
                        },
                        "answer": [
                            {
                                "item": [
                                    {
                                        "id": "1.1.0.0",
                                        "linkId": "1.1",
                                        "subject": {
                                            "display": "Reference to fetch encounter goes here"
                                        },
                                        "answer": [
                                            {
                                                "valueDateTime": "2019-05-22T17:42:00-05:00"
                                            }
                                        ]
                                    },
                                    {
                                        "id": "1.2.0.0",
                                        "linkId": "1.2",
                                        "subject": {
                                            "display": "Reference to fetch gestation-age observation goes here"
                                        },
                                        "answer": [
                                            {
                                                "valueString": "32w+2d"
                                            }
                                        ]
                                    },
                                    {
                                        "id": "1.3.0.0",
                                        "linkId": "1.3",
                                        "subject": {
                                            "display": "Reference to fetch encounter.location goes here"
                                        },
                                        "answer": [
                                            {
                                                "valueString": "Morning side General Practice Clinic"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "id": "2.0.0.0",
                        "linkId": "1",
                        "subject": {
                            "display": "Reference to fetch 2nd antenatal-visit document goes here"
                        },
                        "answer": [
                            {
                                "item": [
                                    {
                                        "id": "2.1.0.0",
                                        "linkId": "1.1",
                                        "subject": {
                                            "display": "Reference to fetch encounter goes here"
                                        },
                                        "answer": [
                                            {
                                                "valueDateTime": "2019-05-22T17:42:00-05:00"
                                            }
                                        ]
                                    },
                                    {
                                        "id": "2.2.0.0",
                                        "linkId": "1.2",
                                        "subject": {
                                            "display": "Reference to fetch gestation-age observation goes here"
                                        },
                                        "answer": [
                                            {
                                                "valueString": "28w+6d"
                                            }
                                        ]
                                    },
                                    {
                                        "id": "2.3.0.0",
                                        "linkId": "1.3",
                                        "subject": {
                                            "display": "Reference to fetch encounter.location goes here"
                                        },
                                        "answer": [
                                            {
                                                "valueString": "Morning side General Practice Clinic"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "id": "3.0.0.0",
                        "linkId": "1",
                        "subject": {
                            "display": "Reference to fetch 3rd antenatal-visit document goes here"
                        },
                        "answer": [
                            {
                                "item": [
                                    {
                                        "id": "3.1.0.0",
                                        "linkId": "1.1",
                                        "subject": {
                                            "display": "Reference to fetch encounter goes here"
                                        },
                                        "answer": [
                                            {
                                                "valueDateTime": "2019-03-30T17:42:00-05:00"
                                            }
                                        ]
                                    },
                                    {
                                        "id": "3.2.0.0",
                                        "linkId": "1.2",
                                        "subject": {
                                            "display": "Reference to fetch gestation-age observation goes here"
                                        },
                                        "answer": [
                                            {
                                                "valueString": "24w+5d"
                                            }
                                        ]
                                    },
                                    {
                                        "id": "3.3.0.0",
                                        "linkId": "1.3",
                                        "subject": {
                                            "display": "Reference to fetch encounter.location goes here"
                                        },
                                        "answer": [
                                            {
                                                "valueString": "Cairns Hospital"
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        }
    ]
}