Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

List of content:

...

  • The current version of mapping will be focused on aspects of claiming.
  • In the current version of the openimis-be-location_py missing services layer which can be used to perform operations (CRUD - Create, Read, Update, Delete) on entities. That's why the current version of API use directly database layer manager for managing the HealthFacility objects. This leads to differences between operation between legacy and new OpenIMIS, for instance, the update operation doesn't create the database row with a history of the object and the delete operation permanently remove the object from the database.
  • legalForm - missing in the current version of the HealthFacility model (from the openimis-be-location_py module). That's why the current version of API doesn't cover that field. Attribute needs to be nullable type in the Database Schema.
  • locationid - missing in the current version of the HealthFacility model (from the openimis-be-location_py module). That's why the current version of API doesn't cover that field. Attribute needs to be nullable type in the Database Schema.

FHIR resource:

Location

Fields mapping:

Table legend:

...

Configuration keyDescriptionDefault value
default_audit_user_iddefault value which will be used for 'audit_user_id' field"default_audit_user_id": 1,
iso_date_formatiso format used for FHIR date representation "iso_date_format": "%Y-%m-%d", 
iso_datetime_formatiso format used for FHIR datetime representation"iso_datetime_format": "%Y-%m-%dT%H:%M:%S",
stu3_fhir_identifier_type_configconfiguration 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_typeconfiguration 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_attributedefault value for 'offline' attribute used for creating new HF object"default_value_of_location_offline_attribute": False, 
default_value_of_location_care_typedefault value for 'care_type' attribute used for creating new HF object"default_value_of_location_care_type": "B"

...