Search FHIR resources from natural language
/tools/lang2fhir-and-searchConverts natural language to FHIR search parameters and executes search in FHIR server
Header parameters
X-Phenoml-On-Behalf-OfstringoptionalOptional header for on-behalf-of authentication. Used when making requests on behalf of another user or entity. Must be in the format: Patient/{uuid} or Practitioner/{uuid}
X-Phenoml-Fhir-ProviderstringoptionalOptional header for FHIR provider authentication. Contains credentials in the format {fhir_provider_id}:{oauth2_token}. Multiple FHIR provider integrations can be provided as comma-separated values.
Body parameters
textstringrequiredNatural language text to convert to FHIR search parameters
patient_idstringoptionalPatient ID to filter results
countintegeroptionalMaximum number of results to return
providerstring (uuid)optionalFHIR provider ID - must be a valid UUID from existing FHIR providers. also supports provider by name (e.g. medplum)
Successfully generated search and retrieved results
Response fields
resource_typestringoptionalThe FHIR resource type identified for the search
search_paramsstringoptionalFHIR search parameters in standard format
fhir_resultsobject[]optionalArray of FHIR resources returned from the search
successbooleanoptionalmessagestringoptionalStatus message