Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note

This page is outdated and no longer receives updates!

As of version OpenMRS v1.5 most objects/tables have a UUID property. This property is automatically filled in for every row and is 99.9% guaranteed to be unique across the universe. The primary reason for uuids is to support the Sync Module and allow for identifying objects that are identical across different OpenMRS installations.

...

The UUID is used as a normal property of every object instead of a primary key for several reasons:

  1. Using long string uuids reduces performance. Its much faster to use smaller integers for PKs

  2. The uuid is a long ugly 36 character string that would not look good in urls

Initial Column Values

When upgrading a current installation of openmrs, all rows will get a uuid generated for them. If you are using mysql, then openmrs uses the uuid() method during the update to do something like:

...

There are some UUIDs shared across all OpenMRS implementations for metadata that are common across all implementations.

Concept Datatype UUIDs

Name

UUID

Numeric

8d4a4488-c2cc-11de-8d13-0010c6dffd0f

Coded

8d4a48b6-c2cc-11de-8d13-0010c6dffd0f

Text

8d4a4ab4-c2cc-11de-8d13-0010c6dffd0f

N/A

8d4a4c94-c2cc-11de-8d13-0010c6dffd0f

Document

8d4a4e74-c2cc-11de-8d13-0010c6dffd0f

Date

8d4a505e-c2cc-11de-8d13-0010c6dffd0f

Time

8d4a591e-c2cc-11de-8d13-0010c6dffd0f

Datetime

8d4a5af4-c2cc-11de-8d13-0010c6dffd0f

Boolean

8d4a5cca-c2cc-11de-8d13-0010c6dffd0f

Rule

8d4a5e96-c2cc-11de-8d13-0010c6dffd0f

Structured Numeric

8d4a606c-c2cc-11de-8d13-0010c6dffd0f

Complex

8d4a6242-c2cc-11de-8d13-0010c6dffd0f

Role UUIDs

Role

UUID

Anonyous

774b2af3-6437-4e5a-a310-547554c7c65c

Authenticated

f7fd42ef-880e-40c5-972d-e4ae7c990de2

Provider

8d94f280-c2cc-11de-8d13-0010c6dffd0f

System Developer

8d94f852-c2cc-11de-8d13-0010c6dffd0f

HL7 Source UUIDs

Name

UUID

LOCAL

8d6b8bb6-c2cc-11de-8d13-0010c6dffd0f

Location UUIDs

Name

UUID

Unknown Location

8d6c993e-c2cc-11de-8d13-0010c6dffd0f

Patient Identifier UUIDs

Name

UUID

OpenMRS Identifier

8d793bee-c2cc-11de-8d13-0010c6dffd0f

Old Identification Number

8d79403a-c2cc-11de-8d13-0010c6dffd0f

Concept Class Identifier UUIDs

Name

UUID

Test

8d4907b2-c2cc-11de-8d13-0010c6dffd0f

Procedure

8d490bf4-c2cc-11de-8d13-0010c6dffd0f

Drug

8d490dfc-c2cc-11de-8d13-0010c6dffd0f

Diagnosis

8d4918b0-c2cc-11de-8d13-0010c6dffd0f

Finding

8d491a9a-c2cc-11de-8d13-0010c6dffd0f

Anatomy

8d491c7a-c2cc-11de-8d13-0010c6dffd0f

Question

8d491e50-c2cc-11de-8d13-0010c6dffd0f

LabSet

8d492026-c2cc-11de-8d13-0010c6dffd0f

MedSet

8d4923b4-c2cc-11de-8d13-0010c6dffd0f

ConvSet

8d492594-c2cc-11de-8d13-0010c6dffd0f

Misc

8d492774-c2cc-11de-8d13-0010c6dffd0f

Symptom

8d492954-c2cc-11de-8d13-0010c6dffd0f

Symptom/Finding

8d492b2a-c2cc-11de-8d13-0010c6dffd0f

Specimen

8d492d0a-c2cc-11de-8d13-0010c6dffd0f

Misc Order

8d492ee0-c2cc-11de-8d13-0010c6dffd0f

Relationship Type UUIDs

A is to B

B is to A

UUID

Doctor

Patient

8d919b58-c2cc-11de-8d13-0010c6dffd0f

Sibling

Sibling

8d91a01c-c2cc-11de-8d13-0010c6dffd0f

Parent

Child

8d91a210-c2cc-11de-8d13-0010c6dffd0f

Aunt/Uncle

Niece/Nephew

8d91a3dc-c2cc-11de-8d13-0010c6dffd0f

Encounter Types UUIDs

Name

UUID

ADULTINITIAL

8d5b27bc-c2cc-11de-8d13-0010c6dffd0f

ADULTRETURN

8d5b2be0-c2cc-11de-8d13-0010c6dffd0f

PEDSINITIAL

8d5b2dde-c2cc-11de-8d13-0010c6dffd0f

PEDSRETURN

8d5b3108-c2cc-11de-8d13-0010c6dffd0f

Person Attribute Types UUIDs

Name

UUID

Birthplace

8d8718c2-c2cc-11de-8d13-0010c6dffd0f

Citizenship

8d871afc-c2cc-11de-8d13-0010c6dffd0f

Civil Status

8d871f2a-c2cc-11de-8d13-0010c6dffd0f

Health Center

8d87236c-c2cc-11de-8d13-0010c6dffd0f

Health District

8d872150-c2cc-11de-8d13-0010c6dffd0f

Mother's Name

8d871d18-c2cc-11de-8d13-0010c6dffd0f

Race

8d871386-c2cc-11de-8d13-0010c6dffd0f

Field Types UUIDs

Name

UUID

Concept

8d5e7d7c-c2cc-11de-8d13-0010c6dffd0f

Database element

8d5e8196-c2cc-11de-8d13-0010c6dffd0f

Set of Concepts

8d5e836c-c2cc-11de-8d13-0010c6dffd0f

Miscellaneous Set

8d5e852e-c2cc-11de-8d13-0010c6dffd0f

Section

8d5e86fa-c2cc-11de-8d13-0010c6dffd0f

Tables without UUIDs

There are many tables without the uuid property because they are either helper tables, mapping tables, or just used for business logic by other libraries used within openmrs.

  • cohort_member

  • concept_complex (extends concept table and shares uuids with that)

  • concept_derived

  • concept_name_tag_map (1 to many mapping from tags to names)

  • liquibasechangelog (externally used by liquibase library)

  • liquibasechangeloglock (created by liquibase library)

  • location_tag_map

  • notification_alert_recipient

  • role_privilege

  • role_role

  • scheduler_task_config_property

  • patient (extends person table and shares uuids with that...might change for 1.6)

  • user (extends person table and shares uuids with that...might change for 1.6)

  • user_role

See Also