use of org.hl7.elm.r1.Expression in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeRequestGroupRequestGroupActionConditionComponent.
protected void composeRequestGroupRequestGroupActionConditionComponent(Complex parent, String parentType, String name, RequestGroup.RequestGroupActionConditionComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "condition", name, element, index);
if (element.hasKindElement())
composeEnum(t, "RequestGroup", "kind", element.getKindElement(), -1);
if (element.hasDescriptionElement())
composeString(t, "RequestGroup", "description", element.getDescriptionElement(), -1);
if (element.hasLanguageElement())
composeString(t, "RequestGroup", "language", element.getLanguageElement(), -1);
if (element.hasExpressionElement())
composeString(t, "RequestGroup", "expression", element.getExpressionElement(), -1);
}
use of org.hl7.elm.r1.Expression in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeOperationOutcomeOperationOutcomeIssueComponent.
protected void composeOperationOutcomeOperationOutcomeIssueComponent(Complex parent, String parentType, String name, OperationOutcome.OperationOutcomeIssueComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "issue", name, element, index);
if (element.hasSeverityElement())
composeEnum(t, "OperationOutcome", "severity", element.getSeverityElement(), -1);
if (element.hasCodeElement())
composeEnum(t, "OperationOutcome", "code", element.getCodeElement(), -1);
if (element.hasDetails())
composeCodeableConcept(t, "OperationOutcome", "details", element.getDetails(), -1);
if (element.hasDiagnosticsElement())
composeString(t, "OperationOutcome", "diagnostics", element.getDiagnosticsElement(), -1);
for (int i = 0; i < element.getLocation().size(); i++) composeString(t, "OperationOutcome", "location", element.getLocation().get(i), i);
for (int i = 0; i < element.getExpression().size(); i++) composeString(t, "OperationOutcome", "expression", element.getExpression().get(i), i);
}
use of org.hl7.elm.r1.Expression in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeTestScriptSetupActionAssertComponent.
protected void composeTestScriptSetupActionAssertComponent(Complex parent, String parentType, String name, TestScript.SetupActionAssertComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "assert", name, element, index);
if (element.hasLabelElement())
composeString(t, "TestScript", "label", element.getLabelElement(), -1);
if (element.hasDescriptionElement())
composeString(t, "TestScript", "description", element.getDescriptionElement(), -1);
if (element.hasDirectionElement())
composeEnum(t, "TestScript", "direction", element.getDirectionElement(), -1);
if (element.hasCompareToSourceIdElement())
composeString(t, "TestScript", "compareToSourceId", element.getCompareToSourceIdElement(), -1);
if (element.hasCompareToSourceExpressionElement())
composeString(t, "TestScript", "compareToSourceExpression", element.getCompareToSourceExpressionElement(), -1);
if (element.hasCompareToSourcePathElement())
composeString(t, "TestScript", "compareToSourcePath", element.getCompareToSourcePathElement(), -1);
if (element.hasContentTypeElement())
composeEnum(t, "TestScript", "contentType", element.getContentTypeElement(), -1);
if (element.hasExpressionElement())
composeString(t, "TestScript", "expression", element.getExpressionElement(), -1);
if (element.hasHeaderFieldElement())
composeString(t, "TestScript", "headerField", element.getHeaderFieldElement(), -1);
if (element.hasMinimumIdElement())
composeString(t, "TestScript", "minimumId", element.getMinimumIdElement(), -1);
if (element.hasNavigationLinksElement())
composeBoolean(t, "TestScript", "navigationLinks", element.getNavigationLinksElement(), -1);
if (element.hasOperatorElement())
composeEnum(t, "TestScript", "operator", element.getOperatorElement(), -1);
if (element.hasPathElement())
composeString(t, "TestScript", "path", element.getPathElement(), -1);
if (element.hasRequestMethodElement())
composeEnum(t, "TestScript", "requestMethod", element.getRequestMethodElement(), -1);
if (element.hasRequestURLElement())
composeString(t, "TestScript", "requestURL", element.getRequestURLElement(), -1);
if (element.hasResourceElement())
composeCode(t, "TestScript", "resource", element.getResourceElement(), -1);
if (element.hasResponseElement())
composeEnum(t, "TestScript", "response", element.getResponseElement(), -1);
if (element.hasResponseCodeElement())
composeString(t, "TestScript", "responseCode", element.getResponseCodeElement(), -1);
if (element.hasRule())
composeTestScriptActionAssertRuleComponent(t, "TestScript", "rule", element.getRule(), -1);
if (element.hasRuleset())
composeTestScriptActionAssertRulesetComponent(t, "TestScript", "ruleset", element.getRuleset(), -1);
if (element.hasSourceIdElement())
composeId(t, "TestScript", "sourceId", element.getSourceIdElement(), -1);
if (element.hasValidateProfileIdElement())
composeId(t, "TestScript", "validateProfileId", element.getValidateProfileIdElement(), -1);
if (element.hasValueElement())
composeString(t, "TestScript", "value", element.getValueElement(), -1);
if (element.hasWarningOnlyElement())
composeBoolean(t, "TestScript", "warningOnly", element.getWarningOnlyElement(), -1);
}
use of org.hl7.elm.r1.Expression in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeElementDefinitionElementDefinitionConstraintComponent.
protected void composeElementDefinitionElementDefinitionConstraintComponent(Complex parent, String parentType, String name, ElementDefinition.ElementDefinitionConstraintComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeElement(t, "constraint", name, element, index);
if (element.hasKeyElement())
composeId(t, "ElementDefinition", "key", element.getKeyElement(), -1);
if (element.hasRequirementsElement())
composeString(t, "ElementDefinition", "requirements", element.getRequirementsElement(), -1);
if (element.hasSeverityElement())
composeEnum(t, "ElementDefinition", "severity", element.getSeverityElement(), -1);
if (element.hasHumanElement())
composeString(t, "ElementDefinition", "human", element.getHumanElement(), -1);
if (element.hasExpressionElement())
composeString(t, "ElementDefinition", "expression", element.getExpressionElement(), -1);
if (element.hasXpathElement())
composeString(t, "ElementDefinition", "xpath", element.getXpathElement(), -1);
if (element.hasSourceElement())
composeUri(t, "ElementDefinition", "source", element.getSourceElement(), -1);
}
use of org.hl7.elm.r1.Expression in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeActivityDefinitionActivityDefinitionDynamicValueComponent.
protected void composeActivityDefinitionActivityDefinitionDynamicValueComponent(Complex parent, String parentType, String name, ActivityDefinition.ActivityDefinitionDynamicValueComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "dynamicValue", name, element, index);
if (element.hasDescriptionElement())
composeString(t, "ActivityDefinition", "description", element.getDescriptionElement(), -1);
if (element.hasPathElement())
composeString(t, "ActivityDefinition", "path", element.getPathElement(), -1);
if (element.hasLanguageElement())
composeString(t, "ActivityDefinition", "language", element.getLanguageElement(), -1);
if (element.hasExpressionElement())
composeString(t, "ActivityDefinition", "expression", element.getExpressionElement(), -1);
}
Aggregations