FHIR Resource - Location

OpenIMIS tables - tblHF, tblLocations

FHIR field

OpenIMIS field

notes

mapping status

Identifier

tblHF.HfId / tblHF.HFCode / tblLocations.LocationId / tblLocations.LocationCode

FHIR location.mode field is used to switch between mapping from tblHF and tblLocations fields
HfId / LocationId is used as DB Primary Key, while mapping is being done to HFCode / LocationCode by

HfId and HFCode mapped

name

tblHF.HFName / tblLocatons.LocationName

FHIR location.mode field is used to switch between mapping from tblHF and tblLocations fields

HFName mapped

type

tblHF.HFLevel / tblLocations.LocationType

FHIR location.mode field is used to switch between mapping from tblHF and tblLocations fields

HFLevel mapped

Address

tblHF.HFAddress

mapped

partOfReference

tblHF.LocationId / tblLocations.ParentLocationId

FHIR location.mode field is used to switch between mapping from tblHF and tblLocations fields

not mapped

telecom

tblHF.Phone / tblHF.Fax / tblHF.eMail

telecom field contains values that are being mapped for Phone, Fax and Email fields

mapped

Endpoint specification:

Example of endpoint URL:

http://127.0.0.1:8000/api_fhir/Location/

Supported HTTP operation:

Module configuration used by the endpoint:

Configuration key

Description

Default value

default_audit_user_id

default value which will be used for 'audit_user_id' field

"default_audit_user_id": 1,

stu3_fhir_identifier_type_config

configuration of system and codes used to represent the specific types of identifiers

"stu3_fhir_identifier_type_config":{
"system":"https://hl7.org/fhir/valueset-identifier-type.html",
"fhir_code_for_imis_db_id_type":"ACSN",
"fhir_code_for_imis_chfid_type":"SB",
"fhir_code_for_imis_passport_type":"PPN",
"fhir_code_for_imis_facility_id_type":"FI",
"fhir_code_for_imis_claim_admin_code_type":"FILL",
"fhir_code_for_imis_claim_code_type":"MR",

},

stu3_fhir_location_role_type

configuration of system and codes used to represent the specific types of location role

"stu3_fhir_location_role_type":{
"system":"https://www.hl7.org/fhir/STU3/v3/ServiceDeliveryLocationRoleType/vs.html",
"fhir_code_for_hospital":"HOSP",
"fhir_code_for_dispensary":"CSC",
"fhir_code_for_health_center":"PC",

},

default_value_of_location_offline_attribute

default value for 'offline' attribute used for creating new HF object

"default_value_of_location_offline_attribute": False,

default_value_of_location_care_type

default value for 'care_type' attribute used for creating new HF object

"default_value_of_location_care_type": "B"

Example JSON representation of content:

{  
   "resourceType":"Location",
   "address":{  
      "text":"HfAddress",
      "type":"physical",
      "use":"home"
   },
   "identifier":[  
      {  
         "type":{  
            "coding":[  
               {  
                  "code":"ACSN",
                  "system":"https://hl7.org/fhir/valueset-identifier-type.html"
               }
            ]
         },
         "use":"usual",
         "value":"11"
      },
      {  
         "type":{  
            "coding":[  
               {  
                  "code":"FI",
                  "system":"https://hl7.org/fhir/valueset-identifier-type.html"
               }
            ]
         },
         "use":"usual",
         "value":"hfcode"
      }
   ],
   "name":"hfName",
   "telecom":[  
      {  
         "system":"phone",
         "use":"home",
         "value":"hfPhone"
      },
      {  
         "system":"fax",
         "use":"home",
         "value":"hfFax"
      },
      {  
         "system":"email",
         "use":"home",
         "value":"hfMail"
      }
   ],
   "type":{  
      "coding":[  
         {  
            "code":"PC",
            "system":"https://www.hl7.org/fhir/STU3/v3/ServiceDeliveryLocationRoleType/vs.html"
         }
      ]
   }
}