FHIR - PractitionerRole

FHIR Resource - PractitionerRole

OpenIMIS table - tblClaimAdmin

FHIR field

OpenIMIS field

notes

mapping status

FHIR field

OpenIMIS field

notes

mapping status

practitioner - Reference(Practitioner)

Rest field of Claim Admin

example of reference (where "{ClaimAdminCode}" is the Claim Admin code):

"Practitioner/{ClaimAdminCode}"

mapped

location - Reference(Location)

HFId

example of reference (where "{HFCode}" is the health facility code):

"Location/{HFCode}"

mapped

 

Endpoint specification:

Example of endpoint URL:

http://127.0.0.1:8000/api_fhir/PractitionerRole/

  • CREATE - used to create a relation between OpenIMIS ClaimAdmin and HealthFacility. The request should contain a reference to FHIR Location (HealthFacility) and FHIR Practitioner (ClaimAdmin). Should be used the POST HTTP method and the body as JSON representation (example can be found below).

    Note:

    • The ClaimAdmin (FHIR Practitioner) need to exist before we will able to create relationships with HealtFacility (FHIR Location)

  • READ - by default return list of all available resources (based on ClaimAdmin resource so return representation for each ClaimAdmin). To fetch information about a specific object you should add the primary key to URL for instance:
    http://127.0.0.1:8000/api_fhir/PractitionerRole/1
    , where "1" is the value of the primary key. Should be used the GET HTTP method.

  • UPDATE - update the value of the specific object. List of supported fields can be found in the table which shows the mapping between OpenIMIS and FHIR. Should be used the PUT HTTP method and the body as JSON representation (example can be found below). The requested URL needs to point to a specific object to do that you should add the primary key to URL for instance:
    http://127.0.0.1:8000/api_fhir/PractitionerRole/1
    , where "1" is the value of the primary key.
    Note:

    • the UPDATE operation will update the specific row of the database and doesn't create the history of changes (like in the legacy OpenIMIS)

  • DELETE - the operation can be used to remove the relation between OpenIMIS ClaimAdmin and HealthFacility (ClaimAdmin will have null as value of health_facility model attribute). Should be used the DELETE HTTP method. The requested URL needs to point to a specific object to do that you should add the primary key to URL for instance:
    http://127.0.0.1:8000/api_fhir/Practitioner/1
    , where "1" is the value of the primary key.
    Note:
    - the DELETE operation will the relation between OpenIMIS ClaimAdmin and HealthFacility from the database. ClaimAdmin will have null as value of health_facility model attribute

Example JSON representation of content:

 

{ "resourceType": "PractitionerRole", "identifier": [ { "type": { "coding": [ { "code": "ACSN", "system": "https://hl7.org/fhir/valueset-identifier-type.html" } ] }, "use": "usual", "value": "6" } ], "location": [ { "reference": "Location/hfcode" } ], "practitioner": { "reference": "Practitioner/code" } }

 

Did you encounter a problem or do you have a suggestion?

Please contact our Service Desk



This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. https://creativecommons.org/licenses/by-sa/4.0/