use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeTestScriptTestScriptFixtureComponent.
protected void composeTestScriptTestScriptFixtureComponent(Complex parent, String parentType, String name, TestScript.TestScriptFixtureComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "fixture", name, element, index);
if (element.hasAutocreateElement())
composeBoolean(t, "TestScript", "autocreate", element.getAutocreateElement(), -1);
if (element.hasAutodeleteElement())
composeBoolean(t, "TestScript", "autodelete", element.getAutodeleteElement(), -1);
if (element.hasResource())
composeReference(t, "TestScript", "resource", element.getResource(), -1);
}
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 composeTestScriptTestScriptTestComponent.
protected void composeTestScriptTestScriptTestComponent(Complex parent, String parentType, String name, TestScript.TestScriptTestComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "test", name, element, index);
if (element.hasNameElement())
composeString(t, "TestScript", "name", element.getNameElement(), -1);
if (element.hasDescriptionElement())
composeString(t, "TestScript", "description", element.getDescriptionElement(), -1);
for (int i = 0; i < element.getAction().size(); i++) composeTestScriptTestActionComponent(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 composeTestScriptTestScriptVariableComponent.
protected void composeTestScriptTestScriptVariableComponent(Complex parent, String parentType, String name, TestScript.TestScriptVariableComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "variable", name, element, index);
if (element.hasNameElement())
composeString(t, "TestScript", "name", element.getNameElement(), -1);
if (element.hasDefaultValueElement())
composeString(t, "TestScript", "defaultValue", element.getDefaultValueElement(), -1);
if (element.hasDescriptionElement())
composeString(t, "TestScript", "description", element.getDescriptionElement(), -1);
if (element.hasExpressionElement())
composeString(t, "TestScript", "expression", element.getExpressionElement(), -1);
if (element.hasHeaderFieldElement())
composeString(t, "TestScript", "headerField", element.getHeaderFieldElement(), -1);
if (element.hasHintElement())
composeString(t, "TestScript", "hint", element.getHintElement(), -1);
if (element.hasPathElement())
composeString(t, "TestScript", "path", element.getPathElement(), -1);
if (element.hasSourceIdElement())
composeId(t, "TestScript", "sourceId", element.getSourceIdElement(), -1);
}
use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeTestScriptTeardownActionComponent.
protected void composeTestScriptTeardownActionComponent(Complex parent, String parentType, String name, TestScript.TeardownActionComponent 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);
}
Aggregations