This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<OrderResponse xmlns="http://hl7.org/fhir"> | |
<contained> | |
<Order xmlns="http://hl7.org/fhir"> | |
<id value="order"/> | |
<subject> | |
<reference value="#pat"/> | |
</subject> | |
<reasonCodeableConcept> | |
<coding> | |
<system value="http://snomed.info/sct"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Bundle xmlns="http://hl7.org/fhir"> | |
<type value="searchset"/> | |
<total value="1"/> | |
<entry> | |
<fullUrl value="[baseUrl]/MedicationStatement/24964"/> | |
<resource> | |
<MedicationStatement xmlns="http://hl7.org/fhir"> | |
<id value="6b980ed2-2dc6-48e4-886d-745862fc9529"/> | |
<meta> | |
<profile value="https://fhir.hl7.org.uk/StructureDefinition/CareConnect-MedicationStatement-1"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void searchNHSNumber() | |
{ | |
FhirContext ctx = FhirContext.forDstu2(); | |
IParser parser = ctx.newXmlParser(); | |
// Create a client and post the transaction to the server | |
IGenericClient client = ctx.newRestfulGenericClient("http://127.0.0.1:8181/Dstu2/"); | |
System.out.println("GET http://127.0.0.1:8181/Dstu2/Patient?identifier=https://fhir.nhs.uk/Id/nhs-number|9876543210"); | |
Bundle results = client |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void medicationOrderQueryExample() | |
{ | |
FhirContext ctx = FhirContext.forDstu2(); | |
IParser parser = ctx.newXmlParser(); | |
// Create a client and post the transaction to the server | |
IGenericClient client = ctx.newRestfulGenericClient("http://127.0.0.1:8181/Dstu2/"); | |
// GET [baseUrl]\Patient?identifier=https://fhir.nhs.uk/Id/nhs-number|9439676165 | |
Bundle results = client |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ca.uhn.fhir.context.FhirContext; | |
import ca.uhn.fhir.model.api.ExtensionDt; | |
import ca.uhn.fhir.model.api.ResourceMetadataKeyEnum; | |
import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt; | |
import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt; | |
import ca.uhn.fhir.model.dstu2.composite.SimpleQuantityDt; | |
import ca.uhn.fhir.model.dstu2.resource.MedicationOrder; | |
import ca.uhn.fhir.model.dstu2.valueset.MedicationOrderStatusEnum; | |
import ca.uhn.fhir.model.primitive.DateTimeDt; | |
import ca.uhn.fhir.model.primitive.IdDt; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Bundle xmlns="http://hl7.org/fhir"> | |
<type value="searchset"/> | |
<total value="1"/> | |
<entry> | |
<fullUrl value="[baseUrl]/MedicationOrder/24966"/> | |
<resource> | |
<MedicationOrder xmlns="http://hl7.org/fhir"> | |
<id value="6bf79485-cee5-4a20-8e4a-4bf13aba33e6"/> | |
<meta> | |
<profile value="https://fhir.hl7.org.uk/StructureDefinition/CareConnect-MedicationOrder-1"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Bundle xmlns="http://hl7.org/fhir"> | |
<id value="194901ab-76e2-419f-a33f-ac0ce205410c"/> | |
<meta> | |
<lastUpdated value="2017-06-02T09:38:26.183+01:00"/> | |
</meta> | |
<type value="searchset"/> | |
<total value="1"/> | |
<link> | |
<relation value="self"/> | |
<url value="[baseUrl]/Procedure?patient.identifier=https%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C9876543210"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Bundle xmlns="http://hl7.org/fhir"> | |
<id value="2ec19aad-e619-42c7-a32e-3f0d39c5e7ac"/> | |
<meta> | |
<lastUpdated value="2017-06-02T09:22:07.888+01:00"/> | |
</meta> | |
<type value="searchset"/> | |
<total value="1"/> | |
<link> | |
<relation value="self"/> | |
<url value="[baseUrl]/Observation?patient.identifier=https%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C9876543210"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Bundle xmlns="http://hl7.org/fhir"> | |
<id value="6097e823-f4dd-4713-9e48-88a06c68e258"/> | |
<meta> | |
<lastUpdated value="2017-06-02T09:18:44.898+01:00"/> | |
</meta> | |
<type value="searchset"/> | |
<total value="1"/> | |
<link> | |
<relation value="self"/> | |
<url value="[baseUrl]/MedicationStatement?patient.identifier=https%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C9876543210"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Bundle xmlns="http://hl7.org/fhir"> | |
<id value="58ef1cb1-bbc4-482c-a469-8a0d338bb02b"/> | |
<meta> | |
<lastUpdated value="2017-06-02T09:15:15.163+01:00"/> | |
</meta> | |
<type value="searchset"/> | |
<total value="1"/> | |
<link> | |
<relation value="self"/> | |
<url value="[baseUrl]/MedicationOrder?patient.identifier=https%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C9876543210"/> |