mapkon / oc-conversion-tools

openxdata openclinica form conversion tools
code.openxdata.org
Other
8 stars 4 forks source link

ItemGroupHeaders, SubHeaders should be added to the returned meta data #101

Closed mapkon closed 12 years ago

mapkon commented 12 years ago

ItemGroupHeaders and SubHeaders should be added to the returned meta data. The concatenation in the web service should be discarded.

tomhickerson commented 12 years ago

Hi Mark,

Header and SubHeaders exist in the returned metadata, but are only evident in the tags if they are not null. Please re-open this ticket if that does not meet your needs.

For example:

<ItemDef OID="I_MEAM_MEA_MI_HGT" Name="MEA_MI_HGT" DataType="float" Length="25" SignificantDigits="6" SASFieldName="MEA_MI_H" Comment="Height" OpenClinica:FormOIDs="F_MEAM2">
<Question OpenClinica:QuestionNumber="Q11
">
<TranslatedText>
Height
</TranslatedText>
</Question>
<MeasurementUnitRef MeasurementUnitOID="MU_CM_607347"/>
<OpenClinica:ItemDetails ItemOID="I_MEAM_MEA_MI_HGT">
<OpenClinica:ItemPresentInForm FormOID="F_MEAM_2" ColumnNumber="1" PHI="No" ShowItem="Yes">
<OpenClinica:LeftItemText>Height</OpenClinica:LeftItemText>
<OpenClinica:ItemHeader>Medical information</OpenClinica:ItemHeader>
<OpenClinica:SectionLabel>MEA</OpenClinica:SectionLabel>
<OpenClinica:SectionTitle>MEA</OpenClinica:SectionTitle>
<OpenClinica:ItemResponse ResponseType="text"/>
</OpenClinica:ItemPresentInForm>
</OpenClinica:ItemDetails>
</ItemDef>

And another example:

<ItemDef OID="I_CILC_CIL_POL0G" Name="CIL_Pol0G" DataType="integer" Length="1" SASFieldName="CIL_Pol0" Comment="Polio 0 given" OpenClinica:FormOIDs="F_CILC1">
<Question OpenClinica:QuestionNumber="Q2a
">
<TranslatedText>
Polio 0 given
</TranslatedText>
</Question>
<CodeListRef CodeListOID="CL_46"/>
<OpenClinica:ItemDetails ItemOID="I_CILC_CIL_POL0G">
<OpenClinica:ItemPresentInForm FormOID="F_CILC_1" ColumnNumber="1" PHI="No" ShowItem="Yes">
<OpenClinica:LeftItemText>Polio 0 given</OpenClinica:LeftItemText>
<OpenClinica:ItemHeader>Polio</OpenClinica:ItemHeader>
<OpenClinica:ItemSubHeader>Polio 0</OpenClinica:ItemSubHeader>
<OpenClinica:SectionLabel>CIL</OpenClinica:SectionLabel>
<OpenClinica:SectionTitle>CIL</OpenClinica:SectionTitle>
<OpenClinica:ItemResponse ResponseType="single-select"/>
</OpenClinica:ItemPresentInForm>
</OpenClinica:ItemDetails>
</ItemDef>