Skip to main content

Resources

The Provider Directory API supports 9 HL7 FHIR R4 resources that work together to provide comprehensive provider network information. This page covers shared concepts and patterns used across all resources.

Supported Resources

ResourceDescriptionPrimary Use Cases
CapabilityStatementAPI capabilities and supported operationsDiscover API features and limitations (read-only)
EndpointTechnical endpoints for data exchangeIntegration and connectivity information
HealthcareServiceServices offered by organizationsDiscover available medical services
InsurancePlanInsurance plans and coverage detailsFind accepted insurance plans
LocationPhysical locations where services are providedFind clinic addresses, service locations
OrganizationHealthcare organizations, facilities, and networksFind provider organizations, health systems
OrganizationAffiliationRelationships between organizationsUnderstand organizational networks
PractitionerIndividual healthcare providersSearch for doctors, nurses, specialists
PractitionerRoleRoles practitioners have at organizationsLink providers to their practice locations

Supported Headers

HeaderDirectionDescription
AcceptRequestPreferred format of response payload.
Content-TypeResponseThe format of response payload.
Default: application/fhir+json;charset=UTF-8
X-Correlation-IdResponseUsed to provide the requester's transaction ID back in the response when it is not accepted as the transaction ID for Netsmart logging.
X-Request-IDRequest & ResponseUnique transaction ID for logging purposes. Typically, a UUID.
If this header is passed in the request Netsmart will either accept it as the transaction ID or return it in the response X-Correlation-Id header.

Content-Type

This API supports accepting and returning resources as XML and JSON. You can specify your preference by using the Accept header.

JSONXMLTurtle
application/fhir+jsonapplication/fhir+xmlapplication/x-turtle
jsonxmlttl

Operations

Resources on this endpoint will support one or more of the following operations. This section describes how to implement each operation. Please consult the resource-specific documentation to determine which operations are supported.

Read

curl -X GET https://fhir.netsmartcloud.com/payer/provider-directory/v2/{tenant-id}/{Resource}/{id} \
-H "Accept: application/fhir+json"

Common Parameters

NameTypeDescription
_countspecialInteger. Number of result to return per page. Default: 100. Max: 500
_offsetspecialInteger. Page offset (zero-based). Default: 0
_sortspecialSortSpec. Sort option.

Via POST (recommended)

The POST method is recommended as it keeps health information out of the URL.

curl -X POST https://fhir.netsmartcloud.com/payer/provider-directory/v2/{tenant-id}/{Resource}/_search \
-H "Accept: application/fhir+json" \
-H "Content-Type: application/x-form-urlencoded" \
-d "parameter=value%20parameter=value"

Via GET

curl -X GET "https://fhir.netsmartcloud.com/payer/provider-directory/v2/{tenant-id}/{Resource}?parameter=value&parameter=value" \
-H "Accept: application/fhir+json"

Search Example

The following example illustrates using the common search parameters with the Practitioner resource. The API will return the second set of 5 matching results for Practitioners with the family name like "Baker".

Example: Practitioner Search by Family Name
curl -X POST https://fhir.netsmartcloud.com/payer/provider-directory/v2/{tenant-id}/Practitioner/_search \
-H "Accept: application/fhir+json" \
-H "Content-Type: application/x-form-urlencoded" \
-d "family=Baker&_offset=5&_count=5"

Resource Relationships

Provider Directory resources are interconnected to provide comprehensive provider network information:

Key Relationships:

  • PractitionerRole links Practitioners to Organizations and Locations
  • HealthcareService describes services offered by Organizations at Locations
  • OrganizationAffiliation shows relationships between Organizations
  • InsurancePlan indicates which plans are accepted by Organizations
  • Endpoint provides technical connectivity information for Organizations and Locations

For detailed information about each resource, including specific search parameters, examples, and integration patterns, see the individual resource documentation linked in the table above.

Error Handling

All Provider Directory API errors follow FHIR OperationOutcome format. For comprehensive error documentation, troubleshooting guidance, and examples, see the dedicated Common Errors page.

Quick Reference:

  • 400 Bad Request: Invalid search parameters or malformed requests
  • 403 Forbidden: Invalid URL path or unsupported endpoint
  • 404 Not Found: Resource doesn't exist or unsupported resource type
  • 429 Too Many Requests: Rate limit exceeded
  • 500 Internal Server Error: Server-side errors