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 composeTestScriptTestScriptSetupComponent.
protected void composeTestScriptTestScriptSetupComponent(Complex parent, String parentType, String name, TestScript.TestScriptSetupComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "setup", name, element, index);
for (int i = 0; i < element.getAction().size(); i++) composeTestScriptSetupActionComponent(t, "TestScript", "action", element.getAction().get(i), i);
}
use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeTestScriptTestScriptMetadataLinkComponent.
protected void composeTestScriptTestScriptMetadataLinkComponent(Complex parent, String parentType, String name, TestScript.TestScriptMetadataLinkComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "link", name, element, index);
if (element.hasUrlElement())
composeUri(t, "TestScript", "url", element.getUrlElement(), -1);
if (element.hasDescriptionElement())
composeString(t, "TestScript", "description", element.getDescriptionElement(), -1);
}
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.hasRequestIdElement())
composeId(t, "TestScript", "requestId", element.getRequestIdElement(), -1);
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 composeTestScriptTestScriptRulesetComponent.
protected void composeTestScriptTestScriptRulesetComponent(Complex parent, String parentType, String name, TestScript.TestScriptRulesetComponent 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.hasResource())
composeReference(t, "TestScript", "resource", element.getResource(), -1);
for (int i = 0; i < element.getRule().size(); i++) composeTestScriptRulesetRuleComponent(t, "TestScript", "rule", element.getRule().get(i), i);
}
Aggregations