@awell-health/awell-extensions 2.0.151 → 2.0.153
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/extensions/cerner/actions/createPatient/__testdata__/CreateFhirPatient.mock.d.ts +8 -0
- package/dist/extensions/cerner/actions/createPatient/__testdata__/CreateFhirPatient.mock.js +12 -0
- package/dist/extensions/cerner/actions/createPatient/__testdata__/CreateFhirPatient.mock.js.map +1 -0
- package/dist/extensions/cerner/actions/createPatient/config/datapoints.d.ts +6 -1
- package/dist/extensions/cerner/actions/createPatient/config/datapoints.js +6 -1
- package/dist/extensions/cerner/actions/createPatient/config/datapoints.js.map +1 -1
- package/dist/extensions/cerner/actions/createPatient/config/fields.d.ts +70 -2
- package/dist/extensions/cerner/actions/createPatient/config/fields.js +61 -2
- package/dist/extensions/cerner/actions/createPatient/config/fields.js.map +1 -1
- package/dist/extensions/cerner/actions/createPatient/createPatient.js +61 -1
- package/dist/extensions/cerner/actions/createPatient/createPatient.js.map +1 -1
- package/dist/extensions/cerner/actions/getPatient/__testdata__/PatientRead.mock.d.ts +37 -0
- package/dist/extensions/cerner/actions/getPatient/__testdata__/PatientRead.mock.js +55 -0
- package/dist/extensions/cerner/actions/getPatient/__testdata__/PatientRead.mock.js.map +1 -0
- package/dist/extensions/cerner/actions/getPatient/config/datapoints.d.ts +6 -1
- package/dist/extensions/cerner/actions/getPatient/config/datapoints.js +6 -1
- package/dist/extensions/cerner/actions/getPatient/config/datapoints.js.map +1 -1
- package/dist/extensions/cerner/actions/getPatient/config/fields.d.ts +17 -2
- package/dist/extensions/cerner/actions/getPatient/config/fields.js +13 -2
- package/dist/extensions/cerner/actions/getPatient/config/fields.js.map +1 -1
- package/dist/extensions/cerner/actions/getPatient/getPatient.js +33 -2
- package/dist/extensions/cerner/actions/getPatient/getPatient.js.map +1 -1
- package/dist/extensions/cerner/actions/index.d.ts +31 -4
- package/dist/extensions/cerner/actions/index.js +2 -6
- package/dist/extensions/cerner/actions/index.js.map +1 -1
- package/dist/extensions/cerner/index.js +1 -1
- package/dist/extensions/cerner/index.js.map +1 -1
- package/dist/extensions/cerner/lib/api/FhirR4/FhirR4client-backup.d.ts +0 -0
- package/dist/extensions/cerner/lib/api/FhirR4/FhirR4client-backup.js +172 -0
- package/dist/extensions/cerner/lib/api/FhirR4/FhirR4client-backup.js.map +1 -0
- package/dist/extensions/cerner/lib/api/FhirR4/FhirR4client.d.ts +19 -0
- package/dist/extensions/cerner/lib/api/FhirR4/FhirR4client.js +45 -0
- package/dist/extensions/cerner/lib/api/FhirR4/FhirR4client.js.map +1 -0
- package/dist/extensions/cerner/lib/api/FhirR4/cacheService.d.ts +11 -0
- package/dist/extensions/cerner/lib/api/FhirR4/cacheService.js +15 -0
- package/dist/extensions/cerner/lib/api/FhirR4/cacheService.js.map +1 -0
- package/dist/extensions/cerner/lib/api/FhirR4/index.d.ts +1 -0
- package/dist/extensions/cerner/lib/api/FhirR4/index.js +18 -0
- package/dist/extensions/cerner/lib/api/FhirR4/index.js.map +1 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/AppointmentRead.schema.d.ts +9 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/AppointmentRead.schema.js +6 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/AppointmentRead.schema.js.map +1 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/DocumentReferenceCreate.schema.d.ts +7 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/DocumentReferenceCreate.schema.js +3 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/DocumentReferenceCreate.schema.js.map +1 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientCreate.schema.d.ts +7 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientCreate.schema.js +3 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientCreate.schema.js.map +1 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientMatch.schema.d.ts +37 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientMatch.schema.js +3 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientMatch.schema.js.map +1 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientRead.schema.d.ts +9 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientRead.schema.js +6 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientRead.schema.js.map +1 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientSearch.schema.d.ts +8 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientSearch.schema.js +3 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/PatientSearch.schema.js.map +1 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/index.d.ts +6 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/index.js +23 -0
- package/dist/extensions/cerner/lib/api/FhirR4/schema/index.js.map +1 -0
- package/dist/extensions/cerner/lib/api/auth/constructCernerUrls.d.ts +4 -0
- package/dist/extensions/cerner/lib/api/auth/constructCernerUrls.js +11 -0
- package/dist/extensions/cerner/lib/api/auth/constructCernerUrls.js.map +1 -0
- package/dist/extensions/cerner/lib/api/auth/index.d.ts +1 -0
- package/dist/extensions/cerner/lib/api/auth/index.js +18 -0
- package/dist/extensions/cerner/lib/api/auth/index.js.map +1 -0
- package/dist/extensions/cerner/lib/validatePayloadAndCreateSdks.d.ts +18 -0
- package/dist/extensions/cerner/lib/validatePayloadAndCreateSdks.js +41 -0
- package/dist/extensions/cerner/lib/validatePayloadAndCreateSdks.js.map +1 -0
- package/dist/extensions/cerner/settings.d.ts +36 -2
- package/dist/extensions/cerner/settings.js +28 -2
- package/dist/extensions/cerner/settings.js.map +1 -1
- package/dist/extensions/dockHealth/lib/dock.types.d.ts +2 -2
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/findAppointmentsByPrompt.js +33 -113
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/findAppointmentsByPrompt.js.map +1 -1
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/getAppoitnmentCountByStatus.d.ts +2 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/getAppoitnmentCountByStatus.js +15 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/getAppoitnmentCountByStatus.js.map +1 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/lib/findAppointmentsByPromptWithLLM/findAppointmentsByPromptWithLLM.d.ts +14 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/lib/findAppointmentsByPromptWithLLM/findAppointmentsByPromptWithLLM.js +36 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/lib/findAppointmentsByPromptWithLLM/findAppointmentsByPromptWithLLM.js.map +1 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/lib/findAppointmentsByPromptWithLLM/parser.d.ts +17 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/lib/findAppointmentsByPromptWithLLM/parser.js +14 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/lib/findAppointmentsByPromptWithLLM/parser.js.map +1 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/lib/findAppointmentsByPromptWithLLM/prompt.d.ts +2 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/lib/findAppointmentsByPromptWithLLM/prompt.js +24 -0
- package/dist/extensions/elation/actions/findAppointmentsByPrompt/lib/findAppointmentsByPromptWithLLM/prompt.js.map +1 -0
- package/dist/extensions/elation/actions/findFutureAppointment/findFutureAppointment.d.ts +1 -1
- package/dist/extensions/elation/actions/findFutureAppointment/findFutureAppointment.js +32 -90
- package/dist/extensions/elation/actions/findFutureAppointment/findFutureAppointment.js.map +1 -1
- package/dist/extensions/elation/actions/findFutureAppointment/formatAppointments.d.ts +2 -0
- package/dist/extensions/elation/actions/findFutureAppointment/formatAppointments.js +18 -0
- package/dist/extensions/elation/actions/findFutureAppointment/formatAppointments.js.map +1 -0
- package/dist/extensions/elation/actions/findFutureAppointment/getFutureAppoitnments.d.ts +3 -0
- package/dist/extensions/elation/actions/findFutureAppointment/getFutureAppoitnments.js +15 -0
- package/dist/extensions/elation/actions/findFutureAppointment/getFutureAppoitnments.js.map +1 -0
- package/dist/extensions/elation/actions/findFutureAppointment/lib/findAppointmentWithLLM/findAppointmentWithLLM.d.ts +14 -0
- package/dist/extensions/elation/actions/findFutureAppointment/lib/findAppointmentWithLLM/findAppointmentWithLLM.js +29 -0
- package/dist/extensions/elation/actions/findFutureAppointment/lib/findAppointmentWithLLM/findAppointmentWithLLM.js.map +1 -0
- package/dist/extensions/elation/actions/findFutureAppointment/lib/findAppointmentWithLLM/parser.d.ts +17 -0
- package/dist/extensions/elation/actions/findFutureAppointment/lib/findAppointmentWithLLM/parser.js +16 -0
- package/dist/extensions/elation/actions/findFutureAppointment/lib/findAppointmentWithLLM/parser.js.map +1 -0
- package/dist/extensions/elation/actions/findFutureAppointment/lib/findAppointmentWithLLM/prompt.d.ts +2 -0
- package/dist/extensions/elation/actions/findFutureAppointment/lib/findAppointmentWithLLM/prompt.js +20 -0
- package/dist/extensions/elation/actions/findFutureAppointment/lib/findAppointmentWithLLM/prompt.js.map +1 -0
- package/dist/extensions/elation/actions/index.d.ts +0 -210
- package/dist/extensions/elation/actions/updatePatientTags/config/types.d.ts +29 -0
- package/dist/extensions/elation/actions/updatePatientTags/config/types.js +21 -0
- package/dist/extensions/elation/actions/updatePatientTags/config/types.js.map +1 -0
- package/dist/extensions/elation/actions/updatePatientTags/lib/getTagsFromLLM/getTagsFromLLM.d.ts +13 -0
- package/dist/extensions/elation/actions/updatePatientTags/lib/getTagsFromLLM/getTagsFromLLM.js +29 -0
- package/dist/extensions/elation/actions/updatePatientTags/lib/getTagsFromLLM/getTagsFromLLM.js.map +1 -0
- package/dist/extensions/elation/actions/updatePatientTags/lib/getTagsFromLLM/parser.d.ts +13 -0
- package/dist/extensions/elation/actions/updatePatientTags/lib/getTagsFromLLM/parser.js +7 -0
- package/dist/extensions/elation/actions/updatePatientTags/lib/getTagsFromLLM/parser.js.map +1 -0
- package/dist/extensions/elation/actions/updatePatientTags/lib/getTagsFromLLM/prompt.d.ts +2 -0
- package/dist/extensions/elation/actions/updatePatientTags/lib/getTagsFromLLM/prompt.js +22 -0
- package/dist/extensions/elation/actions/updatePatientTags/lib/getTagsFromLLM/prompt.js.map +1 -0
- package/dist/extensions/elation/actions/updatePatientTags/updatePatientTags.d.ts +8 -0
- package/dist/extensions/elation/actions/updatePatientTags/updatePatientTags.js +35 -77
- package/dist/extensions/elation/actions/updatePatientTags/updatePatientTags.js.map +1 -1
- package/dist/extensions/elation/actions/updatePatientTags/updateTags.d.ts +2 -0
- package/dist/extensions/elation/actions/updatePatientTags/updateTags.js +18 -0
- package/dist/extensions/elation/actions/updatePatientTags/updateTags.js.map +1 -0
- package/dist/extensions/elation/settings.d.ts +1 -10
- package/dist/extensions/elation/settings.js +0 -8
- package/dist/extensions/elation/settings.js.map +1 -1
- package/dist/extensions/elation/validation/referralOrder.zod.d.ts +17 -17
- package/dist/extensions/epic/actions/createClinicalNote/config/fields.js +1 -1
- package/dist/extensions/epic/actions/createClinicalNote/config/fields.js.map +1 -1
- package/dist/extensions/epic/actions/createClinicalNote/createClinicalNote.js +1 -1
- package/dist/extensions/epic/actions/createClinicalNote/createClinicalNote.js.map +1 -1
- package/dist/extensions/epic/actions/createPatient/config/fields.js +1 -1
- package/dist/extensions/epic/actions/createPatient/config/fields.js.map +1 -1
- package/dist/extensions/epic/actions/matchPatient/config/fields.js +1 -1
- package/dist/extensions/epic/actions/matchPatient/config/fields.js.map +1 -1
- package/dist/extensions/epic/lib/api/customFhirSchemas/DocumentReference/Status.schema.js.map +1 -0
- package/dist/extensions/epic/lib/api/customFhirSchemas/DocumentReference/Type.schema.js.map +1 -0
- package/dist/extensions/epic/lib/api/{schemas → customFhirSchemas}/DocumentReference/index.js +1 -1
- package/dist/extensions/epic/lib/api/customFhirSchemas/DocumentReference/index.js.map +1 -0
- package/dist/extensions/markdown.json +1 -1
- package/dist/extensions/medplum/actions/createServiceRequest/config/fields.js +4 -6
- package/dist/extensions/medplum/actions/createServiceRequest/config/fields.js.map +1 -1
- package/dist/extensions/medplum/actions/createTask/config/fields.js +4 -6
- package/dist/extensions/medplum/actions/createTask/config/fields.js.map +1 -1
- package/dist/extensions/medplum/fhir/schemas/resources/patient.schema.js +2 -2
- package/dist/extensions/medplum/fhir/schemas/resources/patient.schema.js.map +1 -1
- package/dist/extensions/medplum/fhir/schemas/resources/serviceRequest.schema.js +5 -5
- package/dist/extensions/medplum/fhir/schemas/resources/serviceRequest.schema.js.map +1 -1
- package/dist/extensions/medplum/fhir/schemas/resources/task.schema.js +4 -4
- package/dist/extensions/medplum/fhir/schemas/resources/task.schema.js.map +1 -1
- package/dist/extensions/shelly/actions/categorizeMessage/categorizeMessage.d.ts +10 -2
- package/dist/extensions/shelly/actions/categorizeMessage/categorizeMessage.js +32 -24
- package/dist/extensions/shelly/actions/categorizeMessage/categorizeMessage.js.map +1 -1
- package/dist/extensions/shelly/actions/categorizeMessage/lib/categorizeMessageWithLLM/categorizeMessageWithLLM.d.ts +22 -2
- package/dist/extensions/shelly/actions/categorizeMessage/lib/categorizeMessageWithLLM/categorizeMessageWithLLM.js +22 -7
- package/dist/extensions/shelly/actions/categorizeMessage/lib/categorizeMessageWithLLM/categorizeMessageWithLLM.js.map +1 -1
- package/dist/extensions/shelly/actions/categorizeMessage/lib/categorizeMessageWithLLM/parser.d.ts +20 -0
- package/dist/extensions/shelly/actions/categorizeMessage/lib/categorizeMessageWithLLM/parser.js +18 -0
- package/dist/extensions/shelly/actions/categorizeMessage/lib/categorizeMessageWithLLM/parser.js.map +1 -0
- package/dist/extensions/shelly/actions/categorizeMessage/lib/categorizeMessageWithLLM/prompt.d.ts +13 -0
- package/dist/extensions/shelly/actions/categorizeMessage/lib/categorizeMessageWithLLM/prompt.js +35 -0
- package/dist/extensions/shelly/actions/categorizeMessage/lib/categorizeMessageWithLLM/prompt.js.map +1 -0
- package/dist/extensions/shelly/actions/generateMessage/generateMessage.d.ts +10 -2
- package/dist/extensions/shelly/actions/generateMessage/generateMessage.js +33 -25
- package/dist/extensions/shelly/actions/generateMessage/generateMessage.js.map +1 -1
- package/dist/extensions/shelly/actions/generateMessage/lib/generateMessageWithLLM/generateMessageWithLLM.d.ts +18 -2
- package/dist/extensions/shelly/actions/generateMessage/lib/generateMessageWithLLM/generateMessageWithLLM.js +23 -10
- package/dist/extensions/shelly/actions/generateMessage/lib/generateMessageWithLLM/generateMessageWithLLM.js.map +1 -1
- package/dist/extensions/shelly/actions/generateMessage/lib/generateMessageWithLLM/parser.d.ts +28 -0
- package/dist/extensions/shelly/actions/generateMessage/lib/generateMessageWithLLM/parser.js +17 -0
- package/dist/extensions/shelly/actions/generateMessage/lib/generateMessageWithLLM/parser.js.map +1 -0
- package/dist/extensions/shelly/actions/generateMessage/lib/generateMessageWithLLM/prompt.d.ts +10 -0
- package/dist/extensions/shelly/actions/generateMessage/lib/generateMessageWithLLM/prompt.js +121 -0
- package/dist/extensions/shelly/actions/generateMessage/lib/generateMessageWithLLM/prompt.js.map +1 -0
- package/dist/extensions/shelly/actions/index.d.ts +7 -63
- package/dist/extensions/shelly/actions/medicationFromImage/medicationFromImage.d.ts +1 -2
- package/dist/extensions/shelly/actions/medicationFromImage/medicationFromImage.js.map +1 -1
- package/dist/extensions/shelly/actions/reviewMedicationExtraction/reviewMedicationExtraction.d.ts +1 -2
- package/dist/extensions/shelly/actions/reviewMedicationExtraction/reviewMedicationExtraction.js.map +1 -1
- package/dist/extensions/shelly/actions/summarizeCareFlow/lib/summarizeCareFlowWithLLM/{constants.js → prompt.js} +1 -1
- package/dist/extensions/shelly/actions/summarizeCareFlow/lib/summarizeCareFlowWithLLM/prompt.js.map +1 -0
- package/dist/extensions/shelly/actions/summarizeCareFlow/lib/summarizeCareFlowWithLLM/summarizeCareFlowWithLLM.d.ts +22 -2
- package/dist/extensions/shelly/actions/summarizeCareFlow/lib/summarizeCareFlowWithLLM/summarizeCareFlowWithLLM.js +30 -8
- package/dist/extensions/shelly/actions/summarizeCareFlow/lib/summarizeCareFlowWithLLM/summarizeCareFlowWithLLM.js.map +1 -1
- package/dist/extensions/shelly/actions/summarizeCareFlow/summarizeCareFlow.d.ts +1 -2
- package/dist/extensions/shelly/actions/summarizeCareFlow/summarizeCareFlow.js +24 -21
- package/dist/extensions/shelly/actions/summarizeCareFlow/summarizeCareFlow.js.map +1 -1
- package/dist/extensions/shelly/actions/summarizeForm/summarizeForm.d.ts +10 -2
- package/dist/extensions/shelly/actions/summarizeForm/summarizeForm.js +42 -28
- package/dist/extensions/shelly/actions/summarizeForm/summarizeForm.js.map +1 -1
- package/dist/extensions/shelly/actions/summarizeFormsInStep/summarizeFormsInStep.d.ts +1 -2
- package/dist/extensions/shelly/actions/summarizeFormsInStep/summarizeFormsInStep.js +29 -26
- package/dist/extensions/shelly/actions/summarizeFormsInStep/summarizeFormsInStep.js.map +1 -1
- package/dist/extensions/shelly/index.js +2 -3
- package/dist/extensions/shelly/index.js.map +1 -1
- package/dist/extensions/shelly/lib/summarizeFormWithLLM/{constants.js → prompt.js} +1 -1
- package/dist/extensions/shelly/lib/summarizeFormWithLLM/prompt.js.map +1 -0
- package/dist/extensions/shelly/lib/summarizeFormWithLLM/summarizeFormWithLLM.d.ts +23 -2
- package/dist/extensions/shelly/lib/summarizeFormWithLLM/summarizeFormWithLLM.js +33 -9
- package/dist/extensions/shelly/lib/summarizeFormWithLLM/summarizeFormWithLLM.js.map +1 -1
- package/dist/extensions/shelly/lib/validatePayloadAndCreateSdk.d.ts +1 -5
- package/dist/extensions/shelly/lib/validatePayloadAndCreateSdk.js +5 -20
- package/dist/extensions/shelly/lib/validatePayloadAndCreateSdk.js.map +1 -1
- package/dist/extensions/zendesk/v1/actions/createTask/config/fields.d.ts +2 -2
- package/dist/src/lib/fhir/schemas/Appointment/Status.schema.js.map +1 -0
- package/dist/src/lib/fhir/schemas/Appointment/index.js.map +1 -0
- package/dist/src/lib/fhir/schemas/Patient/Gender.schema.js.map +1 -0
- package/dist/src/lib/fhir/schemas/Patient/index.js.map +1 -0
- package/dist/{extensions/medplum/fhir/schemas/atoms/IntentSchema.d.ts → src/lib/fhir/schemas/ServiceRequest/Intent.schema.d.ts} +0 -1
- package/dist/{extensions/medplum/fhir/schemas/atoms/IntentSchema.js → src/lib/fhir/schemas/ServiceRequest/Intent.schema.js} +2 -13
- package/dist/src/lib/fhir/schemas/ServiceRequest/Intent.schema.js.map +1 -0
- package/dist/{extensions/medplum/fhir/schemas/atoms/PrioritySchema.js → src/lib/fhir/schemas/ServiceRequest/Priority.schema.js} +1 -1
- package/dist/src/lib/fhir/schemas/ServiceRequest/Priority.schema.js.map +1 -0
- package/dist/src/lib/fhir/schemas/ServiceRequest/Status.schema.d.ts +2 -0
- package/dist/src/lib/fhir/schemas/ServiceRequest/Status.schema.js +14 -0
- package/dist/src/lib/fhir/schemas/ServiceRequest/Status.schema.js.map +1 -0
- package/dist/src/lib/fhir/schemas/ServiceRequest/index.d.ts +3 -0
- package/dist/src/lib/fhir/schemas/ServiceRequest/index.js +20 -0
- package/dist/src/lib/fhir/schemas/ServiceRequest/index.js.map +1 -0
- package/dist/src/lib/fhir/schemas/Shared/PeriodSchema.js.map +1 -0
- package/dist/src/lib/fhir/schemas/Shared/index.d.ts +1 -0
- package/dist/src/lib/fhir/schemas/Shared/index.js +18 -0
- package/dist/src/lib/fhir/schemas/Shared/index.js.map +1 -0
- package/dist/src/lib/fhir/schemas/Task/IntentSchema.d.ts +2 -0
- package/dist/src/lib/fhir/schemas/Task/IntentSchema.js +16 -0
- package/dist/src/lib/fhir/schemas/Task/IntentSchema.js.map +1 -0
- package/dist/src/lib/fhir/schemas/Task/Priority.schema.d.ts +2 -0
- package/dist/src/lib/fhir/schemas/Task/Priority.schema.js +6 -0
- package/dist/src/lib/fhir/schemas/Task/Priority.schema.js.map +1 -0
- package/dist/{extensions/medplum/fhir/schemas/atoms/StatusSchema.d.ts → src/lib/fhir/schemas/Task/Status.schema.d.ts} +0 -1
- package/dist/{extensions/medplum/fhir/schemas/atoms/StatusSchema.js → src/lib/fhir/schemas/Task/Status.schema.js} +2 -11
- package/dist/src/lib/fhir/schemas/Task/Status.schema.js.map +1 -0
- package/dist/src/lib/fhir/schemas/Task/index.d.ts +3 -0
- package/dist/src/lib/fhir/schemas/Task/index.js +20 -0
- package/dist/src/lib/fhir/schemas/Task/index.js.map +1 -0
- package/dist/src/lib/llm/openai/constants.d.ts +28 -0
- package/dist/src/lib/llm/openai/constants.js +32 -0
- package/dist/src/lib/llm/openai/constants.js.map +1 -0
- package/dist/src/lib/llm/openai/createOpenAIModel.d.ts +23 -0
- package/dist/src/lib/llm/openai/createOpenAIModel.js +89 -0
- package/dist/src/lib/llm/openai/createOpenAIModel.js.map +1 -0
- package/dist/src/lib/llm/openai/index.d.ts +3 -0
- package/dist/src/lib/llm/openai/index.js +20 -0
- package/dist/src/lib/llm/openai/index.js.map +1 -0
- package/dist/src/lib/llm/openai/types.d.ts +63 -0
- package/dist/src/lib/llm/openai/types.js +3 -0
- package/dist/src/lib/llm/openai/types.js.map +1 -0
- package/package.json +5 -4
- package/dist/extensions/cerner/actions/createClinicalNote/config/datapoints.d.ts +0 -1
- package/dist/extensions/cerner/actions/createClinicalNote/config/datapoints.js +0 -5
- package/dist/extensions/cerner/actions/createClinicalNote/config/datapoints.js.map +0 -1
- package/dist/extensions/cerner/actions/createClinicalNote/config/fields.d.ts +0 -3
- package/dist/extensions/cerner/actions/createClinicalNote/config/fields.js +0 -10
- package/dist/extensions/cerner/actions/createClinicalNote/config/fields.js.map +0 -1
- package/dist/extensions/cerner/actions/createClinicalNote/config/index.d.ts +0 -2
- package/dist/extensions/cerner/actions/createClinicalNote/config/index.js +0 -9
- package/dist/extensions/cerner/actions/createClinicalNote/config/index.js.map +0 -1
- package/dist/extensions/cerner/actions/createClinicalNote/createClinicalNote.d.ts +0 -4
- package/dist/extensions/cerner/actions/createClinicalNote/createClinicalNote.js +0 -18
- package/dist/extensions/cerner/actions/createClinicalNote/createClinicalNote.js.map +0 -1
- package/dist/extensions/cerner/actions/createClinicalNote/index.d.ts +0 -1
- package/dist/extensions/cerner/actions/createClinicalNote/index.js +0 -6
- package/dist/extensions/cerner/actions/createClinicalNote/index.js.map +0 -1
- package/dist/extensions/cerner/actions/getAppointment/config/datapoints.d.ts +0 -1
- package/dist/extensions/cerner/actions/getAppointment/config/datapoints.js +0 -5
- package/dist/extensions/cerner/actions/getAppointment/config/datapoints.js.map +0 -1
- package/dist/extensions/cerner/actions/getAppointment/config/fields.d.ts +0 -3
- package/dist/extensions/cerner/actions/getAppointment/config/fields.js +0 -10
- package/dist/extensions/cerner/actions/getAppointment/config/fields.js.map +0 -1
- package/dist/extensions/cerner/actions/getAppointment/config/index.d.ts +0 -2
- package/dist/extensions/cerner/actions/getAppointment/config/index.js +0 -9
- package/dist/extensions/cerner/actions/getAppointment/config/index.js.map +0 -1
- package/dist/extensions/cerner/actions/getAppointment/getAppointment.d.ts +0 -4
- package/dist/extensions/cerner/actions/getAppointment/getAppointment.js +0 -18
- package/dist/extensions/cerner/actions/getAppointment/getAppointment.js.map +0 -1
- package/dist/extensions/cerner/actions/getAppointment/index.d.ts +0 -1
- package/dist/extensions/cerner/actions/getAppointment/index.js +0 -6
- package/dist/extensions/cerner/actions/getAppointment/index.js.map +0 -1
- package/dist/extensions/epic/lib/api/schemas/Appointment/Status.schema.js.map +0 -1
- package/dist/extensions/epic/lib/api/schemas/Appointment/index.js.map +0 -1
- package/dist/extensions/epic/lib/api/schemas/DocumentReference/Status.schema.js.map +0 -1
- package/dist/extensions/epic/lib/api/schemas/DocumentReference/Type.schema.js.map +0 -1
- package/dist/extensions/epic/lib/api/schemas/DocumentReference/index.js.map +0 -1
- package/dist/extensions/epic/lib/api/schemas/Patient/Gender.schema.js.map +0 -1
- package/dist/extensions/epic/lib/api/schemas/Patient/index.js.map +0 -1
- package/dist/extensions/medplum/fhir/schemas/atoms/GenderSchema.d.ts +0 -2
- package/dist/extensions/medplum/fhir/schemas/atoms/GenderSchema.js +0 -6
- package/dist/extensions/medplum/fhir/schemas/atoms/GenderSchema.js.map +0 -1
- package/dist/extensions/medplum/fhir/schemas/atoms/IntentSchema.js.map +0 -1
- package/dist/extensions/medplum/fhir/schemas/atoms/PeriodSchema.js.map +0 -1
- package/dist/extensions/medplum/fhir/schemas/atoms/PrioritySchema.js.map +0 -1
- package/dist/extensions/medplum/fhir/schemas/atoms/StatusSchema.js.map +0 -1
- package/dist/extensions/medplum/fhir/schemas/atoms/index.d.ts +0 -5
- package/dist/extensions/medplum/fhir/schemas/atoms/index.js +0 -16
- package/dist/extensions/medplum/fhir/schemas/atoms/index.js.map +0 -1
- package/dist/extensions/shelly/actions/categorizeMessage/lib/categorizeMessageWithLLM/constants.d.ts +0 -24
- package/dist/extensions/shelly/actions/categorizeMessage/lib/categorizeMessageWithLLM/constants.js +0 -33
- package/dist/extensions/shelly/actions/categorizeMessage/lib/categorizeMessageWithLLM/constants.js.map +0 -1
- package/dist/extensions/shelly/actions/generateMessage/lib/generateMessageWithLLM/constants.d.ts +0 -24
- package/dist/extensions/shelly/actions/generateMessage/lib/generateMessageWithLLM/constants.js +0 -123
- package/dist/extensions/shelly/actions/generateMessage/lib/generateMessageWithLLM/constants.js.map +0 -1
- package/dist/extensions/shelly/actions/summarizeCareFlow/lib/summarizeCareFlowWithLLM/constants.js.map +0 -1
- package/dist/extensions/shelly/lib/summarizeFormWithLLM/constants.js.map +0 -1
- package/dist/extensions/shelly/settings.d.ts +0 -17
- package/dist/extensions/shelly/settings.js +0 -17
- package/dist/extensions/shelly/settings.js.map +0 -1
- package/dist/extensions/epic/lib/api/{schemas → customFhirSchemas}/DocumentReference/Status.schema.d.ts +0 -0
- package/dist/extensions/epic/lib/api/{schemas → customFhirSchemas}/DocumentReference/Status.schema.js +0 -0
- package/dist/extensions/epic/lib/api/{schemas → customFhirSchemas}/DocumentReference/Type.schema.d.ts +0 -0
- package/dist/extensions/epic/lib/api/{schemas → customFhirSchemas}/DocumentReference/Type.schema.js +0 -0
- package/dist/extensions/epic/lib/api/{schemas → customFhirSchemas}/DocumentReference/index.d.ts +1 -1
- /package/dist/extensions/shelly/actions/summarizeCareFlow/lib/summarizeCareFlowWithLLM/{constants.d.ts → prompt.d.ts} +0 -0
- /package/dist/extensions/shelly/lib/summarizeFormWithLLM/{constants.d.ts → prompt.d.ts} +0 -0
- /package/dist/{extensions/epic/lib/api → src/lib/fhir}/schemas/Appointment/Status.schema.d.ts +0 -0
- /package/dist/{extensions/epic/lib/api → src/lib/fhir}/schemas/Appointment/Status.schema.js +0 -0
- /package/dist/{extensions/epic/lib/api → src/lib/fhir}/schemas/Appointment/index.d.ts +0 -0
- /package/dist/{extensions/epic/lib/api → src/lib/fhir}/schemas/Appointment/index.js +0 -0
- /package/dist/{extensions/epic/lib/api → src/lib/fhir}/schemas/Patient/Gender.schema.d.ts +0 -0
- /package/dist/{extensions/epic/lib/api → src/lib/fhir}/schemas/Patient/Gender.schema.js +0 -0
- /package/dist/{extensions/epic/lib/api → src/lib/fhir}/schemas/Patient/index.d.ts +0 -0
- /package/dist/{extensions/epic/lib/api → src/lib/fhir}/schemas/Patient/index.js +0 -0
- /package/dist/{extensions/medplum/fhir/schemas/atoms/PrioritySchema.d.ts → src/lib/fhir/schemas/ServiceRequest/Priority.schema.d.ts} +0 -0
- /package/dist/{extensions/medplum/fhir/schemas/atoms → src/lib/fhir/schemas/Shared}/PeriodSchema.d.ts +0 -0
- /package/dist/{extensions/medplum/fhir/schemas/atoms → src/lib/fhir/schemas/Shared}/PeriodSchema.js +0 -0
@@ -2,14 +2,14 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.summarizeFormsInStep = void 0;
|
4
4
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
-
const lib_1 = require("../../lib");
|
6
5
|
const config_1 = require("./config");
|
7
6
|
const getFormResponseText_1 = require("../../lib/getFormResponseText");
|
8
7
|
const summarizeFormWithLLM_1 = require("../../lib/summarizeFormWithLLM");
|
9
8
|
const constants_1 = require("../../lib/constants");
|
10
9
|
const awell_1 = require("../../../../src/lib/awell");
|
11
10
|
const utils_1 = require("../../../../src/utils");
|
12
|
-
|
11
|
+
const openai_1 = require("../../../../src/lib/llm/openai");
|
12
|
+
const constants_2 = require("../../../../src/lib/llm/openai/constants");
|
13
13
|
exports.summarizeFormsInStep = {
|
14
14
|
key: 'summarizeFormsInStep',
|
15
15
|
category: extensions_core_1.Category.WORKFLOW,
|
@@ -19,41 +19,44 @@ exports.summarizeFormsInStep = {
|
|
19
19
|
previewable: false,
|
20
20
|
dataPoints: config_1.dataPoints,
|
21
21
|
onEvent: async ({ payload, onComplete, onError, helpers }) => {
|
22
|
-
|
23
|
-
|
22
|
+
// 1. Validate input fields
|
23
|
+
const { summaryFormat, language } = config_1.FieldsValidationSchema.parse(payload.fields);
|
24
|
+
const pathway = payload.pathway;
|
25
|
+
// 2. Initialize OpenAI model with hideDataForTracing enabled
|
26
|
+
const { model, metadata, callbacks } = await (0, openai_1.createOpenAIModel)({
|
27
|
+
settings: payload.settings,
|
28
|
+
helpers,
|
24
29
|
payload,
|
30
|
+
modelType: constants_2.OPENAI_MODELS.GPT4o,
|
31
|
+
hideDataForTracing: true // Hide input and output data when tracing
|
25
32
|
});
|
26
33
|
// Fetch all forms in the current step
|
27
34
|
const formsData = await (0, awell_1.getAllFormsInCurrentStep)({
|
28
35
|
awellSdk: await helpers.awellSdk(),
|
29
36
|
pathwayId: pathway.id,
|
30
|
-
activityId: activity.id,
|
37
|
+
activityId: payload.activity.id,
|
31
38
|
});
|
32
39
|
// Get responses for all forms
|
33
40
|
const { result: allFormsResponseText } = (0, getFormResponseText_1.getResponsesForAllForms)({
|
34
41
|
formsData,
|
35
42
|
});
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
}
|
52
|
-
}
|
53
|
-
catch (error) {
|
54
|
-
console.error('Error summarizing forms:', error);
|
55
|
-
throw new Error('Error summarizing forms');
|
56
|
-
}
|
43
|
+
// Summarize all forms' responses
|
44
|
+
const summary = await (0, summarizeFormWithLLM_1.summarizeFormWithLLM)({
|
45
|
+
model,
|
46
|
+
formData: allFormsResponseText,
|
47
|
+
summaryFormat,
|
48
|
+
language,
|
49
|
+
disclaimerMessage: constants_1.DISCLAIMER_MSG_FORM,
|
50
|
+
metadata,
|
51
|
+
callbacks // Add callbacks here
|
52
|
+
});
|
53
|
+
// Disclaimer is now handled within summarizeFormWithLLM
|
54
|
+
const htmlSummary = await (0, utils_1.markdownToHtml)(summary);
|
55
|
+
await onComplete({
|
56
|
+
data_points: {
|
57
|
+
summary: htmlSummary,
|
58
|
+
},
|
59
|
+
});
|
57
60
|
},
|
58
61
|
};
|
59
62
|
//# sourceMappingURL=summarizeFormsInStep.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"summarizeFormsInStep.js","sourceRoot":"","sources":["../../../../../extensions/shelly/actions/summarizeFormsInStep/summarizeFormsInStep.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,
|
1
|
+
{"version":3,"file":"summarizeFormsInStep.js","sourceRoot":"","sources":["../../../../../extensions/shelly/actions/summarizeFormsInStep/summarizeFormsInStep.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,qCAAqE;AACrE,uEAAuE;AACvE,yEAAqE;AACrE,mDAAyD;AACzD,qDAAoE;AACpE,iDAAsD;AACtD,2DAAkE;AAClE,wEAAwE;AAG3D,QAAA,oBAAoB,GAI7B;IACF,GAAG,EAAE,sBAAsB;IAC3B,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,2DAA2D;IACxE,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,UAAU,EAAV,mBAAU;IACV,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,EAAiB,EAAE;QAC1E,2BAA2B;QAC3B,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,+BAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;QAChF,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAA;QAE/B,6DAA6D;QAC7D,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,MAAM,IAAA,0BAAiB,EAAC;YAC7D,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,OAAO;YACP,OAAO;YACP,SAAS,EAAE,yBAAa,CAAC,KAAK;YAC9B,kBAAkB,EAAE,IAAI,CAAE,0CAA0C;SACrE,CAAC,CAAA;QAEF,sCAAsC;QACtC,MAAM,SAAS,GAAG,MAAM,IAAA,gCAAwB,EAAC;YAC/C,QAAQ,EAAE,MAAM,OAAO,CAAC,QAAQ,EAAE;YAClC,SAAS,EAAE,OAAO,CAAC,EAAE;YACrB,UAAU,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE;SAChC,CAAC,CAAA;QAEF,8BAA8B;QAC9B,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,GAAG,IAAA,6CAAuB,EAAC;YAC/D,SAAS;SACV,CAAC,CAAA;QAEF,iCAAiC;QACjC,MAAM,OAAO,GAAG,MAAM,IAAA,2CAAoB,EAAC;YACzC,KAAK;YACL,QAAQ,EAAE,oBAAoB;YAC9B,aAAa;YACb,QAAQ;YACR,iBAAiB,EAAE,+BAAmB;YACtC,QAAQ;YACR,SAAS,CAAE,qBAAqB;SACjC,CAAC,CAAA;QAEF,wDAAwD;QACxD,MAAM,WAAW,GAAG,MAAM,IAAA,sBAAc,EAAC,OAAO,CAAC,CAAA;QAEjD,MAAM,UAAU,CAAC;YACf,WAAW,EAAE;gBACX,OAAO,EAAE,WAAW;aACrB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
|
@@ -6,17 +6,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.shelly = void 0;
|
7
7
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
8
8
|
const actions_1 = __importDefault(require("./actions"));
|
9
|
-
const settings_1 = require("./settings");
|
10
9
|
exports.shelly = {
|
11
10
|
key: 'shelly',
|
12
|
-
title: 'Shelly (
|
11
|
+
title: 'Shelly (Beta)',
|
13
12
|
description: 'Library of AI-powered actions',
|
14
13
|
icon_url: 'https://res.cloudinary.com/da7x4rzl4/image/upload/v1726037275/Awell%20Extensions/shelly_logo.png',
|
15
14
|
category: extensions_core_1.Category.WORKFLOW,
|
16
15
|
author: {
|
17
16
|
authorType: extensions_core_1.AuthorType.AWELL,
|
18
17
|
},
|
19
|
-
settings:
|
18
|
+
settings: {},
|
20
19
|
actions: actions_1.default,
|
21
20
|
};
|
22
21
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/shelly/index.ts"],"names":[],"mappings":";;;;;;AAAA,mEAIsC;AACtC,wDAA+B;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/shelly/index.ts"],"names":[],"mappings":";;;;;;AAAA,mEAIsC;AACtC,wDAA+B;AAElB,QAAA,MAAM,GAAc;IAC/B,GAAG,EAAE,QAAQ;IACb,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,+BAA+B;IAC5C,QAAQ,EACN,kGAAkG;IACpG,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAP,iBAAO;CACR,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../../../extensions/shelly/lib/summarizeFormWithLLM/prompt.ts"],"names":[],"mappings":";;;AAAA,qDAA4D;AAE/C,QAAA,wBAAwB,GAAG,4BAAkB,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEvE,CAAC,CAAA;AAEW,QAAA,yBAAyB,GAAG,4BAAkB,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDxE,CAAC,CAAA"}
|
@@ -1,8 +1,29 @@
|
|
1
1
|
import { type ChatOpenAI } from '@langchain/openai';
|
2
|
-
|
3
|
-
|
2
|
+
import { type AIActionMetadata } from '../../../../src/lib/llm/openai/types';
|
3
|
+
import type { BaseCallbackHandler } from "@langchain/core/callbacks/base";
|
4
|
+
/**
|
5
|
+
* Uses LLM to summarize form data in a specified format and language.
|
6
|
+
* The function follows these steps:
|
7
|
+
* 1. Formats prompt with form data and preferences
|
8
|
+
* 2. Runs LLM with appropriate system prompt
|
9
|
+
* 3. Returns formatted summary with disclaimer
|
10
|
+
*
|
11
|
+
* @example
|
12
|
+
* const result = await summarizeFormWithLLM({
|
13
|
+
* model,
|
14
|
+
* formData: "Name: John Doe\nAge: 30\n...",
|
15
|
+
* summaryFormat: "Bullet-points",
|
16
|
+
* language: "English",
|
17
|
+
* disclaimerMessage: "AI generated...",
|
18
|
+
* metadata: { ... }
|
19
|
+
* })
|
20
|
+
*/
|
21
|
+
export declare const summarizeFormWithLLM: ({ model, formData, summaryFormat, language, disclaimerMessage, metadata, callbacks, }: {
|
22
|
+
model: ChatOpenAI;
|
4
23
|
formData: string;
|
5
24
|
summaryFormat: string;
|
6
25
|
language: string;
|
7
26
|
disclaimerMessage: string;
|
27
|
+
metadata: AIActionMetadata;
|
28
|
+
callbacks?: BaseCallbackHandler[];
|
8
29
|
}) => Promise<string>;
|
@@ -1,20 +1,44 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.summarizeFormWithLLM = void 0;
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
const prompt_1 = require("./prompt");
|
5
|
+
/**
|
6
|
+
* Uses LLM to summarize form data in a specified format and language.
|
7
|
+
* The function follows these steps:
|
8
|
+
* 1. Formats prompt with form data and preferences
|
9
|
+
* 2. Runs LLM with appropriate system prompt
|
10
|
+
* 3. Returns formatted summary with disclaimer
|
11
|
+
*
|
12
|
+
* @example
|
13
|
+
* const result = await summarizeFormWithLLM({
|
14
|
+
* model,
|
15
|
+
* formData: "Name: John Doe\nAge: 30\n...",
|
16
|
+
* summaryFormat: "Bullet-points",
|
17
|
+
* language: "English",
|
18
|
+
* disclaimerMessage: "AI generated...",
|
19
|
+
* metadata: { ... }
|
20
|
+
* })
|
21
|
+
*/
|
22
|
+
const summarizeFormWithLLM = async ({ model, formData, summaryFormat, language, disclaimerMessage, metadata, callbacks, }) => {
|
23
|
+
const systemPrompt = summaryFormat === 'Bullet-points' ? prompt_1.systemPromptBulletPoints :
|
24
|
+
summaryFormat === 'Text paragraph' ? prompt_1.systemPromptTextParagraph :
|
25
|
+
prompt_1.systemPromptBulletPoints; // Default to bullet points if unknown format
|
9
26
|
const prompt = await systemPrompt.format({
|
10
27
|
language,
|
11
28
|
input: formData,
|
12
29
|
disclaimerMessage,
|
13
30
|
});
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
31
|
+
try {
|
32
|
+
const result = await model.invoke(prompt, {
|
33
|
+
metadata,
|
34
|
+
runName: 'ShellySummarizeForm',
|
35
|
+
callbacks
|
36
|
+
});
|
37
|
+
return result.content;
|
38
|
+
}
|
39
|
+
catch (error) {
|
40
|
+
throw new Error('Failed to generate form summary');
|
41
|
+
}
|
18
42
|
};
|
19
43
|
exports.summarizeFormWithLLM = summarizeFormWithLLM;
|
20
44
|
//# sourceMappingURL=summarizeFormWithLLM.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"summarizeFormWithLLM.js","sourceRoot":"","sources":["../../../../../extensions/shelly/lib/summarizeFormWithLLM/summarizeFormWithLLM.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"summarizeFormWithLLM.js","sourceRoot":"","sources":["../../../../../extensions/shelly/lib/summarizeFormWithLLM/summarizeFormWithLLM.ts"],"names":[],"mappings":";;;AAAA,qCAA8E;AAK9E;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,oBAAoB,GAAG,KAAK,EAAE,EACzC,KAAK,EACL,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,SAAS,GASV,EAAmB,EAAE;IACpB,MAAM,YAAY,GAAG,aAAa,KAAK,eAAe,CAAC,CAAC,CAAC,iCAAwB,CAAC,CAAC;QAC/D,aAAa,KAAK,gBAAgB,CAAC,CAAC,CAAC,kCAAyB,CAAC,CAAC;YAChE,iCAAwB,CAAA,CAAC,6CAA6C;IAE1F,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC;QACvC,QAAQ;QACR,KAAK,EAAE,QAAQ;QACf,iBAAiB;KAClB,CAAC,CAAA;IAEF,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,MAAM,CAC/B,MAAM,EACN;YACE,QAAQ;YACR,OAAO,EAAE,qBAAqB;YAC9B,SAAS;SACV,CACF,CAAA;QAED,OAAO,MAAM,CAAC,OAAiB,CAAA;IACjC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAA;IACpD,CAAC;AACH,CAAC,CAAA;AAzCY,QAAA,oBAAoB,wBAyChC"}
|
@@ -1,16 +1,12 @@
|
|
1
1
|
import { type NewActivityPayload, type Pathway, type Patient } from '@awell-health/extensions-core';
|
2
2
|
import z from 'zod';
|
3
|
-
import { SettingsValidationSchema } from '../settings';
|
4
|
-
import { ChatOpenAI } from '@langchain/openai';
|
5
3
|
import { type Activity } from '@awell-health/extensions-core/dist/types/Activity';
|
6
4
|
type ValidatePayloadAndCreateSdk = <T extends z.ZodTypeAny, P extends NewActivityPayload<any, any>>(args: {
|
7
5
|
fieldsSchema: T;
|
8
6
|
payload: P;
|
9
7
|
}) => Promise<{
|
10
|
-
ChatModelGPT4oMini: ChatOpenAI;
|
11
|
-
ChatModelGPT4o: ChatOpenAI;
|
12
8
|
fields: z.infer<(typeof args)['fieldsSchema']>;
|
13
|
-
settings:
|
9
|
+
settings: Record<string, never>;
|
14
10
|
pathway: Pathway;
|
15
11
|
patient: Patient;
|
16
12
|
activity: Activity;
|
@@ -6,37 +6,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.validatePayloadAndCreateSdk = void 0;
|
7
7
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
8
8
|
const zod_1 = __importDefault(require("zod"));
|
9
|
-
const settings_1 = require("../settings");
|
10
|
-
const openai_1 = require("@langchain/openai");
|
11
9
|
const validatePayloadAndCreateSdk = async ({ fieldsSchema, payload, }) => {
|
12
10
|
const { settings, fields } = (0, extensions_core_1.validate)({
|
13
11
|
schema: zod_1.default.object({
|
14
12
|
fields: fieldsSchema,
|
15
|
-
settings:
|
16
|
-
pathway: zod_1.default.object({
|
13
|
+
settings: zod_1.default.object({}).strict(),
|
14
|
+
pathway: zod_1.default.object({
|
15
|
+
id: zod_1.default.string(),
|
16
|
+
definition_id: zod_1.default.string(),
|
17
|
+
}),
|
17
18
|
activity: zod_1.default.object({ id: zod_1.default.string() }),
|
18
19
|
patient: zod_1.default.object({ id: zod_1.default.string() }),
|
19
20
|
}),
|
20
21
|
payload,
|
21
22
|
});
|
22
23
|
const { patient, pathway, activity } = payload;
|
23
|
-
const ChatModelGPT4oMini = new openai_1.ChatOpenAI({
|
24
|
-
modelName: 'gpt-4o-mini',
|
25
|
-
openAIApiKey: settings.openAiApiKey,
|
26
|
-
temperature: 0, // To ensure consistency
|
27
|
-
maxRetries: 3,
|
28
|
-
timeout: 10000,
|
29
|
-
});
|
30
|
-
const ChatModelGPT4o = new openai_1.ChatOpenAI({
|
31
|
-
modelName: 'gpt-4o',
|
32
|
-
openAIApiKey: settings.openAiApiKey,
|
33
|
-
temperature: 0, // To ensure consistency
|
34
|
-
maxRetries: 3,
|
35
|
-
timeout: 10000,
|
36
|
-
});
|
37
24
|
return {
|
38
|
-
ChatModelGPT4o,
|
39
|
-
ChatModelGPT4oMini,
|
40
25
|
fields,
|
41
26
|
settings,
|
42
27
|
patient,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validatePayloadAndCreateSdk.js","sourceRoot":"","sources":["../../../../extensions/shelly/lib/validatePayloadAndCreateSdk.ts"],"names":[],"mappings":";;;;;;AAAA,mEAKsC;AACtC,8CAAmB;
|
1
|
+
{"version":3,"file":"validatePayloadAndCreateSdk.js","sourceRoot":"","sources":["../../../../extensions/shelly/lib/validatePayloadAndCreateSdk.ts"],"names":[],"mappings":";;;;;;AAAA,mEAKsC;AACtC,8CAAmB;AAiBZ,MAAM,2BAA2B,GAAgC,KAAK,EAAE,EAC7E,YAAY,EACZ,OAAO,GACR,EAAE,EAAE;IACH,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAA,0BAAQ,EAAC;QACpC,MAAM,EAAE,aAAC,CAAC,MAAM,CAAC;YACf,MAAM,EAAE,YAAY;YACpB,QAAQ,EAAE,aAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;YAC/B,OAAO,EAAE,aAAC,CAAC,MAAM,CAAC;gBAChB,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE;gBACd,aAAa,EAAE,aAAC,CAAC,MAAM,EAAE;aAC1B,CAAC;YACF,QAAQ,EAAE,aAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE,EAAE,CAAC;YACtC,OAAO,EAAE,aAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE,EAAE,CAAC;SACtC,CAAC;QACF,OAAO;KACR,CAAC,CAAA;IAEF,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAA;IAE9C,OAAO;QACL,MAAM;QACN,QAAQ;QACR,OAAO;QACP,OAAO;QACP,QAAQ;KACT,CAAA;AACH,CAAC,CAAA;AA3BY,QAAA,2BAA2B,+BA2BvC"}
|
@@ -65,16 +65,16 @@ export declare const FieldsValidationSchema: z.ZodObject<{
|
|
65
65
|
content: string;
|
66
66
|
completed?: boolean | undefined;
|
67
67
|
resourceType?: ResourceType | undefined;
|
68
|
-
dueDate?: string | undefined;
|
69
68
|
resourceId?: number | undefined;
|
69
|
+
dueDate?: string | undefined;
|
70
70
|
ownerId?: number | undefined;
|
71
71
|
remindAt?: string | undefined;
|
72
72
|
}, {
|
73
73
|
content: string;
|
74
74
|
completed?: boolean | undefined;
|
75
75
|
resourceType?: "" | ResourceType | undefined;
|
76
|
-
dueDate?: "" | Date | undefined;
|
77
76
|
resourceId?: number | "" | undefined;
|
77
|
+
dueDate?: "" | Date | undefined;
|
78
78
|
ownerId?: number | "" | undefined;
|
79
79
|
remindAt?: "" | Date | undefined;
|
80
80
|
}>;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Status.schema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Appointment/Status.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,YAAY,GAAG,OAAC,CAAC,IAAI,CAAC;IACjC,UAAU;IACV,SAAS;IACT,QAAQ;IACR,SAAS;IACT,WAAW;IACX,WAAW;IACX,QAAQ;IACR,kBAAkB;IAClB,YAAY;IACZ,UAAU;CACX,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Appointment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Gender.schema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Patient/Gender.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,YAAY,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Patient/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B"}
|
@@ -1,3 +1,2 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare const ServiceRequestIntentSchema: z.ZodEnum<["proposal", "plan", "directive", "order", "original-order", "reflex-order", "filler-order", "instance-order", "option"]>;
|
3
|
-
export declare const TaskIntentSchema: z.ZodEnum<["unknown", "proposal", "plan", "order", "original-order", "reflex-order", "filler-order", "instance-order", "option"]>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.ServiceRequestIntentSchema = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
exports.ServiceRequestIntentSchema = zod_1.z.enum([
|
6
6
|
'proposal',
|
@@ -13,15 +13,4 @@ exports.ServiceRequestIntentSchema = zod_1.z.enum([
|
|
13
13
|
'instance-order',
|
14
14
|
'option',
|
15
15
|
]);
|
16
|
-
|
17
|
-
'unknown',
|
18
|
-
'proposal',
|
19
|
-
'plan',
|
20
|
-
'order',
|
21
|
-
'original-order',
|
22
|
-
'reflex-order',
|
23
|
-
'filler-order',
|
24
|
-
'instance-order',
|
25
|
-
'option',
|
26
|
-
]);
|
27
|
-
//# sourceMappingURL=IntentSchema.js.map
|
16
|
+
//# sourceMappingURL=Intent.schema.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Intent.schema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/ServiceRequest/Intent.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,0BAA0B,GAAG,OAAC,CAAC,IAAI,CAAC;IAC/C,UAAU;IACV,MAAM;IACN,WAAW;IACX,OAAO;IACP,gBAAgB;IAChB,cAAc;IACd,cAAc;IACd,gBAAgB;IAChB,QAAQ;CACT,CAAC,CAAA"}
|
@@ -3,4 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PrioritySchema = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
exports.PrioritySchema = zod_1.z.enum(['routine', 'urgent', 'asap', 'stat']);
|
6
|
-
//# sourceMappingURL=
|
6
|
+
//# sourceMappingURL=Priority.schema.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Priority.schema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/ServiceRequest/Priority.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ServiceRequestStatusSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.ServiceRequestStatusSchema = zod_1.z.enum([
|
6
|
+
'draft',
|
7
|
+
'active',
|
8
|
+
'on-hold',
|
9
|
+
'revoked',
|
10
|
+
'completed',
|
11
|
+
'entered-in-error',
|
12
|
+
'unknown',
|
13
|
+
]);
|
14
|
+
//# sourceMappingURL=Status.schema.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Status.schema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/ServiceRequest/Status.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,0BAA0B,GAAG,OAAC,CAAC,IAAI,CAAC;IAC/C,OAAO;IACP,QAAQ;IACR,SAAS;IACT,SAAS;IACT,WAAW;IACX,kBAAkB;IAClB,SAAS;CACV,CAAC,CAAA"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./Intent.schema"), exports);
|
18
|
+
__exportStar(require("./Priority.schema"), exports);
|
19
|
+
__exportStar(require("./Status.schema"), exports);
|
20
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/ServiceRequest/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B;AAC/B,oDAAiC;AACjC,kDAA+B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"PeriodSchema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Shared/PeriodSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './PeriodSchema';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./PeriodSchema"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Shared/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.TaskIntentSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.TaskIntentSchema = zod_1.z.enum([
|
6
|
+
'unknown',
|
7
|
+
'proposal',
|
8
|
+
'plan',
|
9
|
+
'order',
|
10
|
+
'original-order',
|
11
|
+
'reflex-order',
|
12
|
+
'filler-order',
|
13
|
+
'instance-order',
|
14
|
+
'option',
|
15
|
+
]);
|
16
|
+
//# sourceMappingURL=IntentSchema.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IntentSchema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Task/IntentSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,gBAAgB,GAAG,OAAC,CAAC,IAAI,CAAC;IACrC,SAAS;IACT,UAAU;IACV,MAAM;IACN,OAAO;IACP,gBAAgB;IAChB,cAAc;IACd,cAAc;IACd,gBAAgB;IAChB,QAAQ;CACT,CAAC,CAAA"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PrioritySchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.PrioritySchema = zod_1.z.enum(['routine', 'urgent', 'asap', 'stat']);
|
6
|
+
//# sourceMappingURL=Priority.schema.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Priority.schema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Task/Priority.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA"}
|
@@ -1,3 +1,2 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
export declare const ServiceRequestStatusSchema: z.ZodEnum<["draft", "active", "on-hold", "revoked", "completed", "entered-in-error", "unknown"]>;
|
3
2
|
export declare const TaskStatusSchema: z.ZodEnum<["draft", "requested", "received", "accepted", "rejected", "ready", "cancelled", "in-progress", "on-hold", "failed", "completed", "entered-in-error"]>;
|
@@ -1,16 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TaskStatusSchema =
|
3
|
+
exports.TaskStatusSchema = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
exports.ServiceRequestStatusSchema = zod_1.z.enum([
|
6
|
-
'draft',
|
7
|
-
'active',
|
8
|
-
'on-hold',
|
9
|
-
'revoked',
|
10
|
-
'completed',
|
11
|
-
'entered-in-error',
|
12
|
-
'unknown',
|
13
|
-
]);
|
14
5
|
exports.TaskStatusSchema = zod_1.z.enum([
|
15
6
|
'draft',
|
16
7
|
'requested',
|
@@ -25,4 +16,4 @@ exports.TaskStatusSchema = zod_1.z.enum([
|
|
25
16
|
'completed',
|
26
17
|
'entered-in-error',
|
27
18
|
]);
|
28
|
-
//# sourceMappingURL=
|
19
|
+
//# sourceMappingURL=Status.schema.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Status.schema.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Task/Status.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,gBAAgB,GAAG,OAAC,CAAC,IAAI,CAAC;IACrC,OAAO;IACP,WAAW;IACX,UAAU;IACV,UAAU;IACV,UAAU;IACV,OAAO;IACP,WAAW;IACX,aAAa;IACb,SAAS;IACT,QAAQ;IACR,WAAW;IACX,kBAAkB;CACnB,CAAC,CAAA"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./IntentSchema"), exports);
|
18
|
+
__exportStar(require("./Status.schema"), exports);
|
19
|
+
__exportStar(require("./Priority.schema"), exports);
|
20
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/fhir/schemas/Task/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,kDAA+B;AAC/B,oDAAiC"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/**
|
2
|
+
* Default configuration settings for OpenAI model calls.
|
3
|
+
* - temperature: 0 (most deterministic outputs)
|
4
|
+
* - maxRetries: 3 (automatic retry on transient failures)
|
5
|
+
* - timeout: 10000ms (10 second timeout for responses)
|
6
|
+
*/
|
7
|
+
export declare const OPENAI_CONFIG: {
|
8
|
+
readonly temperature: 0;
|
9
|
+
readonly maxRetries: 3;
|
10
|
+
readonly timeout: 10000;
|
11
|
+
};
|
12
|
+
/**
|
13
|
+
* Simplified model aliases for easier reference in code.
|
14
|
+
* Use these constants instead of raw strings when specifying models.
|
15
|
+
*/
|
16
|
+
export declare const OPENAI_MODELS: {
|
17
|
+
readonly GPT4o: "gpt-4o";
|
18
|
+
readonly GPT4oMini: "gpt-4o-mini";
|
19
|
+
};
|
20
|
+
/**
|
21
|
+
* Maps model aliases to specific versioned model names.
|
22
|
+
* Always use versioned snapshots rather than base model names to ensure
|
23
|
+
* consistent behavior over time as models are updated.
|
24
|
+
*/
|
25
|
+
export declare const MODEL_VERSIONS: {
|
26
|
+
readonly "gpt-4o": "gpt-4o-2024-08-06";
|
27
|
+
readonly "gpt-4o-mini": "gpt-4o-mini-2024-07-18";
|
28
|
+
};
|