Create FHIR resource from text
/lang2fhir/createConverts natural language text into a structured FHIR resource.
Patient identifier handling. When generating a patient (or patient-canvas) resource, US Core requires Patient.identifier (a business identifier such as an MRN). When the source text contains an identifier, it is extracted with an appropriate URI system. When the source text does not contain a detectable identifier, a synthetic one is generated with system: "urn:phenoml:lang2fhir-generated-id" and a UUID value so the resource remains FHIR-valid and US Core conformant. Callers who need a tenant-specific namespace should rewrite the synthetic system after extraction.
Body parameters
versionstringrequireddefault R4FHIR version to use
resourcestringrequiredType of FHIR resource to create. Use 'auto' for automatic resource type detection, or specify a supported US Core profile. Recommended to use the supported US Core Profiles for validated results but you can also use any custom profile you've uploaded (if you're a develop or launch customer)
autoappointmentcondition-encounter-diagnosismedicationrequestcareplancondition-problems-health-concernscoverageencounterobservation-clinical-resultobservation-labpatientprocedurequestionnairequestionnaireresponseservicerequestsimple-observationvital-signstextstringrequiredNatural language text to convert
Successfully created FHIR resource
Response fields
resourceTypestringoptionalclinicalStatusobjectoptionalcodingarray<object>optionalsystemstringoptionalcodestringoptionalcodeobjectoptionalcodingarray<object>optionalsystemstringoptionalcodestringoptionaldisplaystringoptionaltextstringoptionalseverityobjectoptionalcodingarray<object>optionalsystemstringoptionalcodestringoptionaldisplaystringoptional