Extract and store multiple FHIR resources
/tools/lang2fhir-and-create-multiExtracts multiple FHIR resources from natural language text and stores them in a FHIR server. Automatically detects Patient, Condition, MedicationRequest, Observation, and other resource types. Resources are linked with proper references and submitted as a transaction bundle. For FHIR servers that don't auto-resolve urn:uuid references, this endpoint will automatically resolve them via PUT requests after the initial bundle creation.
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 containing multiple clinical concepts to extract
versionstringoptionaldefault R4FHIR version to use
providerstringrequiredFHIR provider ID or name
Successfully created FHIR resources
Response fields
successbooleanoptionalWhether the resources were created successfully
messagestringoptionalStatus message
response_bundleobjectoptionalFHIR transaction-response Bundle from the server with resolved resource IDs
resourceTypestringoptionaltypestringoptionalentryobject[]optionalresource_infoobject[]optionalMetadata about created resources (temp IDs, types, descriptions)
tempIdstringoptionalOriginal temporary UUID
resourceTypestringoptionalFHIR resource type
descriptionstringoptionalText excerpt this resource was extracted from