• Generates random FHIR R4 patient data using the OpenAI API based on an input string.

    Parameters

    • input_text: string

      Arbitrary input text to seed the OpenAI completion model.

    Returns Promise<Patient>

    • Returns a promise that resolves to a FHIR R4 Patient resource.
    const random_patient = await generate_random_fhir_patient("Jane Doe with diabetes");
    console.log(random_patient);