Bundle-TransactionResponseSuccess-Example

Example of a transaction-response bundle logging successful creation of multiple resources.

Bundle
{
    "resourceType": "Bundle",
    "id": "Bundle-TransactionResponseSuccess-Example",
    "meta": {
        "lastUpdated": "2024-01-30T12:01:24Z"
    },
    "type": "transaction-response",
    "entry":  [
        {
            "fullUrl": "https://api.service.nhs.uk/genomic-order-management-service/FHIR/R4/ServiceRequest/4d70678c-81e4-4ff4-8c67-17596fd0aa46",
            "resource": {
                "resourceType": "ServiceRequest",
                "id": "4d70678c-81e4-4ff4-8c67-17596fd0aa46",
                "extension":  [
                    {
                        "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-Coverage",
                        "valueCodeableConcept": {
                            "coding":  [
                                {
                                    "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-FundingCategory",
                                    "code": "nhs-england",
                                    "display": "NHS England"
                                }
                            ]
                        }
                    }
                ],
                "status": "active",
                "intent": "order",
                "category":  [
                    {
                        "coding":  [
                            {
                                "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-GenomeSequencingCategory",
                                "code": "rare-disease-non-wgs",
                                "display": "Rare Disease - Non-WGS"
                            }
                        ]
                    }
                ],
                "priority": "routine",
                "code": {
                    "coding":  [
                        {
                            "system": "https://fhir.nhs.uk/CodeSystem/England-GenomicTestDirectory",
                            "code": "R67.2",
                            "display": "Monogenic hearing loss",
                            "version": "7"
                        }
                    ]
                },
                "subject": {
                    "reference": "Patient/e87361ea-b6fb-482e-a252-af3199792582",
                    "identifier": {
                        "system": "https://fhir.nhs.uk/Id/nhs-number",
                        "value": "9449307873"
                    }
                },
                "authoredOn": "2023-08-05",
                "requester": {
                    "reference": "PractitionerRole/bbc46b47-42eb-41e5-bee4-efb2d3154254"
                },
                "reasonCode":  [
                    {
                        "coding":  [
                            {
                                "system": "https://fhir.nhs.uk/CodeSystem/reasonfortesting-genomics",
                                "code": "diagnostic",
                                "display": "Diagnostic"
                            }
                        ]
                    }
                ],
                "note":  [
                    {
                        "text": "No family history of genomic testing"
                    },
                    {
                        "text": "Free text for diagnosis/reason for referral, relevant information including family history, phenotypic details/ HPO Terms/Patient in need of test...example"
                    }
                ]
            },
            "response": {
                "status": "201 Created",
                "location": "ServiceRequest/4d70678c-81e4-4ff4-8c67-17596fd0aa46/",
                "lastModified": "2024-01-30T12:01:24Z",
                "outcome": {
                    "resourceType": "OperationOutcome",
                    "meta": {
                        "lastUpdated": "2024-01-30T12:01:24Z"
                    },
                    "issue":  [
                        {
                            "severity": "information",
                            "code": "informational",
                            "diagnostics": "No issues detected during validation."
                        }
                    ]
                }
            }
        },
        {
            "fullUrl": "https://api.service.nhs.uk/genomic-order-management-service/FHIR/R4/Patient/e87361ea-b6fb-482e-a252-af3199792582",
            "resource": {
                "resourceType": "Patient",
                "id": "e87361ea-b6fb-482e-a252-af3199792582",
                "extension":  [
                    {
                        "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-BirthSex",
                        "valueCodeableConcept": {
                            "coding":  [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v3-AdministrativeGender",
                                    "code": "M",
                                    "display": "Male"
                                }
                            ]
                        }
                    },
                    {
                        "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-EthnicCategory",
                        "valueCodeableConcept": {
                            "coding":  [
                                {
                                    "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-EthnicCategoryEngland",
                                    "code": "A",
                                    "display": "White - British"
                                }
                            ]
                        }
                    }
                ],
                "identifier":  [
                    {
                        "system": "https://fhir.nhs.uk/Id/nhs-number",
                        "value": "9449307873",
                        "extension":  [
                            {
                                "url": "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus",
                                "valueCodeableConcept": {
                                    "coding":  [
                                        {
                                            "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-NHSNumberVerificationStatusEngland",
                                            "version": "2.2.0",
                                            "code": "01",
                                            "display": "Number present and verified"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    {
                        "system": "urn:oid:2.16.840.1.113883.2.1.3.2.4.18.24",
                        "value": "RGT012423",
                        "assigner": {
                            "identifier": {
                                "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                                "value": "RGT01"
                            }
                        }
                    },
                    {
                        "system": "https://fhir.nhs.uk/Id/genomics-pedigree-number",
                        "value": "P12345"
                    }
                ],
                "name":  [
                    {
                        "given":  [
                            "Meir",
                            "Anah"
                        ],
                        "family": "Lieberman"
                    }
                ],
                "birthDate": "2005-12-19",
                "deceasedBoolean": false,
                "address":  [
                    {
                        "line":  [
                            "1 Spinney Close",
                            "Worcester Park"
                        ],
                        "city": "Surrey",
                        "postalCode": "KT4 7BS"
                    }
                ],
                "generalPractitioner":  [
                    {
                        "identifier": {
                            "system": "https://fhir.hl7.org.uk/Id/gmp-number",
                            "value": "G9999999"
                        },
                        "display": "Dr. Aero Smith"
                    },
                    {
                        "identifier": {
                            "system": "https://fhir.hl7.org.uk/Id/ODS-code",
                            "value": "TP123"
                        },
                        "display": "123 Test Practice"
                    }
                ],
                "link":  [
                    {
                        "other": {
                            "reference": "https://api.service.nhs.uk/personal-demographics/FHIR/R4/Patient/9449307873"
                        },
                        "type": "seealso"
                    }
                ]
            },
            "response": {
                "status": "201 Created",
                "location": "Patient/e87361ea-b6fb-482e-a252-af3199792582/",
                "lastModified": "2024-01-30T12:01:24Z",
                "outcome": {
                    "resourceType": "OperationOutcome",
                    "meta": {
                        "lastUpdated": "2024-01-30T12:01:24Z"
                    },
                    "issue":  [
                        {
                            "severity": "information",
                            "code": "informational",
                            "diagnostics": "No issues detected during validation."
                        }
                    ]
                }
            }
        }
    ]
}
<Bundle xmlns="http://hl7.org/fhir">
    <id value="Bundle-TransactionResponseSuccess-Example" />
    <meta>
        <lastUpdated value="2024-01-30T12:01:24Z" />
    </meta>
    <type value="transaction-response" />
    <entry>
        <fullUrl value="https://api.service.nhs.uk/genomic-order-management-service/FHIR/R4/ServiceRequest/4d70678c-81e4-4ff4-8c67-17596fd0aa46" />
        <resource>
            <ServiceRequest>
                <id value="4d70678c-81e4-4ff4-8c67-17596fd0aa46" />
                <extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-Coverage">
                    <valueCodeableConcept>
                        <coding>
                            <system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-FundingCategory" />
                            <code value="nhs-england" />
                            <display value="NHS England" />
                        </coding>
                    </valueCodeableConcept>
                </extension>
                <status value="active" />
                <intent value="order" />
                <category>
                    <coding>
                        <system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-GenomeSequencingCategory" />
                        <code value="rare-disease-non-wgs" />
                        <display value="Rare Disease - Non-WGS" />
                    </coding>
                </category>
                <priority value="routine" />
                <code>
                    <coding>
                        <system value="https://fhir.nhs.uk/CodeSystem/England-GenomicTestDirectory" />
                        <version value="7" />
                        <code value="R67.2" />
                        <display value="Monogenic hearing loss" />
                    </coding>
                </code>
                <subject>
                    <reference value="Patient/e87361ea-b6fb-482e-a252-af3199792582" />
                    <identifier>
                        <system value="https://fhir.nhs.uk/Id/nhs-number" />
                        <value value="9449307873" />
                    </identifier>
                </subject>
                <authoredOn value="2023-08-05" />
                <requester>
                    <reference value="PractitionerRole/bbc46b47-42eb-41e5-bee4-efb2d3154254" />
                </requester>
                <reasonCode>
                    <coding>
                        <system value="https://fhir.nhs.uk/CodeSystem/reasonfortesting-genomics" />
                        <code value="diagnostic" />
                        <display value="Diagnostic" />
                    </coding>
                </reasonCode>
                <note>
                    <text value="No family history of genomic testing" />
                </note>
                <note>
                    <text value="Free text for diagnosis/reason for referral, relevant information including family history, phenotypic details/ HPO Terms/Patient in need of test...example" />
                </note>
            </ServiceRequest>
        </resource>
        <response>
            <status value="201 Created" />
            <location value="ServiceRequest/4d70678c-81e4-4ff4-8c67-17596fd0aa46/" />
            <lastModified value="2024-01-30T12:01:24Z" />
            <outcome>
                <OperationOutcome>
                    <meta>
                        <lastUpdated value="2024-01-30T12:01:24Z" />
                    </meta>
                    <issue>
                        <severity value="information" />
                        <code value="informational" />
                        <diagnostics value="No issues detected during validation." />
                    </issue>
                </OperationOutcome>
            </outcome>
        </response>
    </entry>
    <entry>
        <fullUrl value="https://api.service.nhs.uk/genomic-order-management-service/FHIR/R4/Patient/e87361ea-b6fb-482e-a252-af3199792582" />
        <resource>
            <Patient>
                <id value="e87361ea-b6fb-482e-a252-af3199792582" />
                <extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-BirthSex">
                    <valueCodeableConcept>
                        <coding>
                            <system value="http://terminology.hl7.org/CodeSystem/v3-AdministrativeGender" />
                            <code value="M" />
                            <display value="Male" />
                        </coding>
                    </valueCodeableConcept>
                </extension>
                <extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-EthnicCategory">
                    <valueCodeableConcept>
                        <coding>
                            <system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-EthnicCategoryEngland" />
                            <code value="A" />
                            <display value="White - British" />
                        </coding>
                    </valueCodeableConcept>
                </extension>
                <identifier>
                    <extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus">
                        <valueCodeableConcept>
                            <coding>
                                <system value="https://fhir.hl7.org.uk/CodeSystem/UKCore-NHSNumberVerificationStatusEngland" />
                                <version value="2.2.0" />
                                <code value="01" />
                                <display value="Number present and verified" />
                            </coding>
                        </valueCodeableConcept>
                    </extension>
                    <system value="https://fhir.nhs.uk/Id/nhs-number" />
                    <value value="9449307873" />
                </identifier>
                <identifier>
                    <system value="urn:oid:2.16.840.1.113883.2.1.3.2.4.18.24" />
                    <value value="RGT012423" />
                    <assigner>
                        <identifier>
                            <system value="https://fhir.nhs.uk/Id/ods-organization-code" />
                            <value value="RGT01" />
                        </identifier>
                    </assigner>
                </identifier>
                <identifier>
                    <system value="https://fhir.nhs.uk/Id/genomics-pedigree-number" />
                    <value value="P12345" />
                </identifier>
                <name>
                    <family value="Lieberman" />
                    <given value="Meir" />
                    <given value="Anah" />
                </name>
                <birthDate value="2005-12-19" />
                <deceasedBoolean value="false" />
                <address>
                    <line value="1 Spinney Close" />
                    <line value="Worcester Park" />
                    <city value="Surrey" />
                    <postalCode value="KT4 7BS" />
                </address>
                <generalPractitioner>
                    <identifier>
                        <system value="https://fhir.hl7.org.uk/Id/gmp-number" />
                        <value value="G9999999" />
                    </identifier>
                    <display value="Dr. Aero Smith" />
                </generalPractitioner>
                <generalPractitioner>
                    <identifier>
                        <system value="https://fhir.hl7.org.uk/Id/ODS-code" />
                        <value value="TP123" />
                    </identifier>
                    <display value="123 Test Practice" />
                </generalPractitioner>
                <link>
                    <other>
                        <reference value="https://api.service.nhs.uk/personal-demographics/FHIR/R4/Patient/9449307873" />
                    </other>
                    <type value="seealso" />
                </link>
            </Patient>
        </resource>
        <response>
            <status value="201 Created" />
            <location value="Patient/e87361ea-b6fb-482e-a252-af3199792582/" />
            <lastModified value="2024-01-30T12:01:24Z" />
            <outcome>
                <OperationOutcome>
                    <meta>
                        <lastUpdated value="2024-01-30T12:01:24Z" />
                    </meta>
                    <issue>
                        <severity value="information" />
                        <code value="informational" />
                        <diagnostics value="No issues detected during validation." />
                    </issue>
                </OperationOutcome>
            </outcome>
        </response>
    </entry>
</Bundle>