Skip to main content
Guide
DG-3052
Status
Active
Version
1.0
Created
Updated

Quick intro

We have already created the Organization resource as part of the participation configuration process and now we need to create Locations for the Organisation.

RESTful create interaction

This operation is a RESTful create interaction (type level Interaction) as described in https://www.hl7.org/fhir/http.html#create of a PCA™ Location FHIR resource, as profiled for Australia. It is described here: https://pca.digitalhealth.gov.au/fhir/4.0/currentdraft/StructureDefinition-pca-location.html

POST /PcaFhirApi/v2/publisher/org-1894d5d551f94df2aa715043ef5fef1b/fhir/Location HTTP/1.1
Content-Type: application/fhir+json; charset=utf-8
Accept: application/fhir+json; charset=utf-8
Authorization: Bearer 14.1648638930.e0557e243cb243889c21788aa2cea0ff
User-Agent: PostmanRuntime/7.29.0
Cache-Control: no-cache
Postman-Token: ad95d44e-98f5-4644-9363-79cf2128961e
Host: bne-drp-trp.digitalhealth.gov.au
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 1254
  
{
"resourceType" : "Location",
"extension" : [
{
"url" : "http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-amenity",
"valueCodeableConcept" : {
"coding" : [
{
"system" : "http://pca.digitalhealth.gov.au/fhir/4.0/CodeSystem/pca-amenity",
"code" : "wheelchairAccess",
"display" : "Wheelchair Access"
}
]
}
}
],
"status" : "active",
"name" : "The Medical Centre",
"telecom": [
{
"system": "phone",
"value": "0281973388",
"use": "work"
},
{
"system": "fax",
"value": "0281973388",
"use": "work"
},
{
"system": "email",
"value": "[email protected]",
"use": "work"
},
{
"system": "url",
"value": "https://myhealth.net.au/sydney-cbd/",
"use": "work"
}
],
"address" : {
"use": "work",
"line": [
"Shop 5",
"123-127 Golf Parade"
],
"city": "RYE",
"state": "VIC",
"postalCode": "3941",
"country": "AU"
},
"managingOrganization" : {
"reference" : "Organization/org-1894d5d551f94df2aa715043ef5fef1b"
}
}
  
HTTP/1.1 200 OK
Content-Type: application/fhir+json; charset=utf-8
Last-Modified: Wed, 30 Mar 2022 11:13:42 GMT
ETag: W/"1"
Location: Location/loc-1b95bed3f1644592aec25042fd25a392/_history/1
X-Frame-Options: DENY
Date: Wed, 30 Mar 2022 11:13:43 GMT
Content-Length: 1061
  
{"resourceType":"Location","id":"loc-1b95bed3f1644592aec25042fd25a392","meta":{"versionId":"1","lastUpdated":"2022-03-30T21:13:42.2372464+10:00"},"extension":[{"url":"http://pca.digitalhealth.gov.au/fhir/4.0/StructureDefinition/pca-amenity","valueCodeableConcept":{"coding":[{"system":"http://pca.digitalhealth.gov.au/fhir/4.0/CodeSystem/pca-amenity","code":"wheelchairAccess","display":"Wheelchair Access"}]}}],"identifier":[{"system":"http://pca.digitalhealth.gov.au/id/pca-location","value":"loc-1b95bed3f1644592aec25042fd25a392"}],"status":"active","name":"The Medical Centre","telecom":[{"system":"phone","value":"0281973388","use":"work"},{"system":"fax","value":"0281973388","use":"work"},{"system":"email","value":"[email protected]","use":"work"},{"system":"url","value":"https://myhealth.net.au/sydney-cbd/","use":"work"}],"address":{"use":"work","type":"physical","line":["Shop 5","123-127 Golf Parade"],"city":"RYE","state":"VIC","postalCode":"3941","country":"AU"},"managingOrganization":{"reference":"Organization/org-1894d5d551f94df2aa715043ef5fef1b"}}

The newly assigned logical id for the location should be saved by the publishing system as they can be used as references for future operations (e.g. creating healthcare services)

 Home | Back: Publisher operationsNext: Create healthcare service

Trade marks of the Australian Digital Health Agency: 
Provider Connect Australia™, Helping healthcare providers stay connected™

PCA logo
PCA logo

On this page