Search in sources :

Example 1 with EndpointConnectionType

use of org.hl7.fhir.r4.model.codesystems.EndpointConnectionType in project Gravity-SDOH-Exchange-RI by FHIR.

the class TaskPrepareBundleFactory method getPerformerWithEndpointEntry.

/**
 * Create GET entry to retrieve a performing Organization by id and additionally check whether it has supported type,
 * also include all related Endpoint resources with specific connection type.
 *
 * @return organization and endpoint entry
 */
protected BundleEntryComponent getPerformerWithEndpointEntry() {
    Assert.notNull(performer, "Performer Organization can't be null.");
    EndpointConnectionType connectionType = EndpointConnectionType.HL7FHIRREST;
    return FhirUtil.createGetEntry(addParams(Organization.class.getSimpleName(), combineParams(eq(Organization.SP_RES_ID, performer), eq(Organization.SP_TYPE, hasSystemWithAnyCode(OrganizationTypeCode.SYSTEM)), eq(Constants.PARAM_INCLUDE, include(Organization.class.getSimpleName(), Organization.SP_ENDPOINT)), eq(resourceField(Organization.SP_ENDPOINT, Endpoint.SP_CONNECTION_TYPE), hasSystemAndCode(connectionType.getSystem(), connectionType.toCode())))));
}
Also used : Organization(org.hl7.fhir.r4.model.Organization) EndpointConnectionType(org.hl7.fhir.r4.model.codesystems.EndpointConnectionType)

Aggregations

Organization (org.hl7.fhir.r4.model.Organization)1 EndpointConnectionType (org.hl7.fhir.r4.model.codesystems.EndpointConnectionType)1