Package dev.dsf.bpe.v1.service
Interface OrganizationProvider
public interface OrganizationProvider
Provides access to
Organization
resources from the DSF FHIR server.-
Method Summary
Modifier and TypeMethodDescriptionOptional
<org.hl7.fhir.r4.model.Organization> Retrieves the localOrganization
resources by searching for the managingOrganization
of the localEndpoint
resources.default Optional
<org.hl7.fhir.r4.model.Identifier> default Optional
<org.hl7.fhir.r4.model.Organization> getOrganization
(String organizationIdentifierValue) Optional
<org.hl7.fhir.r4.model.Organization> getOrganization
(org.hl7.fhir.r4.model.Identifier organizationIdentifier) default List
<org.hl7.fhir.r4.model.Organization> getOrganizations
(String parentOrganizationIdentifierValue) default List
<org.hl7.fhir.r4.model.Organization> getOrganizations
(String parentOrganizationIdentifierValue, org.hl7.fhir.r4.model.Coding memberOrganizationRole) List
<org.hl7.fhir.r4.model.Organization> getOrganizations
(org.hl7.fhir.r4.model.Identifier parentOrganizationIdentifier) List
<org.hl7.fhir.r4.model.Organization> getOrganizations
(org.hl7.fhir.r4.model.Identifier parentOrganizationIdentifier, org.hl7.fhir.r4.model.Coding memberOrganizationRole) List
<org.hl7.fhir.r4.model.Organization>
-
Method Details
-
getLocalOrganization
Optional<org.hl7.fhir.r4.model.Organization> getLocalOrganization()Retrieves the localOrganization
resources by searching for the managingOrganization
of the localEndpoint
resources. The localEndpoint
resource is identified by the DSF FHIR server address configured for the DSF BPE server.- Returns:
- Managing
Organization
for theEndpoint
resource with address equal to the DSF FHIR server base address configured for this DSF BPE, emptyOptional
if no such resource exists - See Also:
-
getLocalOrganizationIdentifier
- Returns:
- DSF organization identifier from the local
Organization
resource, emptyOptional
if no such resource exists or theOrganization
does not have a DSF organization identifier - See Also:
-
getLocalOrganizationIdentifierValue
- Returns:
- DSF organization identifier value from the local
Organization
resource, emptyOptional
if no such resource exists or theOrganization
does not have a DSF organization identifier - See Also:
-
getOrganization
Optional<org.hl7.fhir.r4.model.Organization> getOrganization(org.hl7.fhir.r4.model.Identifier organizationIdentifier) - Parameters:
organizationIdentifier
- may benull
- Returns:
- Active
Organization
with the given organizationIdentifier, emptyOptional
if no such resource exists or the given identifier isnull
-
getOrganization
default Optional<org.hl7.fhir.r4.model.Organization> getOrganization(String organizationIdentifierValue) - Parameters:
organizationIdentifierValue
- may benull
- Returns:
- Active
Organization
with the given DSF organizationIdentifier, emptyOptional
if no such resource exists or the given identifier value isnull
- See Also:
-
getOrganizations
List<org.hl7.fhir.r4.model.Organization> getOrganizations(org.hl7.fhir.r4.model.Identifier parentOrganizationIdentifier) - Parameters:
parentOrganizationIdentifier
- may benull
- Returns:
- Active Organizations configured as participatingOrganization for an active parent
Organization
with the given parentOrganizationIdentifier, emptyList
if no parent organization found, parent has no participating organizations configured viaOrganizationAffiliation
resources or the given identifier isnull
-
getOrganizations
default List<org.hl7.fhir.r4.model.Organization> getOrganizations(String parentOrganizationIdentifierValue) - Parameters:
parentOrganizationIdentifierValue
- may benull
- Returns:
- Active Organizations configured as participatingOrganization for an active parent
Organization
with the given DSF parentOrganizationIdentifierValue, emptyList
if no parent organization found, parent has no participating organizations configured viaOrganizationAffiliation
resources or the given identifier isnull
- See Also:
-
getOrganizations
List<org.hl7.fhir.r4.model.Organization> getOrganizations(org.hl7.fhir.r4.model.Identifier parentOrganizationIdentifier, org.hl7.fhir.r4.model.Coding memberOrganizationRole) - Parameters:
parentOrganizationIdentifier
- may benull
memberOrganizationRole
- may benull
- Returns:
- Active Organizations configured as participatingOrganization for an active parent
Organization
with the given parentOrganizationIdentifier and role equal to the given memberOrganizationRole, emptyList
if no parent organization found, parent has no participating organizations configured viaOrganizationAffiliation
resources with the given role or the given identifier isnull
-
getOrganizations
default List<org.hl7.fhir.r4.model.Organization> getOrganizations(String parentOrganizationIdentifierValue, org.hl7.fhir.r4.model.Coding memberOrganizationRole) - Parameters:
parentOrganizationIdentifierValue
- may benull
memberOrganizationRole
- may benull
- Returns:
- Active Organizations configured as participatingOrganization for an active parent
Organization
with the given parentOrganizationIdentifier and role equal to the given memberOrganizationRole, emptyList
if no parent organization found, parent has no participating organizations configured viaOrganizationAffiliation
resources with the given role or the given identifier isnull
- See Also:
-
getRemoteOrganizations
List<org.hl7.fhir.r4.model.Organization> getRemoteOrganizations()- Returns:
- All active
Organization
resources except the localOrganization
- See Also:
-