Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bruno/PDM/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

**/node_modules/**

36 changes: 36 additions & 0 deletions bruno/PDM/Bundle/Post_a_Batch_Bundle_with_gets.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
meta {
name: Post a Batch Bundle with gets
type: http
seq: 4
}

post {
url: https://int.api.service.nhs.uk/patient-data-manager/FHIR/R4/
body: json
auth: inherit
}

headers {
X-Request-ID: bf95293b-13d3-46a4-abe0-f64f7ed9adfd
Content-Type: application/fhir+json
}

body:json {
{
"resourceType": "Bundle",
"type": "transaction",
"entry": [
{
"request": {
"method": "GET",
"url": "Observation/b9d8d29f-ced1-3d02-b55b-3c01f24c51fd"
}
}
]
}
}

settings {
encodeUrl: true
timeout: 0
}
135 changes: 135 additions & 0 deletions bruno/PDM/Bundle/Post_a_Transaction_Bundle.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
meta {
name: Post a Transaction Bundle
type: http
seq: 5
}

post {
url: https://int.api.service.nhs.uk/patient-data-manager/FHIR/R4/
body: json
auth: inherit
}

headers {
X-Request-ID: bf95293b-13d3-46a4-abe0-f64f7ed9adfd
}

body:json {
{
"resourceType": "Bundle",
"type": "transaction",
"entry": [
{
"request": {
"method": "PUT",
"url": "Observation/ec5e3a08-a4fe-462b-b627-d553b53a66f2",
"ifMatch": "0"
},
"resource": {
"resourceType": "Observation",
"id": "ec5e3a08-a4fe-462b-b627-d553b53a66f2",
"meta": {
"profile": [
"https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation-Group-Lab"
]
},
"identifier": [
{
"system": "https://tools.ietf.org/html/rfc4122",
"value": "331b7489-c241-4235-93e6-614579d7e14e"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "laboratory",
"display": "Laboratory"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "252167001",
"display": "Urea and electrolytes"
}
]
},
"subject": {
"reference": "urn:uuid:45d437b5-52b9-42a6-aafd-2bbe967f00d8",
"display": "WELSH, Joel",
"identifier": {
"system": "https://fhir.nhs.uk/Id/nhs-number",
"value": "9727710638"
}
},
"issued": "2022-03-08T14:23:00+00:00",
"performer": [
{
"reference": "urn:uuid:1847e638-1b68-4d7a-965f-6d5739b4b16e",
"display": "TD008362 PATH LAB 001"
}
],
"hasMember": [
{
"reference": "urn:uuid:e6556c4a-cf31-43b2-af6f-9c8604b650f9"
}
]
}
},
{
"request": {
"method": "PUT",
"url": "Specimen/57f7db59-e1f9-4b77-903f-7f0441467cb9",
"ifMatch": "0"
},
"resource": {
"resourceType": "Specimen",
"id": "57f7db59-e1f9-4b77-903f-7f0441467cb9",
"meta": {
"profile": [
"https://fhir.hl7.org.uk/StructureDefinition/UKCore-Specimen"
]
},
"identifier": [
{
"system": "http://B82033-pickeringmedicalpractice.com/specimen",
"value": "SPC-REQ-20220129-000362"
}
],
"status": "available",
"type": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "122555007",
"display": "Venous blood specimen"
}
]
},
"subject": {
"reference": "urn:uuid:45d437b5-52b9-42a6-aafd-2bbe967f00d8",
"display": "WELSH, Joel",
"identifier": {
"system": "https://fhir.nhs.uk/Id/nhs-number",
"value": "9727710638"
}
},
"collection": {
"collectedDateTime": "2022-01-29T10:18:00+00:00"
}
}
}
]
}
}

settings {
encodeUrl: true
timeout: 0
}
8 changes: 8 additions & 0 deletions bruno/PDM/Bundle/folder.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
meta {
name: Bundle
seq: 6
}

auth {
mode: inherit
}
164 changes: 164 additions & 0 deletions bruno/PDM/Document/Post_a_Document.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
meta {
name: Post a Document
type: http
seq: 3
}

post {
url: https://int.api.service.nhs.uk/patient-data-manager/FHIR/R4/Bundle
body: json
auth: inherit
}

headers {
X-Request-ID: ed338135-a16a-49ab-a139-9bf0b76f9b2e
}

body:json {
{
"resourceType": "Bundle",
"id": "ab3c95c5-9484-4ba5-b04e-49e148411387",
"identifier": {
"system": "http://healthintersections.com.au/test",
"value": "test_value"
},
"type": "document",
"timestamp": "2020-12-11T14:30:00+01:00",
"entry": [
{
"fullUrl": "urn:uuid:88c5f0ec-6751-43c7-83eb-c374ef43d69b",
"resource": {
"id": "88c5f0ec-6751-43c7-83eb-c374ef43d69b",
"resourceType": "Composition",
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "00",
"display": "test comp for specimen"
}
]
},
"status": "final",
"date": "2020-12-11T14:30:00+01:00",
"author": [
{
"reference": "urn:uuid:45271f7f-63ab-4946-970f-3daaaa0663ff"
}
],
"subject": {
"display": "WELSH, Joel",
"identifier": {
"system": "https://fhir.nhs.uk/Id/nhs-number",
"value": "9727710638"
}
},
"encounter": {"reference": "urn:uuid:4a98915e-7b58-4f9d-ae3e-ae4bccb6769b"},
"title": "test document"
}
},
{
"fullUrl": "urn:uuid:45271f7f-63ab-4946-970f-3daaaa0663ff",
"resource": {
"resourceType": "Practitioner",
"id": "45271f7f-63ab-4946-970f-3daaaa0663ff",
"active": true,
"name": [
{
"family": "Doe",
"given": ["John"]
}
]
}
},
{
"fullUrl": "urn:uuid:4a98915e-7b58-4f9d-ae3e-ae4bccb6769b",
"resource": {
"resourceType": "Encounter",
"id": "4a98915e-7b58-4f9d-ae3e-ae4bccb6769b",
"status": "finished",
"class": {
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code": "IMP",
"display": "inpatient encounter"
},
"type": [
{
"text": "Orthopedic Admission"
}
],
"subject": {
"identifier": {
"system": "https://fhir.nhs.uk/Id/nhs-number",
"value": "9727710638"
}
}
}
},
{
"fullUrl": "urn:uuid:64a7c79b-21e1-46b3-985d-9da9600350a8",
"resource": {
"resourceType": "Observation",
"id": "64a7c79b-21e1-46b3-985d-9da9600350a8",
"meta": {
"profile": [
"https://fhir.hl7.org.uk/StructureDefinition/UKCore-Observation-Group-Lab"
]
},
"identifier": [
{
"system": "https://tools.ietf.org/html/rfc4122",
"value": "331b7489-c241-4235-93e6-614579d7e14e"
}
],
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "laboratory",
"display": "Laboratory"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "252167001",
"display": "Urea and electrolytes"
}
]
},
"subject": {
"display": "WELSH, Joel",
"identifier":
{
"system": "https://fhir.nhs.uk/Id/nhs-number",
"value": "9727710638"
}
},
"issued": "2022-03-08T14:23:00+00:00",
"performer": [
{
"reference": "urn:uuid:45271f7f-63ab-4946-970f-3daaaa0663ff",
"display": "Something Else"
}
],
"hasMember": [
{
"reference": "urn:uuid:e6556c4a-cf31-43b2-af6f-9c8604b650f9"
}
]
}
}
]
}
}

settings {
encodeUrl: true
timeout: 0
}
Loading
Loading