You need to have one Concept (which is a Set) that will represent the
entire row. Call it "Diagnosis or Symptom Construct".
The Diagnosis or Symptom Construct set should contain one concept
representing each column:
- Diagnosis or Symptom (datatype=Coded)
- Diagnosis or Symptom Start Date (datatype=Date)
- Diagnosis or Symptom Outcome (datatype=Coded)
- ...
Then in the html form you do something like:
<table>
<repeat>
<template>
<obsgroup groupingConceptId="id of Diagnosis or Symptom Construct">
<tr>
<td>{i}</td>
<td><obs conceptId="id of Diagnosis or Symptom"
answerClasses="Diagnosis" style="autocomplete"></td>
...
</tr>
</obsgroup>
</template>
<render i="1"/>
...
<render i="5"/>
</repeat>
<table>
-Darius
On Tue, Nov 22, 2011 at 11:44 PM, Dave Thomas <[email protected]> wrote:
> Hi. This is a case in which you want to use the obsGroup tag. This
> explicitly groups each row in the obs table.
>
> d
>
>
> On Wed, Nov 23, 2011 at 9:39 AM, mohamed Duali <[email protected]> wrote:
>
>> Dear All:
>>
>> I am designing a HTML form in which the clinician has the possiblity
>> to enter information on several diagnosis present at the encounter
>> timepoint. On the paper form, this has been designed as a table with
>> five rows, each row representing one diagnosis. Information on start
>> date, end date, etc of the disease in question is then entered in
>> columns of the corresponding row. Information on a maximum of 5
>> diseases can then be entered. A screenshot of this table is attached.
>> How does one best design such a table in HTML forms ? Do I create 5
>> concepts for each column ("Diagnosis 1, Diagnosis 2, Diagnosis 3, …;
>> Start Date 1, Start Date 2,…; End Date 1,…) or is there a better way ?
>>
>> Best regards,
>>
>> Mohamed
>>
>> _________________________________________
>>
>> To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to
>> [email protected] with "SIGNOFF openmrs-implement-l" in the
>> body (not the subject) of your e-mail.
>>
>> [mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l]
>>
>
> ------------------------------
> Click here to
> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-implement-l>from
> OpenMRS Implementers' mailing list
_________________________________________
To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to
[email protected] with "SIGNOFF openmrs-implement-l" in the body
(not the subject) of your e-mail.
[mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l]