Search in sources :

Example 6 with TestScript

use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeTestScriptTestScriptRuleComponent.

protected void composeTestScriptTestScriptRuleComponent(Complex parent, String parentType, String name, TestScript.TestScriptRuleComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "rule", name, element, index);
    if (element.hasResource())
        composeReference(t, "TestScript", "resource", element.getResource(), -1);
    for (int i = 0; i < element.getParam().size(); i++) composeTestScriptRuleParamComponent(t, "TestScript", "param", element.getParam().get(i), i);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Example 7 with TestScript

use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeTestScriptTestActionComponent.

protected void composeTestScriptTestActionComponent(Complex parent, String parentType, String name, TestScript.TestActionComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "action", name, element, index);
    if (element.hasOperation())
        composeTestScriptSetupActionOperationComponent(t, "TestScript", "operation", element.getOperation(), -1);
    if (element.hasAssert())
        composeTestScriptSetupActionAssertComponent(t, "TestScript", "assert", element.getAssert(), -1);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Example 8 with TestScript

use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeTestScriptRuleParamComponent.

protected void composeTestScriptRuleParamComponent(Complex parent, String parentType, String name, TestScript.RuleParamComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "param", name, element, index);
    if (element.hasNameElement())
        composeString(t, "TestScript", "name", element.getNameElement(), -1);
    if (element.hasValueElement())
        composeString(t, "TestScript", "value", element.getValueElement(), -1);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Example 9 with TestScript

use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeTestScriptActionAssertRulesetRuleComponent.

protected void composeTestScriptActionAssertRulesetRuleComponent(Complex parent, String parentType, String name, TestScript.ActionAssertRulesetRuleComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "rule", name, element, index);
    if (element.hasRuleIdElement())
        composeId(t, "TestScript", "ruleId", element.getRuleIdElement(), -1);
    for (int i = 0; i < element.getParam().size(); i++) composeTestScriptActionAssertRulesetRuleParamComponent(t, "TestScript", "param", element.getParam().get(i), i);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Example 10 with TestScript

use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeTestScriptRulesetRuleParamComponent.

protected void composeTestScriptRulesetRuleParamComponent(Complex parent, String parentType, String name, TestScript.RulesetRuleParamComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "param", name, element, index);
    if (element.hasNameElement())
        composeString(t, "TestScript", "name", element.getNameElement(), -1);
    if (element.hasValueElement())
        composeString(t, "TestScript", "value", element.getValueElement(), -1);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Aggregations

Complex (org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)28 Complex (org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)28 Complex (org.hl7.fhir.r4.utils.formats.Turtle.Complex)18 Turtle (org.hl7.fhir.dstu3.utils.formats.Turtle)2 Test (org.junit.jupiter.api.Test)2 ArrayList (java.util.ArrayList)1 XmlParser (org.hl7.fhir.dstu3.formats.XmlParser)1 TestScriptTestComponent (org.hl7.fhir.dstu3.model.TestScript.TestScriptTestComponent)1 Arguments (org.junit.jupiter.params.provider.Arguments)1