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

    • Type: Sub-task
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Core 2.2.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low
    • Sprint:
      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 
      }

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: