use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeTestScriptSetupActionAssertRuleParamComponent.
protected void composeTestScriptSetupActionAssertRuleParamComponent(Complex parent, String parentType, String name, TestScript.SetupActionAssertRuleParamComponent 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 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);
if (element.hasMetadata())
composeTestScriptTestScriptMetadataComponent(t, "TestScript", "metadata", element.getMetadata(), -1);
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 composeTestScriptTestScriptContactComponent.
protected void composeTestScriptTestScriptContactComponent(Complex parent, String parentType, String name, TestScript.TestScriptContactComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "contact", name, element, index);
if (element.hasNameElement())
composeString(t, "TestScript", "name", element.getNameElement(), -1);
for (int i = 0; i < element.getTelecom().size(); i++) composeContactPoint(t, "TestScript", "telecom", element.getTelecom().get(i), i);
}
use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeTestScriptTestScriptMetadataCapabilityComponent.
protected void composeTestScriptTestScriptMetadataCapabilityComponent(Complex parent, String parentType, String name, TestScript.TestScriptMetadataCapabilityComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "capability", name, element, index);
if (element.hasRequiredElement())
composeBoolean(t, "TestScript", "required", element.getRequiredElement(), -1);
if (element.hasValidatedElement())
composeBoolean(t, "TestScript", "validated", element.getValidatedElement(), -1);
if (element.hasDescriptionElement())
composeString(t, "TestScript", "description", element.getDescriptionElement(), -1);
for (int i = 0; i < element.getOrigin().size(); i++) composeInteger(t, "TestScript", "origin", element.getOrigin().get(i), i);
if (element.hasDestinationElement())
composeInteger(t, "TestScript", "destination", element.getDestinationElement(), -1);
for (int i = 0; i < element.getLink().size(); i++) composeUri(t, "TestScript", "link", element.getLink().get(i), i);
if (element.hasConformance())
composeReference(t, "TestScript", "conformance", element.getConformance(), -1);
}
use of org.hl7.fhir.r5.model.TestScript in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeTestScriptTestScriptMetadataComponent.
protected void composeTestScriptTestScriptMetadataComponent(Complex parent, String parentType, String name, TestScript.TestScriptMetadataComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "metadata", name, element, index);
for (int i = 0; i < element.getLink().size(); i++) composeTestScriptTestScriptMetadataLinkComponent(t, "TestScript", "link", element.getLink().get(i), i);
for (int i = 0; i < element.getCapability().size(); i++) composeTestScriptTestScriptMetadataCapabilityComponent(t, "TestScript", "capability", element.getCapability().get(i), i);
}
Aggregations