Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5015 Core data model should support Encounter Diagnoses
  3. TRUNK-5339

Introduce a new Diagnosis domain object, backed by a new `encounter_diagnosis` table

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • Core 2.2.0
    • None
    • None
    • Low
    • Encounter Diagnosis Sprint 4, Encounter Diagnosis Sprint 5, Encounter Diagnosis Sprint 6

    Description

      Introduce a new Diagnosis domain object, backed by a new `encounter_diagnosis` table. Each encounter may have 0..n diagnoses.

      class Diagnosis extends BaseOpenmrsData {
        Encounter encounter; // required
        CodedOrFreeText diagnosis; // required
        ConditionVerificationStatus certainty; // required
        Integer rank; // required. must be a positive integer, and it's okay for two diagnoses in an encounter to have the same rank. (As compared to previous EMRAPI implementation, 1=PRIMARY, 2=SECONDARY)
        Condition condition; // optional. May refer to a new condition to be created as a result of this diagnosis, or an existing condition that this encounter is following up.
      }
      
      class Encounter {
          // ...
         Set<Diagnosis> diagnoses 
      }

      Gliffy Diagrams

        Attachments

          Activity

            People

              esir Ngaruiya Isaiah
              dante Arthur Thungu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: