Hi Faustin. I don't totally understand the question, but if you need to
say what test results correspond to what Obs, there's the property
Obs.orderId that lets you explicitly join an Obs (the test result) to the
Order.
If you mean, 'should there be different Encounters for 1) the physician
ordering the lab test 2) the sample collection and 3) the test result
becoming available', the answer is this:
In newer version of openmrs, there's a Visit object, that is a parent
object to Encounter, that allows you to group multiple Encounters into a
Visit.
However, for openmrs1.6, i would only use one Encounter, and then use an
Obs to ask all the questions that need to be added, like:
Encounter (primary care provider, date, location)
Order (the lab order) (during the primary care visit)
Obs: Specimen collection date, specimen collection time, specimen
collected by, specimen ID, etc... (during sample collection)
Obs: test result, test result date, test result time, test
performed by... (while recording the test result)
And, test results can be linked back to the Order by
Obs.setOrder(Order order)
d
On Sun, Feb 5, 2012 at 12:51 PM, Maniragena faustin <[email protected]>wrote:
> Hi All;
> I'm working on Laboratory orders and results managements.With this Lab
> module,I've to create one encounter when the clinician is ordering
> laboratory orders for a specific Patient.Another encounter of type
> Laboratory encounter type need to be created when the Laboratory
> Technician is adding the results to ordered tests by the clinician and this
> is where I'm facing the challenge of creating one encounter that has those
> results as observations.If the ordered tests are ordered on the same date
> must be have one Lab encounter.So,to make you understand this
> questions,below is an example of Patient DAIHATSU and Clinician TOYOTA
> till the exams results are available:
>
> - The clinician/physician(*TOYOTA*) orders laboratory order for *
> DAIHATSU* patient and save them into the system :The first Encounter
> between the patient and clinician is created.
> - After being consulted,the DAIHATSU leaves for Laboratory to give
> specimen.
> - When DAIHATSU arrives in Laboratory ,the Lab technician A loads the
> ordered lab exams from the system and collects the specimen based on the
> laboratory orders assigned to that Patient.
> - When the results are available,the Lab technician click on
> incomplete status and add add results relevant to the ordered exams(below
> are listed exams and their status)
>
> *Number*
>
> *OrderId*
>
> *Test Name*
>
> *Ordered on*
>
> *Status*
>
> 1
>
> 4560
>
> hemoglobin
>
> 02/02/2012
>
> *incomplete*
>
> 2
>
> 4561
>
> CD4
>
> 02/02/2012
>
> *incomplete*
>
> 3
>
> 4562
>
> Malaria Smear
>
> 02/02/2012
>
> *incomplete*
>
> 4
>
> 4562
>
> Stool exam
>
> 02/02/2012
>
> *incomplete*
> The table above is given by the following code; for (Order order :
> labOrders){
> String orderStrDate=df.format(order.getStartDate());
>
> if (orderStrDate.equals(labEncounterDateStr)) {
> if (order.getAutoExpireDate()==null) {
> incompleteLabOrders.add(order);
>
> }
> }
> }
>
> Is there any way to create one encounter for all those exams when we want
> to add the results as observations?
> I'm waiting to hear from you.
>
> Thanks
> --
> *MANIRAGENA Faustin
> MOH/EMR DEVELOPER
> Phone:0788670135*
>
> ------------------------------
> Click here to
> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from
> OpenMRS Developers' mailing list
>
_________________________________________
To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to
[email protected] with "SIGNOFF openmrs-devel-l" in the body (not
the subject) of your e-mail.
[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]