extract information from retained fields in AllergyIntolerance component of FHIR Bundle, produce simple data.frame

process_AllergyIntolerance(AllergyIntolerance)

Arguments

AllergyIntolerance

component of FHIR.bundle instance

Value

data.frame

Examples

testf <- system.file("json/Vince741_Rogahn59_6fa3d4ab-c0b6-424a-89d8-7d9105129296.json",
   package="BiocFHIR")
tbun <- process_fhir_bundle(testf)
process_AllergyIntolerance(tbun$AllergyIntolerance)
#>                                     id onsetDateTime
#> 1 47b487dc-bfd6-45d0-905c-7fb57fdf0eec          <NA>
#> 2 7cae18c7-d810-4161-adcd-b6b2e0a3a855          <NA>
#> 3 b3f46468-3742-4fe9-81ec-ae843d0c419b          <NA>
#> 4 46a360fd-525f-41a1-a916-376e5bb7bf01          <NA>
#> 5 2f959fc6-c04e-4940-b08e-9f4ea1c009b6          <NA>
#> 6 86c1dd8f-e5f9-4775-b854-47164989928f          <NA>
#> 7 4159b8ec-fec7-4b59-a003-e5be4cdfa5ba          <NA>
#> 8 91fb5e1c-3ce2-474a-a56a-49cc8b26fe49          <NA>
#>                               patient.reference category            code.system
#> 1 urn:uuid:eedf9986-9cf8-4e90-bf68-12a6dd9a31c2     food http://snomed.info/sct
#> 2 urn:uuid:eedf9986-9cf8-4e90-bf68-12a6dd9a31c2     food http://snomed.info/sct
#> 3 urn:uuid:eedf9986-9cf8-4e90-bf68-12a6dd9a31c2     food http://snomed.info/sct
#> 4 urn:uuid:eedf9986-9cf8-4e90-bf68-12a6dd9a31c2     food http://snomed.info/sct
#> 5 urn:uuid:eedf9986-9cf8-4e90-bf68-12a6dd9a31c2     food http://snomed.info/sct
#> 6 urn:uuid:eedf9986-9cf8-4e90-bf68-12a6dd9a31c2     food http://snomed.info/sct
#> 7 urn:uuid:eedf9986-9cf8-4e90-bf68-12a6dd9a31c2     food http://snomed.info/sct
#> 8 urn:uuid:eedf9986-9cf8-4e90-bf68-12a6dd9a31c2     food http://snomed.info/sct
#>   code.code             code.display
#> 1 419474003         Allergy to mould
#> 2 232350006  House dust mite allergy
#> 3 232347008  Dander (animal) allergy
#> 4 418689008  Allergy to grass pollen
#> 5 425525006 Allergy to dairy product
#> 6 420174000         Allergy to wheat
#> 7  91934008           Allergy to nut
#> 8  91935009       Allergy to peanuts