Wiki Spaces

Documentation
Projects
Resources

Get Help from Others

Q&A: Ask OpenMRS
Discussion: OpenMRS Talk
Real-Time: IRC Chat | Slack

Documentation

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Modified table to put headers with entries

...

For example, consider the following format of data:

Date

Patient

Sodium

Creatinine

Monday

Smith

 

1.5

Wednesday

Jones

142

0.7

...

As you can see, this patient has a number of observations ready for storage. The name, and medical record number aren't important for the obs table, but you can see a patient_id, and a location. You also see a datetime for the visit. The third and fourth bits of information will give you enough information to build an encounter within the ''
encounter table. Mosoriot has a corresponding location_id of "2". Following the demographics are four separate observations to be recorded: hemoglobin, a numeric value; weight, a numeric vital sign; date of TB treatment, a datetime; and gastrointestinal exam finding, a coded answer. If you look at this concept, hepatomegaly is one of the possible answers, and it's the corresponding concept 5008. Knowing all of this, filling in the table is pretty straightforward. Based on the data to the left, you would store 4 rows of data within the obs table with the following information...

...

obs_idpat_idtrm_idlctn_idencntr_idsub_idval_boolval_codval_dtval_numnum_modval_txtd_e_tenterercomment

1

123

21

2

345

 

 

 

 

11.5

 

 

1/15/2005

2

 

2

123

5089

2

345

 

 

 

 

45

 

 

1/15/2005

2

 

3

123

1113

2

345

 

 

 

1/1/2002

 

 

 

1/15/2005

2

 

4

123

1125

2

345

 

 

5008

 

 

 

 

1/15/2005

2