We hope you'll join us for our 4/23 webinar on using data tables to apply reference ranges and AE codes in OC4. For more information and to register, visit https://register.gotowebinar.com/register/2882170018956684555

Import Rule Error: Invalid content was found starting with element 'Run'

drakosdrakos Posts: 16

Hello Everybody.

I'm trying to create a rule that will insert a value in "CRF B" when a field in "CRF A" has a specific value range. Both CRFs are in the same event. OC version is 3.5.

When I create the rule using the Designer, fields have relative OIDs (e.g. I_DIAGN_DIAG04 instead of SE_PREMIREVISITE.F_DIAGNOSTIC.IG_DIAGN_UNGROUPED.I_DIAGN_DIAG04) and the insertion is not happening.

I tried to download the rule (xml), edit the field OIDs and then import the rule back to OC.

Unfortunately, during the import process I'm always getting this error message, even if I only edit the rule's OID:

Your XML is not well formed, and does not comply with the Rules schema. Check it and try again. It returned the message: Line : -1 - cvc-complex-type.2.4.a: Invalid content was found starting with element 'Run'. One of '{DestinationProperty}' is expected.

Here is the rule:

<RuleImport>
    <RuleAssignment>
        <Target>I_POLYA_RADIAG13_7896</Target>
        <RuleRef OID="RLTEST21">
            <InsertAction IfExpressionEvaluates="true">
                <DestinationProperty OID="I_DIAGN_DIAG04" Value="2">
                    <ValueExpression/>
                </DestinationProperty>
                <Run AdministrativeDataEntry="true"
                    InitialDataEntry="true" DoubleDataEntry="true"
                    ImportDataEntry="false" Batch="false"/>
            </InsertAction>
        </RuleRef>
    </RuleAssignment>
    <RuleDef OID="RLTEST21" Name="RLTEST21">
        <Description>RLTEST21</Description>
        <Expression>I_POLYA_RADIAG13_7896 gte 6</Expression>
    </RuleDef>
</RuleImport>


Thank you,
Iannis

Best Answers

Answers

  • drakosdrakos Posts: 16

    Thank you Thasbiha, your replies worked like a charm.

    Kind regard, Iannis

This discussion has been closed.