This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<Consent xmlns="http://hl7.org/fhir"> | |
<meta> | |
<profile value="https://fhir.nhs.uk/STU3/StructureDefinition/NDOP-Consent-1"/> | |
</meta> | |
<extension url="https://fhir.nhs.uk/STU3/StructureDefinition/Extension-NDOP-OptOutSource-1"> | |
<valueCodeableConcept> | |
<coding> | |
<system value="https://fhir.nhs.uk/STU3/CodeSystem/NDOP-OptOutSource-1"/> | |
<code value="OP"/> |
This file contains 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
<response> | |
<identifier value="ea7221b8-3cc0-4b11-bc95-585b056b5427"/> | |
<code value="fatal-error"/> | |
<details> | |
<reference value="urn:uuid:f19e4165-b379-4377-ad43-df65f609eba5"/> | |
</details> | |
</response> | |
.................... | |
<resource> | |
<OperationOutcome> |
This file contains 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
HTTP/1.1 200 OK | |
Server: nginx/1.10.0 (Ubuntu) | |
Date: Mon, 19 Jun 2017 08:36:12 GMT | |
Content-Type: application/fhir+xml;charset=utf-8 | |
Last-Modified: Mon, 19 Jun 2017 08:36:12 GMT |
This file contains 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
<Organization> | |
<id value="RR8" /> | |
<extension url="https://fhir.nhs.uk/StructureDefinition/STU3/Extension-ODSAPI-ActivePeriod-1"> | |
<valuePeriod> | |
<extension url="https://fhir.nhs.uk/StructureDefinition/STU3/Extension-ODSAPI-DateType-1"> | |
<valueString value="Operational" /> | |
</extension> | |
<start value="1998-04-01" /> | |
</valuePeriod> | |
</extension> |
This file contains 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
<Organization> | |
<id value="NMV04" /> | |
<extension url="https://fhir.nhs.uk/StructureDefinition/STU3/Extension-ODSAPI-ActivePeriod-1"> | |
<valuePeriod> | |
<extension url="https://fhir.nhs.uk/StructureDefinition/STU3/Extension-ODSAPI-DateType-1"> | |
<valueString value="Operational" /> | |
</extension> | |
<start value="2009-10-01" /> | |
</valuePeriod> | |
</extension> |
This file contains 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> | |
<id value="e9d221f0-c1f3-4d20-8d83-439721cf659d" /> | |
<meta> | |
<versionId value="46bd9ffa-ad31-4945-9fc8-ceedb2325d64"></versionId> | |
<lastUpdated value="2017-09-08T14:37:46.798+00:00"></lastUpdated> | |
</meta> | |
<type value="searchset" /> | |
<entry> | |
<resource> | |
<Organization> |
This file contains 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
// Create a FHIR Context - Need to check STU3 syntax and ref on line 13 | |
FhirContext ctx = FhirContext.forSTU3(); | |
IParser parser = ctx.newXmlParser(); | |
// Create a client and post the transaction to the server | |
IGenericClient client = ctx.newRestfulGenericClient("https://fhir.nhs.uk/STU3/"); | |
System.out.println("GET https://fhir.nhs.uk/STU3/ODSAPI-Organization-1?postalCode=NG10 1QQ"); | |
Bundle results = client | |
.search() |
This file contains 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 searchOrgCode() | |
{ | |
FhirContext ctx = FhirContext.forSTU3(); | |
IParser parser = ctx.newXmlParser(); | |
// Create a client and post the transaction to the server | |
IGenericClient client = ctx.newRestfulGenericClient("https://fhir.nhs.uk/STU3/"); | |
System.out.println("GET https://fhir.nhs.uk/STU3/ODSAPI-Organiztion-1?identifier= https://fhir.nhs.uk/Id/ods-organization-code|RR8"); | |
Bundle results = client |
This file contains 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
//Java code to be added for ODS search org role |
This file contains 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="8f4daf25-3421-4530-a09f-2e565a2ba002"/> | |
<meta> | |
<lastUpdated value="2017-12-09T11:15:19.625+00:00"/> | |
</meta> | |
<type value="searchset"/> | |
<total value="1"/> | |
<link> | |
<relation value="self"/> | |
<url value="https://fhir.nhs.uk/STU3/StructureDefinition/Organization?identifier=RXX"/> |
OlderNewer