/
EMR API Module

EMR API Module

This module contains higher-level Java and REST APIs for building an EMR, built on top of OpenMRS's low-level data APIs.

What this module does

Documentation / How-To

Global Property Configuration

This module can be configured with a number of global properties

  1. emrapi.EmrApiVisitAssignmentHandler.encounterTypeToNewVisitTypeMap (since 1.21) - defines the mapping between encounter types and visit types. When defined leads to the creation of a new visit whose visit type is obtained from the defined mapping. The following mappings are accepted:

    1. encounterTypeId:visitId - numeric identifiers e.g., 2:1

    2. encounterTypeUuid:visitTypeUuid - uuid identifiers e.g ca3aed11-1aa4-42a1-b85c-8332fc8001fc:7b0f5697-27e3-40c4-8bae-f4049abfb4ed (Check-in encounter type to Facility visit type)

    3. encounterTypeUuid:visitTypeId - mixing of uuids and numeric identifiers 

    4. default:visitTypeId - mapping all encounter types to a specific visit type (either numeric identifier or uuid works for the visit type)

    5. default:visitTypeId, encounterTypeId:visitTypeId - overriding the default mapping for all encounter types for a specific encounter type e.g. default:1, 2:2 will create visit type 2 for encounters with encounter type 2 and visit type 1 for all other encounters. 

  2. emrapi.EmrApiVisitAssignmentHandler.adjustEncounterTimeOfDayIfNecessary (since 1.28)

    1. Default value: false

    2. If set true, then when searching for matching visits for an encounter, the handler will consider all visits that fall on the same day at the same location a "match" (even the time does not match up).  If necessary, the encounter_datetime will be shifted to the visit_startime of the visit.  Note that if there is more than 1 matching visit (ie, multiple visits for the patient at the same day at the same location) the visit chosen would be arbitrary. 

Downloads

https://addons.openmrs.org/#/show/org.openmrs.module.emrapi

Screenshots

Release Notes

About

This module was developer by ____ for ____.

Related content

Encounter Resource
Encounter Resource
More like this
Metadata Mapping Module
Metadata Mapping Module
More like this
Release Notes 1.9.0 Alpha
Release Notes 1.9.0 Alpha
More like this
Release Notes 1.9.0 Beta
Release Notes 1.9.0 Beta
More like this
Modelling OpenMRS Encounters vs. FHIR Encounter resources
Modelling OpenMRS Encounters vs. FHIR Encounter resources
More like this
Visit Management Module
Visit Management Module
More like this