Details
-
Sub-task
-
Status: Closed
-
TBD
-
Resolution: Fixed
-
None
-
None
-
Low
Description
This work should go into the emrapi module.
Add migrations to create 'Condition' table as described here.
*condition_id (int 11) *patient_id (patient.patient_id) *status (varchar 255) *concept_id (concept.concept_id) *uuid (varchar 38) previous_condition_id (condition.condition_id) condition_noncoded (varchar 1024) onset_date (datetime) additional_detail (varchar 1024) end_date (datetime) end_reason (concept.concept_id) *creator (users.user_id) *date_created (datetime) *changed_by (users.user_id) *date_changed (datetime) voided (boolean) voided_by (users.user_id) date_voided (datetime) void_reason (varchar 255)
3. Add hibernate mappings for the above table.
4. Introduce Condition class.
5. Status should be an Enum with allowed values:
- Presumed
- Confirmed
- History Of
Since this work is targeted to become part of the core API, classes should go under org.openmrs.* and org.openmrs.api.* (for example, org.openmrs.Condition).