Input Example


AllergyIntolerance.text[0].status[0]generated
AllergyIntolerance.text[0].div[0]<div xmlns="http://www.w3.org/1999/xhtml"><p><b>Some text to transform</b></p></div>
AllergyIntolerance.extension[0].url[0]http://hl7.org/fhir/StructureDefinition/encounter-associatedEncounter
AllergyIntolerance.extension[0].value[0].reference[0]Encounter/Base-STU3--Encounter--00001
AllergyIntolerance.extension[1].extension[0].url[0]endDate
AllergyIntolerance.extension[1].extension[0].value[0]2022-01-15
AllergyIntolerance.extension[1].extension[1].url[0]reasonEnded
AllergyIntolerance.extension[1].extension[1].value[0]Allergy resolved by prescribed medication
AllergyIntolerance.extension[1].url[0]https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyIntoleranceEnd-1
AllergyIntolerance.extension[2].url[0]https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-Evidence-1
AllergyIntolerance.extension[2].value[0].reference[0]DiagnosticReport/Base-STU3--DiagnosticReport--00001
AllergyIntolerance.identifier[0].system[0]http://acme.com/ids/patients/risks
AllergyIntolerance.identifier[0].value[0]49476534
AllergyIntolerance.identifier[0].assigner[0].reference[0]Organization/NHSD-STU3--CareConnect-Organisation-1--00001
AllergyIntolerance.type[0]allergy
AllergyIntolerance.category[0]medication
AllergyIntolerance.criticality[0]high
AllergyIntolerance.code[0].coding[0].extension[0].extension[0].url[0]descriptionId
AllergyIntolerance.code[0].coding[0].extension[0].extension[0].value[0]614975019
AllergyIntolerance.code[0].coding[0].extension[0].extension[1].url[0]descriptionDisplay
AllergyIntolerance.code[0].coding[0].extension[0].extension[1].value[0]Cashew nuts (substance)
AllergyIntolerance.code[0].coding[0].extension[0].url[0]https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid
AllergyIntolerance.code[0].coding[0].system[0]http://snomed.info/sct
AllergyIntolerance.code[0].coding[0].code[0]227493005
AllergyIntolerance.code[0].coding[0].display[0]Cashew nut
AllergyIntolerance.code[0].text[0]Cashew nuts
AllergyIntolerance.patient[0].reference[0]Patient/example
AllergyIntolerance.onset[0]2004
AllergyIntolerance.recorder[0].reference[0]Practitioner/example
AllergyIntolerance.asserter[0].reference[0]Patient/example
AllergyIntolerance.lastOccurrence[0]2012-06
AllergyIntolerance.note[0].text[0]The criticality is high becasue of the observed anaphylactic reaction when challenged with cashew extract.
AllergyIntolerance.reaction[0].substance[0].coding[0].system[0]http://www.nlm.nih.gov/research/umls/rxnorm
AllergyIntolerance.reaction[0].substance[0].coding[0].code[0]1160593
AllergyIntolerance.reaction[0].substance[0].coding[0].display[0]cashew nut allergenic extract Injectable Product
AllergyIntolerance.reaction[0].substance[0].coding[1].extension[0].extension[0].url[0]descriptionId
AllergyIntolerance.reaction[0].substance[0].coding[1].extension[0].extension[0].value[0]1462228014
AllergyIntolerance.reaction[0].substance[0].coding[1].extension[0].extension[1].url[0]descriptionDisplay
AllergyIntolerance.reaction[0].substance[0].coding[1].extension[0].extension[1].value[0]Anacardium occidentale specific immunoglobulin E (substance)
AllergyIntolerance.reaction[0].substance[0].coding[1].extension[0].url[0]https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid
AllergyIntolerance.reaction[0].substance[0].coding[1].system[0]http://snomed.info/sct
AllergyIntolerance.reaction[0].substance[0].coding[1].code[0]388050007
AllergyIntolerance.reaction[0].substance[0].coding[1].display[0]Cashew nut specific IgE
AllergyIntolerance.reaction[0].manifestation[0].coding[0].extension[0].extension[0].url[0]descriptionId
AllergyIntolerance.reaction[0].manifestation[0].coding[0].extension[0].extension[0].value[0]776058010
AllergyIntolerance.reaction[0].manifestation[0].coding[0].extension[0].extension[1].url[0]descriptionDisplay
AllergyIntolerance.reaction[0].manifestation[0].coding[0].extension[0].extension[1].value[0]Anaphylaxis (disorder)
AllergyIntolerance.reaction[0].manifestation[0].coding[0].extension[0].url[0]https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid
AllergyIntolerance.reaction[0].manifestation[0].coding[0].system[0]http://snomed.info/sct
AllergyIntolerance.reaction[0].manifestation[0].coding[0].code[0]39579001
AllergyIntolerance.reaction[0].manifestation[0].coding[0].display[0]Anaphylactic reaction
AllergyIntolerance.reaction[0].description[0]Challenge Protocol. Severe reaction to subcutaneous cashew extract. Epinephrine administered
AllergyIntolerance.reaction[0].onset[0]2012-06-12
AllergyIntolerance.reaction[0].severity[0]severe
AllergyIntolerance.reaction[0].exposureRoute[0].coding[0].extension[0].extension[0].url[0]descriptionId
AllergyIntolerance.reaction[0].exposureRoute[0].coding[0].extension[0].extension[0].value[0]765702016
AllergyIntolerance.reaction[0].exposureRoute[0].coding[0].extension[0].extension[1].url[0]descriptionDisplay
AllergyIntolerance.reaction[0].exposureRoute[0].coding[0].extension[0].extension[1].value[0]Subcutaneous route (qualifier value)
AllergyIntolerance.reaction[0].exposureRoute[0].coding[0].extension[0].url[0]https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid
AllergyIntolerance.reaction[0].exposureRoute[0].coding[0].system[0]http://snomed.info/sct
AllergyIntolerance.reaction[0].exposureRoute[0].coding[0].code[0]34206005
AllergyIntolerance.reaction[0].exposureRoute[0].coding[0].display[0]Subcutaneous route
AllergyIntolerance.reaction[0].note[0].author[0].reference[0]Practitioner/NHSD-STU3--CareConnect-Practitioner-1--00001
AllergyIntolerance.reaction[0].note[0].text[0]The patient reports that the onset of urticaria was within 15 minutes of eating cashews.

{
    "resourceType": "AllergyIntolerance",
    "text": {
        "status": "generated",
        --- We have skipped the narrative for better readability of the resource ---
    },
    "extension":  [
        {
            "url": "http://hl7.org/fhir/StructureDefinition/encounter-associatedEncounter",
            "valueReference": {
                "reference": "Encounter/Base-STU3--Encounter--00001"
            }
        },
        {
            "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-AllergyIntoleranceEnd-1",
            "extension":  [
                {
                    "url": "endDate",
                    "valueDateTime": "2022-01-15"
                },
                {
                    "url": "reasonEnded",
                    "valueString": "Allergy resolved by prescribed medication"
                }
            ]
        },
        {
            "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-Evidence-1",
            "valueReference": {
                "reference": "DiagnosticReport/Base-STU3--DiagnosticReport--00001"
            }
        }
    ],
    "identifier":  [
        {
            "system": "http://acme.com/ids/patients/risks",
            "value": "49476534",
            "assigner": {
                "reference": "Organization/NHSD-STU3--CareConnect-Organisation-1--00001"
            }
        }
    ],
    "clinicalStatus": "active",
    "verificationStatus": "confirmed",
    "type": "allergy",
    "category":  [
        "medication"
    ],
    "criticality": "high",
    "code": {
        "coding":  [
            {
                "extension":  [
                    {
                        "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid",
                        "extension":  [
                            {
                                "url": "descriptionId",
                                "valueId": "614975019"
                            },
                            {
                                "url": "descriptionDisplay",
                                "valueString": "Cashew nuts (substance)"
                            }
                        ]
                    }
                ],
                "system": "http://snomed.info/sct",
                "code": "227493005",
                "display": "Cashew nut"
            }
        ],
        "text": "Cashew nuts"
    },
    "patient": {
        "reference": "Patient/example"
    },
    "onsetDateTime": "2004",
    "assertedDate": "2014-10-09T14:58:00+11:00",
    "recorder": {
        "reference": "Practitioner/example"
    },
    "asserter": {
        "reference": "Patient/example"
    },
    "lastOccurrence": "2012-06",
    "note":  [
        {
            "text": "The criticality is high becasue of the observed anaphylactic reaction when challenged with cashew extract."
        }
    ],
    "reaction":  [
        {
            "substance": {
                "coding":  [
                    {
                        "system": "http://www.nlm.nih.gov/research/umls/rxnorm",
                        "code": "1160593",
                        "display": "cashew nut allergenic extract Injectable Product"
                    },
                    {
                        "extension":  [
                            {
                                "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid",
                                "extension":  [
                                    {
                                        "url": "descriptionId",
                                        "valueId": "1462228014"
                                    },
                                    {
                                        "url": "descriptionDisplay",
                                        "valueString": "Anacardium occidentale specific immunoglobulin E (substance)"
                                    }
                                ]
                            }
                        ],
                        "system": "http://snomed.info/sct",
                        "code": "388050007",
                        "display": "Cashew nut specific IgE"
                    }
                ]
            },
            "manifestation":  [
                {
                    "coding":  [
                        {
                            "extension":  [
                                {
                                    "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid",
                                    "extension":  [
                                        {
                                            "url": "descriptionId",
                                            "valueId": "776058010"
                                        },
                                        {
                                            "url": "descriptionDisplay",
                                            "valueString": "Anaphylaxis (disorder)"
                                        }
                                    ]
                                }
                            ],
                            "system": "http://snomed.info/sct",
                            "code": "39579001",
                            "display": "Anaphylactic reaction"
                        }
                    ]
                }
            ],
            "description": "Challenge Protocol. Severe reaction to subcutaneous cashew extract. Epinephrine administered",
            "onset": "2012-06-12",
            "severity": "severe",
            "exposureRoute": {
                "coding":  [
                    {
                        "extension":  [
                            {
                                "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid",
                                "extension":  [
                                    {
                                        "url": "descriptionId",
                                        "valueId": "765702016"
                                    },
                                    {
                                        "url": "descriptionDisplay",
                                        "valueString": "Subcutaneous route (qualifier value)"
                                    }
                                ]
                            }
                        ],
                        "system": "http://snomed.info/sct",
                        "code": "34206005",
                        "display": "Subcutaneous route"
                    }
                ]
            },
            "note":  [
                {
                    "authorReference": {
                        "reference": "Practitioner/NHSD-STU3--CareConnect-Practitioner-1--00001"
                    },
                    "text": "The patient reports that the onset of urticaria was within 15 minutes of eating cashews."
                }
            ]
        }
    ]
}

TODO (STU3 resource won't render as project is R4)