{ "resourceType": "AllergyIntolerance", "contained": [ { "resourceType": "PracitionerRole", "id": "6090007", "code": [ { "coding": [ { "code": "doctor" } ] } ] } ], "clinicalStatus": { "coding": [ { "code": "active" } ] }, "verificationStatus": { "coding": [ { "code": "confirmed" } ] }, "type": "allergy", "category": [ "medication" ], "criticality": "high", "code": { "coding": [ { "system": "http://www.nlm.nih.gov/research/umls/rxnorm", "code": "723" } ], "text": "amoxicillin" }, "patient": { "reference": "Patient/7238008" }, "encounter": { "reference": "Encounter/4749909" }, "onsetDateTime": "2019-09-11T05:00:00.000Z", "asserter": { "reference": "#6090007" }, "note": [ { "authorReference": { "reference": "Practitioner/2578010" }, "text": "Updated with additional details provided by patient." } ], "reaction": [ { "manifestation": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "271757001" } ], "text": "Papular eruption" } ], "severity": "severe" } ]}
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "business-rule", "details": { "coding": [ { "code": "MSG_PARAM_INVALID", "display": "Parameter 'AllergyIntolerance.contained' content is invalid" } ], "text": "The value for AllergyIntolerance.contained is not supported." }, "diagnostics": "AllergyIntolerance.contained: expected contained resource of type 'PracitionerRole', or 'RelatedPerson' with id matching asserter reference id", "expression": [ "AllergyIntolerance.contained" ] } ]}