use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeTestScriptTestScriptRuleParamComponent.
protected void composeTestScriptTestScriptRuleParamComponent(Complex parent, String parentType, String name, TestScript.TestScriptRuleParamComponent 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);
}
use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeTestScriptSetupActionComponent.
protected void composeTestScriptSetupActionComponent(Complex parent, String parentType, String name, TestScript.SetupActionComponent 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);
}
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++) composeTestScriptTestScriptRuleParamComponent(t, "TestScript", "param", element.getParam().get(i), i);
}
use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeTestScriptSetupActionOperationComponent.
protected void composeTestScriptSetupActionOperationComponent(Complex parent, String parentType, String name, TestScript.SetupActionOperationComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "operation", name, element, index);
if (element.hasType())
composeCoding(t, "TestScript", "type", element.getType(), -1);
if (element.hasResourceElement())
composeCode(t, "TestScript", "resource", element.getResourceElement(), -1);
if (element.hasLabelElement())
composeString(t, "TestScript", "label", element.getLabelElement(), -1);
if (element.hasDescriptionElement())
composeString(t, "TestScript", "description", element.getDescriptionElement(), -1);
if (element.hasAcceptElement())
composeEnum(t, "TestScript", "accept", element.getAcceptElement(), -1);
if (element.hasContentTypeElement())
composeEnum(t, "TestScript", "contentType", element.getContentTypeElement(), -1);
if (element.hasDestinationElement())
composeInteger(t, "TestScript", "destination", element.getDestinationElement(), -1);
if (element.hasEncodeRequestUrlElement())
composeBoolean(t, "TestScript", "encodeRequestUrl", element.getEncodeRequestUrlElement(), -1);
if (element.hasOriginElement())
composeInteger(t, "TestScript", "origin", element.getOriginElement(), -1);
if (element.hasParamsElement())
composeString(t, "TestScript", "params", element.getParamsElement(), -1);
for (int i = 0; i < element.getRequestHeader().size(); i++) composeTestScriptSetupActionOperationRequestHeaderComponent(t, "TestScript", "requestHeader", element.getRequestHeader().get(i), i);
if (element.hasResponseIdElement())
composeId(t, "TestScript", "responseId", element.getResponseIdElement(), -1);
if (element.hasSourceIdElement())
composeId(t, "TestScript", "sourceId", element.getSourceIdElement(), -1);
if (element.hasTargetIdElement())
composeId(t, "TestScript", "targetId", element.getTargetIdElement(), -1);
if (element.hasUrlElement())
composeString(t, "TestScript", "url", element.getUrlElement(), -1);
}
use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeTestScriptSetupActionAssertRulesetComponent.
protected void composeTestScriptSetupActionAssertRulesetComponent(Complex parent, String parentType, String name, TestScript.SetupActionAssertRulesetComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "ruleset", name, element, index);
if (element.hasRulesetIdElement())
composeId(t, "TestScript", "rulesetId", element.getRulesetIdElement(), -1);
for (int i = 0; i < element.getRule().size(); i++) composeTestScriptSetupActionAssertRulesetRuleComponent(t, "TestScript", "rule", element.getRule().get(i), i);
}
Aggregations