# \#data-model

**URL:** https://talk.openmrs.org/tag/data-model/441.md

[Latest](https://talk.openmrs.org/latest.md) · [Categories](https://talk.openmrs.org/categories.md) · [Tags](https://talk.openmrs.org/tags.md)

---

## [New date and time for OHDSI Africa WG meeting](https://talk.openmrs.org/t/new-date-and-time-for-ohdsi-africa-wg-meeting/35652)

<div class="topic-metadata">

**Author:** [@akanter](https://talk.openmrs.org/u/akanter)\
**Replies:** 1\
**Last updated:** [January 7, 2026, 2:06pm UTC](https://talk.openmrs.org/t/new-date-and-time-for-ohdsi-africa-wg-meeting/35652 "2026-01-07T14:06:21Z")

</div>

For people interested in academic use of EHRs to drive outcomes research in LMICs, I would recommend joining a new conversation happening within the OHDSI community. OHDSI (www.ohdsi.org ) is looking to stand up an Afric…

---

## [🧑🏽‍🔬 Help us make OpenMRS system data better for Researchers! 🧪](https://talk.openmrs.org/t/help-us-make-openmrs-system-data-better-for-researchers/45088)

<div class="topic-metadata">

**Author:** [@grace](https://talk.openmrs.org/u/grace)\
**Replies:** 7\
**Last updated:** [April 30, 2025, 5:17am UTC](https://talk.openmrs.org/t/help-us-make-openmrs-system-data-better-for-researchers/45088 "2025-04-30T05:17:05Z")

</div>

Dear Community, High-quality Global Health data for research is more important than ever. But Researchers around the world face many obstacles, especially in resource-constrained settings. So: We want to make OpenMRS-c…

---

## [Adding support for population-based reference ranges in OpenMRS](https://talk.openmrs.org/t/adding-support-for-population-based-reference-ranges-in-openmrs/39931)

<div class="topic-metadata">

**Author:** [@burke](https://talk.openmrs.org/u/burke)\
**Replies:** 6\
**Last updated:** [June 22, 2023, 8:28pm UTC](https://talk.openmrs.org/t/adding-support-for-population-based-reference-ranges-in-openmrs/39931 "2023-06-22T20:28:40Z")

</div>

OpenMRS supports simple reference ranges for numeric observations to determine if a numeric result’s value is normal, abnormal, critical, or out of range. As we know, reference ranges aren’t always that simple. Reference…

---

## [How does OpenMRS support/model "Case Paradigms"? Eg 1 patient with multiple distinct episodes of the same condition? (eg pregnancy, TB...)](https://talk.openmrs.org/t/how-does-openmrs-support-model-case-paradigms-eg-1-patient-with-multiple-distinct-episodes-of-the-same-condition-eg-pregnancy-tb/37657)

<div class="topic-metadata">

**Author:** [@grace](https://talk.openmrs.org/u/grace)\
**Replies:** 10\
**Last updated:** [December 16, 2022, 6:14pm UTC](https://talk.openmrs.org/t/how-does-openmrs-support-model-case-paradigms-eg-1-patient-with-multiple-distinct-episodes-of-the-same-condition-eg-pregnancy-tb/37657 "2022-12-16T18:14:27Z")

</div>

Hoping to hear from @burke & @dkayiwa & others on this. Pregnancy ID Scenario: You have a patient, Agnes. She has her own UUID (eg 12345ABC). Agnes is currently pregnant. That pregnancy is given an ID (eg PID (pregnan…

---

## [Competition of data sharing frameworks?](https://talk.openmrs.org/t/competition-of-data-sharing-frameworks/37558)

<div class="topic-metadata">

**Author:** [@amarcelo](https://talk.openmrs.org/u/amarcelo)\
**Replies:** 2\
**Last updated:** [September 20, 2022, 4:13pm UTC](https://talk.openmrs.org/t/competition-of-data-sharing-frameworks/37558 "2022-09-20T16:13:33Z")

</div>

Not sure if this is right thread but is there ‘competition of data sharing frameworks’? OHDSI vs CDISC vs i2b2 vs REDCap vs FHIR?

---

## [OpenMRS Architecture](https://talk.openmrs.org/t/openmrs-architecture/33671)

<div class="topic-metadata">

**Author:** [@ssmusoke](https://talk.openmrs.org/u/ssmusoke)\
**Replies:** 1\
**Last updated:** [June 7, 2021, 6:00am UTC](https://talk.openmrs.org/t/openmrs-architecture/33671 "2021-06-07T06:00:27Z")

</div>

Continuing the discussion from Open MRS highlevel architecture: @grace I am linking the Updated architecture https://docs.google.com/presentation/d/1-jdndM8J9pwQhYVncsRia\_pzCGqYYp8fZ5zHUaTbpks/edit?ts=60ba6663#slide=id.…

---

## [EncounterType has a unique key constraint on its name field?](https://talk.openmrs.org/t/encountertype-has-a-unique-key-constraint-on-its-name-field/31416)

<div class="topic-metadata">

**Author:** [@mksrom](https://talk.openmrs.org/u/mksrom)\
**Replies:** 8\
**Last updated:** [December 19, 2020, 7:35pm UTC](https://talk.openmrs.org/t/encountertype-has-a-unique-key-constraint-on-its-name-field/31416 "2020-12-19T19:35:26Z")

</div>

Hi all, Just noticed that the EncounterType has a unique key constraint on its name field. See EncounterType.hbm.xml#26 This issue with this constraint is that it prevents to create an encounter type with the same name…

---

## [Proposal: Contact Tracing in OpenMRS](https://talk.openmrs.org/t/proposal-contact-tracing-in-openmrs/27926)

<div class="topic-metadata">

**Author:** [@ibacher](https://talk.openmrs.org/u/ibacher)\
**Replies:** 25\
**Last updated:** [June 9, 2020, 12:18pm UTC](https://talk.openmrs.org/t/proposal-contact-tracing-in-openmrs/27926 "2020-06-09T12:18:12Z")

</div>

TLDR: See the bottom of the post for a proposed data model for contact tracing and contact cohorts in OpenMRS. So as part of OpenMRS’s work on a response to COVID-19, there’s been an emerging consensus that we should be…

---

## [Assigned actions for feeding user-centric dashboards and widgets](https://talk.openmrs.org/t/assigned-actions-for-feeding-user-centric-dashboards-and-widgets/26653)

<div class="topic-metadata">

**Author:** [@mksd](https://talk.openmrs.org/u/mksd)\
**Replies:** 14\
**Last updated:** [April 8, 2020, 10:34am UTC](https://talk.openmrs.org/t/assigned-actions-for-feeding-user-centric-dashboards-and-widgets/26653 "2020-04-08T10:34:13Z")

</div>

Hi all, @akanter / @burke / @ibacher / @jdick / @jteich / @mseaton, We have been working for a while on a user-centric dashboard that summarises targeted “things to do” for the current user. Those “todos” can be anythin…

---

## [Obs and Person mapping](https://talk.openmrs.org/t/obs-and-person-mapping/26578)

<div class="topic-metadata">

**Author:** [@ibacher](https://talk.openmrs.org/u/ibacher)\
**Replies:** 5\
**Last updated:** [February 3, 2020, 2:40pm UTC](https://talk.openmrs.org/t/obs-and-person-mapping/26578 "2020-02-03T14:40:14Z")

</div>

The Obs class has always relied on a Person rather than a Patient as the subject of the observation. In my mind, this seems like the wrong mapping. Surely all Obs are used to store observations related to patients, rathe…

---

## [cascade parameter never used](https://talk.openmrs.org/t/cascade-parameter-never-used/24597)

<div class="topic-metadata">

**Author:** [@farndt](https://talk.openmrs.org/u/farndt)\
**Replies:** 2\
**Last updated:** [September 7, 2019, 8:55pm UTC](https://talk.openmrs.org/t/cascade-parameter-never-used/24597 "2019-09-07T20:55:17Z")

</div>

Method purgeConceptStateConversion in class org.openmrs.api.impl.ProgramWorkflowServiceImpl takes a boolean parameter cascade which is never used. @Override public void purgeConceptStateConversion(ConceptStateConversi…

---

## [Create new table in DB](https://talk.openmrs.org/t/create-new-table-in-db/23460)

<div class="topic-metadata">

**Author:** [@nits1431](https://talk.openmrs.org/u/nits1431)\
**Replies:** 3\
**Last updated:** [June 5, 2019, 12:54pm UTC](https://talk.openmrs.org/t/create-new-table-in-db/23460 "2019-06-05T12:54:51Z")

</div>

I want to create new table and want to add one column in all tables. Can it be possible and if there is any possibility then please let me know the process. Cause when I am creating new table getting db error called my u…

---

## [Bahmni ER diagram](https://talk.openmrs.org/t/bahmni-er-diagram/21194)

<div class="topic-metadata">

**Author:** [@gstamata](https://talk.openmrs.org/u/gstamata)\
**Replies:** 3\
**Last updated:** [January 6, 2019, 11:39am UTC](https://talk.openmrs.org/t/bahmni-er-diagram/21194 "2019-01-06T11:39:49Z")

</div>

Is the Bahmni ER diagram available in literature? I didn’t manage to find it on Bahmni Wiki.

---

## [DatabaseUpgradeTest for core version 2.2](https://talk.openmrs.org/t/databaseupgradetest-for-core-version-2-2/19648)

<div class="topic-metadata">

**Author:** [@fruether](https://talk.openmrs.org/u/fruether)\
**Replies:** 7\
**Last updated:** [November 10, 2018, 12:23pm UTC](https://talk.openmrs.org/t/databaseupgradetest-for-core-version-2-2/19648 "2018-11-10T12:23:25Z")

</div>

Hi everyone, I am currently working on a ticket that should implement a DatabaseUpgradeTest for version 2.2.0. This test should validate if the changes in the data model, e. g. adding a new attribute, are really reflect…

---

## [Handling JPA annotations for BaseAttribute](https://talk.openmrs.org/t/handling-jpa-annotations-for-baseattribute/17873)

<div class="topic-metadata">

**Author:** [@owais.hussain](https://talk.openmrs.org/u/owais.hussain)\
**Replies:** 7\
**Last updated:** [June 19, 2018, 10:46am UTC](https://talk.openmrs.org/t/handling-jpa-annotations-for-baseattribute/17873 "2018-06-19T10:46:43Z")

</div>

Hi, I’m writing API for one of our modules to manage Lab data. My model contains a class LabTest, which extends BaseCustomizableData\<LabTestAttribute\> LabTestAttribute class further extends BaseAttribute\<LabTestAttribu…

---

## [OpenMRS Datamodel documentation](https://talk.openmrs.org/t/openmrs-datamodel-documentation/15295)

<div class="topic-metadata">

**Author:** [@tahira](https://talk.openmrs.org/u/tahira)\
**Replies:** 2\
**Last updated:** [January 18, 2018, 6:12am UTC](https://talk.openmrs.org/t/openmrs-datamodel-documentation/15295 "2018-01-18T06:12:39Z")

</div>

Hi everyone, I have looked in to the OpenMRS datamodel documentation here but this does not seem to be sufficient. Can any one guide me to a more detailed version as I need to understand the purpose of few fields in the…

---

## [Modifying OpenMRS database table column character count](https://talk.openmrs.org/t/modifying-openmrs-database-table-column-character-count/14384)

<div class="topic-metadata">

**Author:** [@zachraduban](https://talk.openmrs.org/u/zachraduban)\
**Replies:** 20\
**Last updated:** [December 6, 2017, 3:40am UTC](https://talk.openmrs.org/t/modifying-openmrs-database-table-column-character-count/14384 "2017-12-06T03:40:15Z")

</div>

May I change the character limit for a certain column in the OpenMRS database tables? Is it allowed? Will it work? Are there any bad effects?

---

## [Guide to querying the datamodel](https://talk.openmrs.org/t/guide-to-querying-the-datamodel/12314)

<div class="topic-metadata">

**Author:** [@jdick](https://talk.openmrs.org/u/jdick)\
**Replies:** 0\
**Last updated:** [July 10, 2017, 9:28am UTC](https://talk.openmrs.org/t/guide-to-querying-the-datamodel/12314 "2017-07-10T09:28:11Z")

</div>

Dear All, We are in the process of creating a set of SQL exercises to familiarize new team members to the OpenMRS datamodel. I am sharing the link to this google document here. You will have read only access. If yo…

---

## [How obs, encounter and concept work?](https://talk.openmrs.org/t/how-obs-encounter-and-concept-work/11071)

<div class="topic-metadata">

**Author:** [@azharaleem01](https://talk.openmrs.org/u/azharaleem01)\
**Replies:** 1\
**Last updated:** [April 14, 2017, 8:04am UTC](https://talk.openmrs.org/t/how-obs-encounter-and-concept-work/11071 "2017-04-14T08:04:33Z")

</div>

Hi All, I am very new to openms using openmrs 1.9.8 and mysql 5.6, want to store the form data into databae. Any help would be apreciated.
