--- description: >- Describes relationships between two or more organizations, including the services one organization provides another, the location(s) where they provide services etc. --- # OrganizationAffiliation Get 100 organizations (by default):
GET [base]/fhir/OrganizationAffiliation
Get practitioner role by resource `id`:
GET [base]/fhir/OrganizationAffiliation/[id]
The full list of FHIR search parameters for OrganizationAffiliation is found [below](organizationaffiliation.md#parameters). Aidbox also offers a selection of query parameters to further refine search results. This includes pagination, full-text search, sorting etc. Refer to the [FHIR API Search docs](../../../rest-api/fhir-search/README.md) for information. The search results are returned in [Bundles](../../../rest-api/bundle.md) by default. Alternatively, you can specify a `_result` parameter with value `array` to receive resources in a JSON array. ### Example search scenario 1. Get organization affiliation by network:
GET [base]/fhir/OrganizationAffiliation?network=Direct
2. Find organization `id`: ```json "organization": { "reference": "Organization/bc3d21a5-af67-4ff9-9f08-9758b71a7e0e" ....... } ``` 3. Get organization by `id`:
GET [base]/fhir/Organization/[id]
### Bulk API The following bulk operations on OrganizationAffiliation are available. #### [`$dump`](../../../bulk-api/dump.md) Aidbox will respond with [Chunked Transfer Encoding](https://en.wikipedia.org/wiki/Chunked_transfer_encoding) [ndjson](http://ndjson.org/) stream, optionally you can get the output in FHIR format or GZIPped. This is a memory-efficient operation. Aidbox just streams the database cursor to a socket. If your HTTP Client supports processing of Chunked Encoding, you can process resources in stream one by one without waiting for the end of the response. See full docs [here](../../../bulk-api/dump.md). {% tabs %} {% tab title="Request" %} ``` GET [base]/OrganizationAffiliation/$dump ``` {% endtab %} {% tab title="Response" %} ```yaml HTTP/1.1 200 OK Content-Type: application/ndjson Transfer-Encoding: chunked {"resourceType": "OrganizationAffiliation", "id": .............} {"resourceType": "OrganizationAffiliation", "id": .............} {"resourceType": "OrganizationAffiliation", "id": .............} {"resourceType": "OrganizationAffiliation", "id": .............} ......... ``` {% endtab %} {% endtabs %} #### [`$dump-csv`](../../../bulk-api/dump-csv.md) Dump Organization resources in CSV format. This operation dumps resource data in Aidbox format as CSV ([RFC4180](https://datatracker.ietf.org/doc/html/rfc4180)). In this format, columns are paths to JSON values and Rows are values. It includes the header. Neither the specific order of columns nor the order of rows is guaranteed. See full docs [here](../../../bulk-api/dump-csv.md). ``` GET [base]/OrganizationAffiliation/$dump-csv ``` ### Parameters
ParameterDescription
OrganizationAffiliation.activetrue/false
OrganizationAffiliation.date
OrganizationAffiliation.emailemail
OrganizationAffiliation.endpointtechnical endpoints providing access to services operated for this role
OrganizationAffiliation.identifieridentifier in a system
OrganizationAffiliation.locationassociated location
OrganizationAffiliation.networkassociated network
OrganizationAffiliation.organizationassociated organization
OrganizationAffiliation.participating-organizationorganization that provides/performs the role (e.g. providing services or is a member of)
OrganizationAffiliation.phonephone
OrganizationAffiliation.primary-organizationorganization where the role is available
OrganizationAffiliation.roledefinition of the role the participatingOrganization plays
OrganizationAffiliation.serviceassociated healthcare service
OrganizationAffiliation.specialtyspecific specialty of the participatingOrganization in the context of the role
OrganizationAffiliation.telecomcontact details at the participatingOrganization relevant to this Affiliation