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 / GetUnstructuredDocument-Example.json
Created October 12, 2018 15:25
GetUnstructuredDocument-Example.json
{
"resourceType": "Binary",
"id": "40059",
"fhir_comments": [
" Binary document created independently in other server\n We will share this document throut"
],
"meta": {
"versionId": "1",
"lastUpdated": "2018-10-02T09:56:17.583+00:00"
},
@swk003
swk003 / GetUnstructuredDocument-Example.xml
Last active October 12, 2018 15:14
GetUnstructuredDocument-Example.xml
<Binary xmlns="http://hl7.org/fhir">
<id value="40059"/>
<meta>
<versionId value="1"/>
<lastUpdated value="2018-10-02T09:56:17.583+00:00"/>
</meta>
<!-- Content Type: XML CDA Base 64 document -->
<contentType value="application/pdf"/>
<!-- Actual Content of the Document -->
<content value="JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu Zyhlbi1HQikgL1N0cnVjdFRyZWVSb290IDEwIDAgUi9NYXJrSW5mbzw8L01hcmtlZCB0cnVlPj4v TWV0YWRhdGEgMjAgMCBSL1ZpZXdlclByZWZlcmVuY2VzIDIxIDAgUj4+DQplbmRvYmoNCjIgMCBv YmoNCjw8L1R5cGUvUGFnZXMvQ291bnQgMS9LaWRzWyAzIDAgUl0gPj4NCmVuZG9iag0KMyAwIG9i ag0KPDwvVHlwZS9QYWdlL1BhcmVudCAyIDAgUi9SZXNvdXJjZXM8PC9Gb250PDwvRjEgNSAwIFI+ Pi9FeHRHU3RhdGU8PC9HUzcgNyAwIFIvR1M4IDggMCBSPj4vUHJvY1NldFsvUERGL1RleHQvSW1h Z2VCL0ltYWdlQy9JbWFnZUldID4+L01lZGlhQm94WyAwIDAgNTk1LjIgODQxLjZdIC9Db250ZW50"/>
@swk003
swk003 / NRLS-ConsumerSearch-DocumentReference-Example-5.xml
Last active May 29, 2018 14:35
NRLS-ConsumerSearch-SinglePointerReturned-DocumentReference-Example-5 (XML)
<Bundle xmlns="http://hl7.org/fhir">
<id value="dd9724d1-7b61-44e2-9023-b72e6b966018"/>
<type value="searchset"/>
<total value="1"/>
<entry>
<resource>
<DocumentReference>
<id value="0353e505-f7be-4c20-8f4e-337e79a32c51"/>
<meta>
<profile value="https://fhir.nhs.uk/STU3/StructureDefinition/NRLS-DocumentReference-1"/>
@swk003
swk003 / NRLS-ConsumerSearch-DocumentReference-Example-3.xml
Last active May 29, 2018 14:37
NRLS-ConsumerSearch-MultiPointerReturned-DocumentReference-Example-3 (XML)
<Bundle xmlns="http://hl7.org/fhir">
<id value="dd9724d1-7b61-44e2-9023-b72e6b966018"/>
<type value="searchset"/>
<total value="2"/>
<entry>
<resource>
<DocumentReference>
<id value="0353e505-f7be-4c20-8f4e-337e79a32c51"/>
<meta>
<profile value="https://fhir.nhs.uk/STU3/StructureDefinition/NRLS-DocumentReference-1"/>
@swk003
swk003 / NRLS-ConsumerSearch-DocumentReference-Example-5.json
Created May 24, 2018 00:58
NRLS-ConsumerSearch-DocumentReference-Example-5 (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": [
@swk003
swk003 / NRLS-ConsumerSearch-OperationOutcome-Example-2.xml
Created May 24, 2018 00:42
NRLS-ConsumerSearch-InvalidParameter-OperationOutcome-Example-2 (XML)
<OperationOutcome xmlns="http://hl7.org/fhir">
<id value="5a4171ac-486e-11e8-9ffc-6c3be5a609f5"/>
<meta>
<profile value="https://fhir.nhs.uk/STU3/StructureDefinition/Spine-OperationOutcome-1"/>
</meta>
<issue>
<severity value="error"/>
<code value="invalid"/>
<details>
<coding>
@swk003
swk003 / NRLS-ConsumerSearch-NoRecord(Pointer)Matched-DocumentReference-Example-4.xml
Created May 24, 2018 00:29
NRLS-ConsumerSearch-NoRecord(Pointer)Matched-DocumentReference-Example-4 (XML)
<Bundle xmlns="http://hl7.org/fhir">
<id value="de258b7f-2f0b-4b41-afcb-964d9995fd4f"/>
<type value="searchset"/>
<total value="0"/>
</Bundle>
@swk003
swk003 / NRLS-ProviderCreate-InvalidResource-OperationOutcome-Example-2.xml
Created March 1, 2018 21:05
NRLS-ProviderCreate-InvalidResource-OperationOutcome-Example-2 (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="invalid"/>
<details>
<coding>
@swk003
swk003 / NRLS-ProviderCreate-DocumentReference-Example-1.xml
Last active May 29, 2018 14:39
NRLS-ProviderCreate-DocumentReference-Example-1 (XML)
<DocumentReference>
<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"/>
<display value="Mental health crisis plan (record artifact)"/>
@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": [