transaction_bundle_example | R Documentation |
These data examples are simple examples to try out POSTing/PUTing resources to a server. See Source for how the xml versions look.
transaction_bundle_example
example_resource1
example_resource2
example_resource3
An object of class fhir_bundle_serialized
of length 1277.
An object of class fhir_resource_serialized
of length 267.
An object of class fhir_resource_serialized
of length 290.
An object of class fhir_resource_serialized
of length 608.
transaction_bundle_example
contains 1 transaction bundle with 2 Patient resources.
example_resource1
contains 1 patient resource without id for POSTing
example_resource2
contains 1 patient resource with id for PUTing
example_resource3
contains 1 Medication resource with an id xml attribute
transaction_bundle_example
<Bundle> <type value='transaction'/> <entry> <resource> <Patient> <id value='id1'/> <address> <use value='home'/> <city value='Amsterdam'/> <type value='physical'/> <country value='Netherlands'/> </address> <name> <given value='Marie'/> </name> </Patient> </resource> <request> <method value='POST'/> <url value='Patient'/> </request> </entry> <entry> <resource> <Patient> <id value='id3'/> <address> <use value='home'/> <city value='Berlin'/> </address> <address> <use value='work'/> <city value='London'/> <type value='postal'/> <country value='England'/> </address> <address> <type value='postal'/> <country value='France'/> </address> <name> <given value='Frank'/> </name> <name> <given value='Max'/> </name> </Patient> </resource> <request> <method value='POST'/> <url value='Patient'/> </request> </entry> </Bundle>
example_resource1
<Patient> <name> <given value = 'Marie'/> </name> <gender value = 'female'/> <birthDate value = '1970-01-01'/> </Patient>
example_resource2
<Patient> <id value = '1a2b3c'/> <name> <given value = 'Marie'/> </name> <gender value = 'female'/> <birthDate value = '1970-01-01'/> </Patient>
example_resource3
<Medication> <code> <coding> <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/> <code value="1594660"/> <display value="Alemtuzumab 10mg/ml (Lemtrada)"/> </coding> </code> <ingredient id="1"> <itemReference> <reference value="Substance/5463"/> </itemReference> </ingredient> <ingredient id="2"> <itemReference> <reference value="Substance/3401"/> </itemReference> </ingredient> </Medication>
#unserialize xml objects before doing anything else with them!
fhir_unserialize(bundles = transaction_bundle_example)
#unserialize xml objects before doing anything else with them!
fhir_unserialize(example_resource1)
#unserialize xml objects before doing anything else with them!
fhir_unserialize(example_resource2)
#unserialize xml objects before doing anything else with them!
fhir_unserialize(example_resource3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.