Smart Container API Documentation for SMART App Developers

Unknown macro: {composition-setup}

This is the technical API documentation for SMART app developers.

Overview

The smartcontainer module supports the following SMART REST calls for SMART data types according to SMART REST API specification.

The typical base URL is

http://127.0.0.1:9999/openmrs/smartcontainer/rest/api/

Container Calls

Capabilities

Ontology

User

Record Calls

Allergy

Demographics

Get all demographics for a patient.

GET /records/{patient_id}/demographics

Unknown macro: {toggle-cloak}
Click here to see typical output

Unknown macro: {cloak}

<?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sp="http://smartplatforms.org/terms#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:v="http://www.w3.org/2006/vcard/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> <foaf:Person rdf:nodeID="node167gl12stx1"> <foaf:givenName>Horatio</foaf:givenName> <foaf:familyName>Hornblower</foaf:familyName> <foaf:gender>male</foaf:gender> <sp:zipcode>46202</sp:zipcode> <sp:birthday>1994-05-25</sp:birthday> </foaf:Person> </rdf:RDF>

Unknown macro: {cloak}

Fulfillment

Lab Result

Get all the lab results for a given patient

GET /records/{patient_id}/lab_results/

Unknown macro: {toggle-cloak}
Click here to see typical output

Unknown macro: {cloak}

<?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sp="http://smartplatforms.org/terms#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:v="http://www.w3.org/2006/vcard/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> <sp:LabResult rdf:nodeID="node167gl12vqx190"/> <sp:CodedValue rdf:nodeID="node167gl12vqx191"> <sp:code rdf:resource="http://loinc.org/codes/3141-9"/> <dcterms:title>WEIGHT (KG)</dcterms:title> </sp:CodedValue> <sp:CodeProvenance rdf:nodeID="node167gl12vqx192"> <sp:sourceCode rdf:resource="http://openmrs.org/codes/5089"/> <dcterms:title>WEIGHT (KG)</dcterms:title> <sp:translationFidelity rdf:resource="http://smartplatforms.org/terms/code/fidelity#verified"/> </sp:CodeProvenance> <rdf:Description rdf:nodeID="node167gl12vqx191"> <sp:codeProvenance rdf:nodeID="node167gl12vqx192"/> </rdf:Description> <sp:code rdf:about="http://loinc.org/codes/3141-9"> <sp:system rdf:resource="http://loinc.org/codes/"/> <dcterms:identifier>3141-9</dcterms:identifier> </sp:code> <rdf:Description rdf:nodeID="node167gl12vqx190"> <sp:labName rdf:nodeID="node167gl12vqx191"/> </rdf:Description> <sp:QuantitativeResult rdf:nodeID="node167gl12vqx193"/> <sp:ValueAndUnit rdf:nodeID="node167gl12vqx194"> <sp:value>100.0</sp:value> <sp:unit>kg</sp:unit> </sp:ValueAndUnit> <rdf:Description rdf:nodeID="node167gl12vqx193"> <sp:valueAndUnit rdf:nodeID="node167gl12vqx194"/> </rdf:Description> <sp:ResultRange rdf:nodeID="node167gl12vqx195"/> <rdf:Description rdf:nodeID="node167gl12vqx193"> <sp:normalRange rdf:nodeID="node167gl12vqx195"/> </rdf:Description> <rdf:Description rdf:nodeID="node167gl12vqx190"> <sp:quantitativeResult rdf:nodeID="node167gl12vqx193"/> </rdf:Description> <sp:Attribution rdf:nodeID="node167gl12vqx196"> <sp:startTime>2011-08-01</sp:startTime> </sp:Attribution> <rdf:Description rdf:nodeID="node167gl12vqx190"> <sp:specimenCollected rdf:nodeID="node167gl12vqx196"/> </rdf:Description> <sp:LabResult rdf:nodeID="node167gl12vqx197"/> <sp:CodedValue rdf:nodeID="node167gl12vqx198"> <sp:code rdf:resource="http://loinc.org/codes/8310-5"/> <dcterms:title>TEMPERATURE (C)</dcterms:title> </sp:CodedValue> <sp:CodeProvenance rdf:nodeID="node167gl12vqx199"> <sp:sourceCode rdf:resource="http://openmrs.org/codes/5088"/> <dcterms:title>TEMPERATURE (C)</dcterms:title> <sp:translationFidelity rdf:resource="http://smartplatforms.org/terms/code/fidelity#verified"/> </sp:CodeProvenance> <rdf:Description rdf:nodeID="node167gl12vqx198"> <sp:codeProvenance rdf:nodeID="node167gl12vqx199"/> </rdf:Description> <sp:code rdf:about="http://loinc.org/codes/8310-5"> <sp:system rdf:resource="http://loinc.org/codes/"/> <dcterms:identifier>8310-5</dcterms:identifier> </sp:code> <rdf:Description rdf:nodeID="node167gl12vqx197"> <sp:labName rdf:nodeID="node167gl12vqx198"/> </rdf:Description> <sp:QuantitativeResult rdf:nodeID="node167gl12vqx200"/> <sp:ValueAndUnit rdf:nodeID="node167gl12vqx201"> <sp:value>43.0</sp:value> <sp:unit>DEG C</sp:unit> </sp:ValueAndUnit> <rdf:Description rdf:nodeID="node167gl12vqx200"> <sp:valueAndUnit rdf:nodeID="node167gl12vqx201"/> </rdf:Description> <sp:ResultRange rdf:nodeID="node167gl12vqx202"/> <rdf:Description rdf:nodeID="node167gl12vqx200"> <sp:normalRange rdf:nodeID="node167gl12vqx202"/>