Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Visit is selected by the visitUuid sent in the EncounterTransaction. Within the visit, the encounter is filtered based on the following logic for regular encounters, retrospective encounter, on behalf of encounters and encounter edits. , in that order

Regular Consultation & Retrospective Consultation

  1. by encounterUuid if sent by the client.
  2. by encounterType
  3. by sessionTime (for retrospective entry, the client should send the date as 12:00)
  4. by provider if provider or on behalf of provider
  5. by user if not a provider

Visit Document

  1. by encounterType
  2. by provider

Encounter Type Matching

Regular Consultation Encounter & Retrospective Consultation Encounter

Encounter type to be used for finding an encounter or creating a new encounter is based on either of the following logic in the given order,

  1. by programUuid - mapping present in entity_mapping table with entity_mapping_type as 'program_encountertype'
  2. by location uuid - mapping present in entity_mapping table with entity_mapping_type as 'location_encountertype'
  3. by default encounter type provided in global property ( bahmni.encounterType.default).

 

For other encounters, following encounter types are picked irrespective of location:

  1. Registration Encounter - 'REG'
  2. Radiology Upload Encounter - 'RADIOLOGY'
  3. Patient Document Encounter - 'Patient Document'
  4. Admission Encounter - 'ADMISSION'
  5. Discharge Encounter - 'DISCHARGE'
  6. Transfer Encounter - 'TRANSFER'
  • No labels