Skip to content

Instantly share code, notes, and snippets.

View swk003's full-sized avatar

simon knee swk003

  • NHS Digital
  • London
View GitHub Profile
@swk003
swk003 / NRLS-CapabilityStatement-Example-1
Created November 29, 2017 09:18
NRLS CapabilityStatement example
<CapabilityStatement xmlns="http://hl7.org/fhir">
<url value="https://fhir.nhs.uk/STU3/CapabilityStatement/NRLS-CapabilityStatement-1"/>
<version value="1.0.0"/>
<name value="NRLS-CapabilityStatement-1"/>
<status value="draft"/>
<date value="2017-10-11T10:20:38+00:00"/>
<publisher value="NHS Digital"/>
<contact>
<name value="Interoperability Team"/>
<telecom>
@swk003
swk003 / NRLS-ConsumerSearch-DocumentReference-Example-1.xml
Last active February 28, 2018 21:58
NRLS-ConsumerSearch-SinglePointerReturned-DocumentReference-Example-1 (XML)
<Bundle xmlns="http://hl7.org/fhir">
<id value="dd9724d1-7b61-44e2-9023-b72e6b966018"/>
<meta>
<versionId value="1c268b27-fcd9-45fc-92f7-3781b63c2593"/>
<lastUpdated value="2017-11-16T11:23:06.269+00:00"/>
</meta>
<type value="searchset"/>
<total value="1"/>
<link>
<relation value="self"/>
@swk003
swk003 / NRLS-SearchHTTPResponse
Created January 23, 2018 14:54
Search HTTP Response
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
@swk003
swk003 / NRLS-CapabilityStatement-Example-2.xml
Last active January 30, 2018 17:14
NRLS-CapabilityStatement-Example-2 (XML)
<CapabilityStatement xmlns="http://hl7.org/fhir">
<url value="https://fhir.nhs.uk/STU3/CapabilityStatement/NRLS-CapabilityStatement-1"/>
<version value="1.0.0"/>
<name value="NRLS-CapabilityStatement-1"/>
<status value="draft"/>
<date value="2017-10-11T10:20:38+00:00"/>
<publisher value="NHS Digital"/>
<contact>
<name value="Interoperability Team"/>
<telecom>
@swk003
swk003 / NRLS-DocumentReference-Example.json
Last active May 29, 2018 14:42
NRLS-DocumentReference-Example (JSON)
{
"resourceType": "DocumentReference",
"id": "c037a0cb-0c77-4976-83a1-a5d2703e6aa3",
"meta": {
"profile": [
"https://fhir.nhs.uk/STU3/StructureDefinition/NRLS-DocumentReference-1"
]
},
"status": "current",
"type": {
@swk003
swk003 / NRLS-DocumentReference-Example.xml
Last active May 29, 2018 14:43
NRLS-DocumentReference-Example (XML)
<DocumentReference xmlns="http://hl7.org/fhir">
<id value="c037a0cb-0c77-4976-83a1-a5d2703e6aa3"/>
<meta>
<profile value="https://fhir.nhs.uk/STU3/StructureDefinition/NRLS-DocumentReference-1"/>
</meta>
<status value="current"/>
<type>
<coding>
<system value="http://snomed.info/sct"/>
<code value="736253002"/>
@swk003
swk003 / NRLS-ConsumerSearch-DocumentReference-Example-2.xml
Last active February 28, 2018 21:55
NRLS-ConsumerSearch-MultiPointerReturned-DocumentReference-Example-2 (XML)
<Bundle xmlns="http://hl7.org/fhir">
<id value="dd9724d1-7b61-44e2-9023-b72e6b966018"/>
<meta>
<versionId value="1c268b27-fcd9-45fc-92f7-3781b63c2593"/>
<lastUpdated value="2017-11-16T11:23:06.269+00:00"/>
</meta>
<type value="searchset"/>
<total value="2"/>
<link>
<relation value="self"/>
@swk003
swk003 / NRLS-ConsumerSearch-DocumentReference-Example-3.xml
Last active February 28, 2018 21:55
NRLS-ConsumerSearch-NoRecord(Pointer)Matched-DocumentReference-Example-3 (XML)
<Bundle xmlns="http://hl7.org/fhir">
<id value="de258b7f-2f0b-4b41-afcb-964d9995fd4f"/>
<meta>
<versionId value="8c8263ee-f582-4d08-bf84-46d016127552"/>
<lastUpdated value="2017-11-16T11:18:41.61+00:00"/>
</meta>
<type value="searchset"/>
<total value="0"/>
<link>
<relation value="self"/>
@swk003
swk003 / NRLS-ConsumerSearch-OperationOutcome-Example-1.xml
Last active March 1, 2018 09:45
NRLS-ConsumerSearch-AccessDenied-OperationOutcome-Example-1 (XML)
<OperationOutcome xmlns="http://hl7.org/fhir">
<id value="f19e4165-b379-4377-ad43-df65f609eba5"/>
<meta>
<profile value="https://fhir.nhs.uk/STU3/StructureDefinition/Spine-OperationOutcome-1"/>
</meta>
<issue>
<severity value="error"/>
<code value="forbidden"/>
<details>
<coding>
@swk003
swk003 / NRLS-ConsumerSearch-DocumentReference-Example-4.json
Created March 1, 2018 10:58
NRLS-ConsumerSearch-DocumentReference-Example-4 (JSON)
{
"resourceType": "Bundle",
"id": "dd9724d1-7b61-44e2-9023-b72e6b966018",
"meta": {
"versionId": "1c268b27-fcd9-45fc-92f7-3781b63c2593",
"lastUpdated": "2017-11-16T11:23:06.269+00:00"
},
"type": "searchset",
"total": 2,
"link": [