use of org.hl7.fhir.dstu3.model.Contract in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeEligibilityResponse.
protected void composeEligibilityResponse(Complex parent, String parentType, String name, EligibilityResponse element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "EligibilityResponse", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "EligibilityResponse", "identifier", element.getIdentifier().get(i), i);
if (element.hasRequest())
composeType(t, "EligibilityResponse", "request", element.getRequest(), -1);
if (element.hasOutcomeElement())
composeEnum(t, "EligibilityResponse", "outcome", element.getOutcomeElement(), -1);
if (element.hasDispositionElement())
composeString(t, "EligibilityResponse", "disposition", element.getDispositionElement(), -1);
if (element.hasRuleset())
composeCoding(t, "EligibilityResponse", "ruleset", element.getRuleset(), -1);
if (element.hasOriginalRuleset())
composeCoding(t, "EligibilityResponse", "originalRuleset", element.getOriginalRuleset(), -1);
if (element.hasCreatedElement())
composeDateTime(t, "EligibilityResponse", "created", element.getCreatedElement(), -1);
if (element.hasOrganization())
composeType(t, "EligibilityResponse", "organization", element.getOrganization(), -1);
if (element.hasRequestProvider())
composeType(t, "EligibilityResponse", "requestProvider", element.getRequestProvider(), -1);
if (element.hasRequestOrganization())
composeType(t, "EligibilityResponse", "requestOrganization", element.getRequestOrganization(), -1);
if (element.hasInforceElement())
composeBoolean(t, "EligibilityResponse", "inforce", element.getInforceElement(), -1);
if (element.hasContract())
composeReference(t, "EligibilityResponse", "contract", element.getContract(), -1);
if (element.hasForm())
composeCoding(t, "EligibilityResponse", "form", element.getForm(), -1);
for (int i = 0; i < element.getBenefitBalance().size(); i++) composeEligibilityResponseBenefitsComponent(t, "EligibilityResponse", "benefitBalance", element.getBenefitBalance().get(i), i);
for (int i = 0; i < element.getError().size(); i++) composeEligibilityResponseErrorsComponent(t, "EligibilityResponse", "error", element.getError().get(i), i);
}
use of org.hl7.fhir.dstu3.model.Contract in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeContractTermComponent.
protected void composeContractTermComponent(Complex parent, String parentType, String name, Contract.TermComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "term", name, element, index);
if (element.hasIdentifier())
composeIdentifier(t, "Contract", "identifier", element.getIdentifier(), -1);
if (element.hasIssuedElement())
composeDateTime(t, "Contract", "issued", element.getIssuedElement(), -1);
if (element.hasApplies())
composePeriod(t, "Contract", "applies", element.getApplies(), -1);
if (element.hasType())
composeCodeableConcept(t, "Contract", "type", element.getType(), -1);
if (element.hasSubType())
composeCodeableConcept(t, "Contract", "subType", element.getSubType(), -1);
for (int i = 0; i < element.getTopic().size(); i++) composeReference(t, "Contract", "topic", element.getTopic().get(i), i);
for (int i = 0; i < element.getAction().size(); i++) composeCodeableConcept(t, "Contract", "action", element.getAction().get(i), i);
for (int i = 0; i < element.getActionReason().size(); i++) composeCodeableConcept(t, "Contract", "actionReason", element.getActionReason().get(i), i);
for (int i = 0; i < element.getAgent().size(); i++) composeContractTermAgentComponent(t, "Contract", "agent", element.getAgent().get(i), i);
if (element.hasTextElement())
composeString(t, "Contract", "text", element.getTextElement(), -1);
for (int i = 0; i < element.getValuedItem().size(); i++) composeContractTermValuedItemComponent(t, "Contract", "valuedItem", element.getValuedItem().get(i), i);
for (int i = 0; i < element.getGroup().size(); i++) composeContractTermComponent(t, "Contract", "group", element.getGroup().get(i), i);
}
use of org.hl7.fhir.dstu3.model.Contract in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeContractAssetContextComponent.
protected void composeContractAssetContextComponent(Complex parent, String parentType, String name, Contract.AssetContextComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "context", name, element, index);
if (element.hasReference())
composeReference(t, "Contract", "reference", element.getReference(), -1);
for (int i = 0; i < element.getCode().size(); i++) composeCodeableConcept(t, "Contract", "code", element.getCode().get(i), i);
if (element.hasTextElement())
composeString(t, "Contract", "text", element.getTextElement(), -1);
}
use of org.hl7.fhir.dstu3.model.Contract in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeContractTermComponent.
protected void composeContractTermComponent(Complex parent, String parentType, String name, Contract.TermComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "term", name, element, index);
if (element.hasIdentifier())
composeIdentifier(t, "Contract", "identifier", element.getIdentifier(), -1);
if (element.hasIssuedElement())
composeDateTime(t, "Contract", "issued", element.getIssuedElement(), -1);
if (element.hasApplies())
composePeriod(t, "Contract", "applies", element.getApplies(), -1);
if (element.hasTopic())
composeType(t, "Contract", "topic", element.getTopic(), -1);
if (element.hasType())
composeCodeableConcept(t, "Contract", "type", element.getType(), -1);
if (element.hasSubType())
composeCodeableConcept(t, "Contract", "subType", element.getSubType(), -1);
if (element.hasTextElement())
composeString(t, "Contract", "text", element.getTextElement(), -1);
for (int i = 0; i < element.getSecurityLabel().size(); i++) composeContractSecurityLabelComponent(t, "Contract", "securityLabel", element.getSecurityLabel().get(i), i);
if (element.hasOffer())
composeContractContractOfferComponent(t, "Contract", "offer", element.getOffer(), -1);
for (int i = 0; i < element.getAsset().size(); i++) composeContractContractAssetComponent(t, "Contract", "asset", element.getAsset().get(i), i);
for (int i = 0; i < element.getAction().size(); i++) composeContractActionComponent(t, "Contract", "action", element.getAction().get(i), i);
for (int i = 0; i < element.getGroup().size(); i++) composeContractTermComponent(t, "Contract", "group", element.getGroup().get(i), i);
}
Aggregations