Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-2131

Add 'Visit Attribute' to data model

    XMLWordPrintable

Details

    • Medium

    Description

      (Epic Story: work should be done on sub-tickets.)

      As visits are added to the data model (TRUNK-48), we know that there are going to be many different needs for visit details across implementations. For example, HL7 has evolved to having two visit segments (PV1 and PV2) with over 100 visit attributes. These could include account or billing information, patient disposition, length of stay, etc.

      Rather than trying to anticipate and hardcode every possible need into the data model, we would like to add "visit attributes" to the model just as we have done with person attributes.

      Approximate design:

      visit_attribute_type
        visit_attribute_type_id
        name
        description
        handler
      
      visit_attribute
        visit_attribute_id
        visit_id
        visit_attribute_type_id
        value
      

      The VisitAttributeTypeHandler could perform functions such as:

      • Optionally provide choices
      • Provide input constraints - e.g., allowable pattern(s)
      • Validation - e.g., for the value itself and/or allowing or preventing repeats or duplicates

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                darius Darius Jazayeri
                burke Burke Mamlin
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: