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 localOrganizationresources by searching for the managingOrganizationof the localEndpointresources.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 localOrganizationresources by searching for the managingOrganizationof the localEndpointresources. The localEndpointresource is identified by the DSF FHIR server address configured for the DSF BPE server.- Returns:
- Managing
Organizationfor theEndpointresource with address equal to the DSF FHIR server base address configured for this DSF BPE, emptyOptionalif no such resource exists - See Also:
-
getLocalOrganizationIdentifier
- Returns:
- DSF organization identifier from the local
Organizationresource, emptyOptionalif no such resource exists or theOrganizationdoes not have a DSF organization identifier - See Also:
-
getLocalOrganizationIdentifierValue
- Returns:
- DSF organization identifier value from the local
Organizationresource, emptyOptionalif no such resource exists or theOrganizationdoes 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
Organizationwith the given organizationIdentifier, emptyOptionalif 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
Organizationwith the given DSF organizationIdentifier, emptyOptionalif 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
Organizationwith the given parentOrganizationIdentifier, emptyListif no parent organization found, parent has no participating organizations configured viaOrganizationAffiliationresources 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
Organizationwith the given DSF parentOrganizationIdentifierValue, emptyListif no parent organization found, parent has no participating organizations configured viaOrganizationAffiliationresources 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 benullmemberOrganizationRole- may benull- Returns:
- Active Organizations configured as participatingOrganization for an active parent
Organizationwith the given parentOrganizationIdentifier and role equal to the given memberOrganizationRole, emptyListif no parent organization found, parent has no participating organizations configured viaOrganizationAffiliationresources 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 benullmemberOrganizationRole- may benull- Returns:
- Active Organizations configured as participatingOrganization for an active parent
Organizationwith the given parentOrganizationIdentifier and role equal to the given memberOrganizationRole, emptyListif no parent organization found, parent has no participating organizations configured viaOrganizationAffiliationresources with the given role or the given identifier isnull - See Also:
-
getRemoteOrganizations
List<org.hl7.fhir.r4.model.Organization> getRemoteOrganizations()- Returns:
- All active
Organizationresources except the localOrganization - See Also:
-