use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeTestScriptSetupActionAssertRulesetRuleComponent.
protected void composeTestScriptSetupActionAssertRulesetRuleComponent(Complex parent, String parentType, String name, TestScript.SetupActionAssertRulesetRuleComponent 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++) composeTestScriptSetupActionAssertRulesetRuleParamComponent(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 composeTestScript.
protected void composeTestScript(Complex parent, String parentType, String name, TestScript element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "TestScript", name, element, index);
if (element.hasUrlElement())
composeUri(t, "TestScript", "url", element.getUrlElement(), -1);
if (element.hasVersionElement())
composeString(t, "TestScript", "version", element.getVersionElement(), -1);
if (element.hasNameElement())
composeString(t, "TestScript", "name", element.getNameElement(), -1);
if (element.hasStatusElement())
composeEnum(t, "TestScript", "status", element.getStatusElement(), -1);
if (element.hasIdentifier())
composeIdentifier(t, "TestScript", "identifier", element.getIdentifier(), -1);
if (element.hasExperimentalElement())
composeBoolean(t, "TestScript", "experimental", element.getExperimentalElement(), -1);
if (element.hasPublisherElement())
composeString(t, "TestScript", "publisher", element.getPublisherElement(), -1);
for (int i = 0; i < element.getContact().size(); i++) composeTestScriptTestScriptContactComponent(t, "TestScript", "contact", element.getContact().get(i), i);
if (element.hasDateElement())
composeDateTime(t, "TestScript", "date", element.getDateElement(), -1);
if (element.hasDescriptionElement())
composeString(t, "TestScript", "description", element.getDescriptionElement(), -1);
for (int i = 0; i < element.getUseContext().size(); i++) composeCodeableConcept(t, "TestScript", "useContext", element.getUseContext().get(i), i);
if (element.hasRequirementsElement())
composeString(t, "TestScript", "requirements", element.getRequirementsElement(), -1);
if (element.hasCopyrightElement())
composeString(t, "TestScript", "copyright", element.getCopyrightElement(), -1);
for (int i = 0; i < element.getOrigin().size(); i++) composeTestScriptTestScriptOriginComponent(t, "TestScript", "origin", element.getOrigin().get(i), i);
for (int i = 0; i < element.getDestination().size(); i++) composeTestScriptTestScriptDestinationComponent(t, "TestScript", "destination", element.getDestination().get(i), i);
if (element.hasMetadata())
composeTestScriptTestScriptMetadataComponent(t, "TestScript", "metadata", element.getMetadata(), -1);
for (int i = 0; i < element.getFixture().size(); i++) composeTestScriptTestScriptFixtureComponent(t, "TestScript", "fixture", element.getFixture().get(i), i);
for (int i = 0; i < element.getProfile().size(); i++) composeReference(t, "TestScript", "profile", element.getProfile().get(i), i);
for (int i = 0; i < element.getVariable().size(); i++) composeTestScriptTestScriptVariableComponent(t, "TestScript", "variable", element.getVariable().get(i), i);
for (int i = 0; i < element.getRule().size(); i++) composeTestScriptTestScriptRuleComponent(t, "TestScript", "rule", element.getRule().get(i), i);
for (int i = 0; i < element.getRuleset().size(); i++) composeTestScriptTestScriptRulesetComponent(t, "TestScript", "ruleset", element.getRuleset().get(i), i);
if (element.hasSetup())
composeTestScriptTestScriptSetupComponent(t, "TestScript", "setup", element.getSetup(), -1);
for (int i = 0; i < element.getTest().size(); i++) composeTestScriptTestScriptTestComponent(t, "TestScript", "test", element.getTest().get(i), i);
if (element.hasTeardown())
composeTestScriptTestScriptTeardownComponent(t, "TestScript", "teardown", element.getTeardown(), -1);
}
use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeTestScriptTestScriptOriginComponent.
protected void composeTestScriptTestScriptOriginComponent(Complex parent, String parentType, String name, TestScript.TestScriptOriginComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "origin", name, element, index);
if (element.hasIndexElement())
composeInteger(t, "TestScript", "index", element.getIndexElement(), -1);
if (element.hasProfile())
composeCoding(t, "TestScript", "profile", element.getProfile(), -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++) composeTestScriptTestScriptRulesetRuleComponent(t, "TestScript", "rule", element.getRule().get(i), i);
}
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);
if (element.hasMetadata())
composeTestScriptTestScriptMetadataComponent(t, "TestScript", "metadata", element.getMetadata(), -1);
for (int i = 0; i < element.getAction().size(); i++) composeTestScriptTestActionComponent(t, "TestScript", "action", element.getAction().get(i), i);
}
Aggregations