@tryvital/vital-node 3.1.12 → 3.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/activity/client/Client.js +2 -2
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +1 -0
- package/api/resources/insurance/client/Client.js +2 -2
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.d.ts +18 -0
- package/api/resources/labTests/client/Client.js +193 -24
- package/api/resources/labTests/client/requests/LabTestsGetLabelsPdfRequest.d.ts +13 -0
- package/api/resources/labTests/client/requests/LabTestsGetLabelsPdfRequest.js +5 -0
- package/api/resources/labTests/client/requests/PostOrderFhir.d.ts +9 -0
- package/api/resources/labTests/client/requests/PostOrderFhir.js +5 -0
- package/api/resources/labTests/client/requests/index.d.ts +2 -0
- package/api/resources/link/client/Client.js +14 -14
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.d.ts +2 -1
- package/api/resources/providers/client/Client.js +24 -6
- package/api/resources/providers/client/index.d.ts +1 -1
- package/api/resources/providers/client/index.js +15 -0
- package/api/resources/providers/client/requests/ProvidersGetAllRequest.d.ts +10 -0
- package/api/resources/providers/client/requests/ProvidersGetAllRequest.js +5 -0
- package/api/resources/providers/client/requests/index.d.ts +1 -0
- package/api/resources/providers/client/requests/index.js +2 -0
- package/api/resources/sleep/client/Client.js +4 -4
- package/api/resources/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +12 -12
- package/api/resources/vitals/client/Client.js +50 -50
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/Addres.d.ts +12 -0
- package/api/types/Addres.js +5 -0
- package/api/types/AnswerItem.d.ts +6 -0
- package/api/types/AnswerItem.js +5 -0
- package/api/types/Beneficiary.d.ts +6 -0
- package/api/types/Beneficiary.js +5 -0
- package/api/types/CodingItem1.d.ts +7 -0
- package/api/types/CodingItem1.js +5 -0
- package/api/types/High.d.ts +6 -0
- package/api/types/High.js +5 -0
- package/api/types/HistoricalPullStatus.d.ts +2 -1
- package/api/types/HistoricalPullStatus.js +1 -0
- package/api/types/HistoricalPullTimeline.d.ts +8 -0
- package/api/types/HistoricalPullTimeline.js +5 -0
- package/api/types/IdentifierItem1.d.ts +7 -0
- package/api/types/IdentifierItem1.js +5 -0
- package/api/types/InterpretationItem.d.ts +7 -0
- package/api/types/InterpretationItem.js +5 -0
- package/api/types/LabResultsFhir.d.ts +9 -0
- package/api/types/LabResultsFhir.js +5 -0
- package/api/types/Low.d.ts +6 -0
- package/api/types/Low.js +5 -0
- package/api/types/Observation.d.ts +16 -0
- package/api/types/Observation.js +5 -0
- package/api/types/ObservationEffectiveDateTime.d.ts +4 -0
- package/api/types/ObservationEffectiveDateTime.js +5 -0
- package/api/types/ObservationIssued.d.ts +4 -0
- package/api/types/ObservationIssued.js +5 -0
- package/api/types/Patient.d.ts +10 -0
- package/api/types/Patient.js +5 -0
- package/api/types/PatientBirthDate.d.ts +4 -0
- package/api/types/PatientBirthDate.js +5 -0
- package/api/types/PayorItem.d.ts +6 -0
- package/api/types/PayorItem.js +5 -0
- package/api/types/Period.d.ts +6 -0
- package/api/types/Period.js +5 -0
- package/api/types/PostOrderCoverage.d.ts +14 -0
- package/api/types/PostOrderCoverage.js +5 -0
- package/api/types/PostOrderPatient.d.ts +12 -0
- package/api/types/PostOrderPatient.js +5 -0
- package/api/types/PostOrderPatientBirthDate.d.ts +4 -0
- package/api/types/PostOrderPatientBirthDate.js +5 -0
- package/api/types/PostOrderPhysician.d.ts +11 -0
- package/api/types/PostOrderPhysician.js +5 -0
- package/api/types/PostOrderQuestionnaireResponse.d.ts +10 -0
- package/api/types/PostOrderQuestionnaireResponse.js +5 -0
- package/api/types/PostOrderServiceRequest.d.ts +13 -0
- package/api/types/PostOrderServiceRequest.js +5 -0
- package/api/types/Priority.d.ts +13 -0
- package/api/types/Priority.js +12 -0
- package/api/types/QualificationItem.d.ts +9 -0
- package/api/types/QualificationItem.js +5 -0
- package/api/types/QuestionaryItem.d.ts +9 -0
- package/api/types/QuestionaryItem.js +5 -0
- package/api/types/ReferenceRangeItem.d.ts +8 -0
- package/api/types/ReferenceRangeItem.js +5 -0
- package/api/types/Relationship.d.ts +7 -0
- package/api/types/Relationship.js +5 -0
- package/api/types/Requester.d.ts +7 -0
- package/api/types/Requester.js +5 -0
- package/api/types/SingleHistoricalPullStatistics.d.ts +1 -0
- package/api/types/Subject.d.ts +7 -0
- package/api/types/Subject.js +5 -0
- package/api/types/TelecomItem.d.ts +8 -0
- package/api/types/TelecomItem.js +5 -0
- package/api/types/ValueQuantity.d.ts +8 -0
- package/api/types/ValueQuantity.js +5 -0
- package/api/types/ValueRange.d.ts +8 -0
- package/api/types/ValueRange.js +5 -0
- package/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirCode.d.ts +7 -0
- package/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirCode.js +5 -0
- package/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirCodingItem.d.ts +8 -0
- package/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirCodingItem.js +5 -0
- package/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirEntryItem.d.ts +7 -0
- package/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirEntryItem.js +5 -0
- package/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirEntryItemResource.d.ts +5 -0
- package/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirEntryItemResource.js +5 -0
- package/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirIdentifierItem.d.ts +6 -0
- package/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirIdentifierItem.js +5 -0
- package/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirNameItem.d.ts +6 -0
- package/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirNameItem.js +5 -0
- package/api/types/VitalCoreSchemasRequestSchemasOrdersCode.d.ts +7 -0
- package/api/types/VitalCoreSchemasRequestSchemasOrdersCode.js +5 -0
- package/api/types/VitalCoreSchemasRequestSchemasOrdersCodingItem.d.ts +8 -0
- package/api/types/VitalCoreSchemasRequestSchemasOrdersCodingItem.js +5 -0
- package/api/types/VitalCoreSchemasRequestSchemasOrdersEntryItem.d.ts +7 -0
- package/api/types/VitalCoreSchemasRequestSchemasOrdersEntryItem.js +5 -0
- package/api/types/VitalCoreSchemasRequestSchemasOrdersEntryItemResource.d.ts +5 -0
- package/api/types/VitalCoreSchemasRequestSchemasOrdersEntryItemResource.js +5 -0
- package/api/types/VitalCoreSchemasRequestSchemasOrdersIdentifierItem.d.ts +7 -0
- package/api/types/VitalCoreSchemasRequestSchemasOrdersIdentifierItem.js +5 -0
- package/api/types/VitalCoreSchemasRequestSchemasOrdersNameItem.d.ts +8 -0
- package/api/types/VitalCoreSchemasRequestSchemasOrdersNameItem.js +5 -0
- package/api/types/index.d.ts +45 -0
- package/api/types/index.js +45 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +1 -0
- package/dist/api/resources/insurance/client/Client.js +2 -2
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.d.ts +18 -0
- package/dist/api/resources/labTests/client/Client.js +193 -24
- package/dist/api/resources/labTests/client/requests/LabTestsGetLabelsPdfRequest.d.ts +13 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetLabelsPdfRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/PostOrderFhir.d.ts +9 -0
- package/dist/api/resources/labTests/client/requests/PostOrderFhir.js +5 -0
- package/dist/api/resources/labTests/client/requests/index.d.ts +2 -0
- package/dist/api/resources/link/client/Client.js +14 -14
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.d.ts +2 -1
- package/dist/api/resources/providers/client/Client.js +24 -6
- package/dist/api/resources/providers/client/index.d.ts +1 -1
- package/dist/api/resources/providers/client/index.js +15 -0
- package/dist/api/resources/providers/client/requests/ProvidersGetAllRequest.d.ts +10 -0
- package/dist/api/resources/providers/client/requests/ProvidersGetAllRequest.js +5 -0
- package/dist/api/resources/providers/client/requests/index.d.ts +1 -0
- package/dist/api/resources/providers/client/requests/index.js +2 -0
- package/dist/api/resources/sleep/client/Client.js +4 -4
- package/dist/api/resources/team/client/Client.js +7 -7
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +12 -12
- package/dist/api/resources/vitals/client/Client.js +50 -50
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/Addres.d.ts +12 -0
- package/dist/api/types/Addres.js +5 -0
- package/dist/api/types/AnswerItem.d.ts +6 -0
- package/dist/api/types/AnswerItem.js +5 -0
- package/dist/api/types/Beneficiary.d.ts +6 -0
- package/dist/api/types/Beneficiary.js +5 -0
- package/dist/api/types/CodingItem1.d.ts +7 -0
- package/dist/api/types/CodingItem1.js +5 -0
- package/dist/api/types/High.d.ts +6 -0
- package/dist/api/types/High.js +5 -0
- package/dist/api/types/HistoricalPullStatus.d.ts +2 -1
- package/dist/api/types/HistoricalPullStatus.js +1 -0
- package/dist/api/types/HistoricalPullTimeline.d.ts +8 -0
- package/dist/api/types/HistoricalPullTimeline.js +5 -0
- package/dist/api/types/IdentifierItem1.d.ts +7 -0
- package/dist/api/types/IdentifierItem1.js +5 -0
- package/dist/api/types/InterpretationItem.d.ts +7 -0
- package/dist/api/types/InterpretationItem.js +5 -0
- package/dist/api/types/LabResultsFhir.d.ts +9 -0
- package/dist/api/types/LabResultsFhir.js +5 -0
- package/dist/api/types/Low.d.ts +6 -0
- package/dist/api/types/Low.js +5 -0
- package/dist/api/types/Observation.d.ts +16 -0
- package/dist/api/types/Observation.js +5 -0
- package/dist/api/types/ObservationEffectiveDateTime.d.ts +4 -0
- package/dist/api/types/ObservationEffectiveDateTime.js +5 -0
- package/dist/api/types/ObservationIssued.d.ts +4 -0
- package/dist/api/types/ObservationIssued.js +5 -0
- package/dist/api/types/Patient.d.ts +10 -0
- package/dist/api/types/Patient.js +5 -0
- package/dist/api/types/PatientBirthDate.d.ts +4 -0
- package/dist/api/types/PatientBirthDate.js +5 -0
- package/dist/api/types/PayorItem.d.ts +6 -0
- package/dist/api/types/PayorItem.js +5 -0
- package/dist/api/types/Period.d.ts +6 -0
- package/dist/api/types/Period.js +5 -0
- package/dist/api/types/PostOrderCoverage.d.ts +14 -0
- package/dist/api/types/PostOrderCoverage.js +5 -0
- package/dist/api/types/PostOrderPatient.d.ts +12 -0
- package/dist/api/types/PostOrderPatient.js +5 -0
- package/dist/api/types/PostOrderPatientBirthDate.d.ts +4 -0
- package/dist/api/types/PostOrderPatientBirthDate.js +5 -0
- package/dist/api/types/PostOrderPhysician.d.ts +11 -0
- package/dist/api/types/PostOrderPhysician.js +5 -0
- package/dist/api/types/PostOrderQuestionnaireResponse.d.ts +10 -0
- package/dist/api/types/PostOrderQuestionnaireResponse.js +5 -0
- package/dist/api/types/PostOrderServiceRequest.d.ts +13 -0
- package/dist/api/types/PostOrderServiceRequest.js +5 -0
- package/dist/api/types/Priority.d.ts +13 -0
- package/dist/api/types/Priority.js +12 -0
- package/dist/api/types/QualificationItem.d.ts +9 -0
- package/dist/api/types/QualificationItem.js +5 -0
- package/dist/api/types/QuestionaryItem.d.ts +9 -0
- package/dist/api/types/QuestionaryItem.js +5 -0
- package/dist/api/types/ReferenceRangeItem.d.ts +8 -0
- package/dist/api/types/ReferenceRangeItem.js +5 -0
- package/dist/api/types/Relationship.d.ts +7 -0
- package/dist/api/types/Relationship.js +5 -0
- package/dist/api/types/Requester.d.ts +7 -0
- package/dist/api/types/Requester.js +5 -0
- package/dist/api/types/SingleHistoricalPullStatistics.d.ts +1 -0
- package/dist/api/types/Subject.d.ts +7 -0
- package/dist/api/types/Subject.js +5 -0
- package/dist/api/types/TelecomItem.d.ts +8 -0
- package/dist/api/types/TelecomItem.js +5 -0
- package/dist/api/types/ValueQuantity.d.ts +8 -0
- package/dist/api/types/ValueQuantity.js +5 -0
- package/dist/api/types/ValueRange.d.ts +8 -0
- package/dist/api/types/ValueRange.js +5 -0
- package/dist/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirCode.d.ts +7 -0
- package/dist/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirCode.js +5 -0
- package/dist/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirCodingItem.d.ts +8 -0
- package/dist/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirCodingItem.js +5 -0
- package/dist/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirEntryItem.d.ts +7 -0
- package/dist/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirEntryItem.js +5 -0
- package/dist/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirEntryItemResource.d.ts +5 -0
- package/dist/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirEntryItemResource.js +5 -0
- package/dist/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirIdentifierItem.d.ts +6 -0
- package/dist/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirIdentifierItem.js +5 -0
- package/dist/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirNameItem.d.ts +6 -0
- package/dist/api/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirNameItem.js +5 -0
- package/dist/api/types/VitalCoreSchemasRequestSchemasOrdersCode.d.ts +7 -0
- package/dist/api/types/VitalCoreSchemasRequestSchemasOrdersCode.js +5 -0
- package/dist/api/types/VitalCoreSchemasRequestSchemasOrdersCodingItem.d.ts +8 -0
- package/dist/api/types/VitalCoreSchemasRequestSchemasOrdersCodingItem.js +5 -0
- package/dist/api/types/VitalCoreSchemasRequestSchemasOrdersEntryItem.d.ts +7 -0
- package/dist/api/types/VitalCoreSchemasRequestSchemasOrdersEntryItem.js +5 -0
- package/dist/api/types/VitalCoreSchemasRequestSchemasOrdersEntryItemResource.d.ts +5 -0
- package/dist/api/types/VitalCoreSchemasRequestSchemasOrdersEntryItemResource.js +5 -0
- package/dist/api/types/VitalCoreSchemasRequestSchemasOrdersIdentifierItem.d.ts +7 -0
- package/dist/api/types/VitalCoreSchemasRequestSchemasOrdersIdentifierItem.js +5 -0
- package/dist/api/types/VitalCoreSchemasRequestSchemasOrdersNameItem.d.ts +8 -0
- package/dist/api/types/VitalCoreSchemasRequestSchemasOrdersNameItem.js +5 -0
- package/dist/api/types/index.d.ts +45 -0
- package/dist/api/types/index.js +45 -0
- package/dist/serialization/resources/labTests/client/requests/PostOrderFhir.d.ts +15 -0
- package/dist/serialization/resources/labTests/client/requests/PostOrderFhir.js +36 -0
- package/dist/serialization/resources/labTests/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/labTests/client/requests/index.js +3 -1
- package/dist/serialization/types/Addres.d.ts +18 -0
- package/dist/serialization/types/Addres.js +39 -0
- package/dist/serialization/types/AnswerItem.d.ts +12 -0
- package/dist/serialization/types/AnswerItem.js +33 -0
- package/dist/serialization/types/Beneficiary.d.ts +12 -0
- package/dist/serialization/types/Beneficiary.js +33 -0
- package/dist/serialization/types/CodingItem1.d.ts +13 -0
- package/dist/serialization/types/CodingItem1.js +34 -0
- package/dist/serialization/types/High.d.ts +12 -0
- package/dist/serialization/types/High.js +33 -0
- package/dist/serialization/types/HistoricalPullStatus.d.ts +1 -1
- package/dist/serialization/types/HistoricalPullStatus.js +1 -1
- package/dist/serialization/types/HistoricalPullTimeline.d.ts +14 -0
- package/dist/serialization/types/HistoricalPullTimeline.js +35 -0
- package/dist/serialization/types/IdentifierItem1.d.ts +13 -0
- package/dist/serialization/types/IdentifierItem1.js +34 -0
- package/dist/serialization/types/InterpretationItem.d.ts +13 -0
- package/dist/serialization/types/InterpretationItem.js +34 -0
- package/dist/serialization/types/LabResultsFhir.d.ts +15 -0
- package/dist/serialization/types/LabResultsFhir.js +36 -0
- package/dist/serialization/types/Low.d.ts +12 -0
- package/dist/serialization/types/Low.js +33 -0
- package/dist/serialization/types/Observation.d.ts +28 -0
- package/dist/serialization/types/Observation.js +49 -0
- package/dist/serialization/types/ObservationEffectiveDateTime.d.ts +10 -0
- package/dist/serialization/types/ObservationEffectiveDateTime.js +31 -0
- package/dist/serialization/types/ObservationIssued.d.ts +10 -0
- package/dist/serialization/types/ObservationIssued.js +31 -0
- package/dist/serialization/types/Patient.d.ts +18 -0
- package/dist/serialization/types/Patient.js +39 -0
- package/dist/serialization/types/PatientBirthDate.d.ts +10 -0
- package/dist/serialization/types/PatientBirthDate.js +31 -0
- package/dist/serialization/types/PayorItem.d.ts +12 -0
- package/dist/serialization/types/PayorItem.js +33 -0
- package/dist/serialization/types/Period.d.ts +12 -0
- package/dist/serialization/types/Period.js +33 -0
- package/dist/serialization/types/PostOrderCoverage.d.ts +23 -0
- package/dist/serialization/types/PostOrderCoverage.js +44 -0
- package/dist/serialization/types/PostOrderPatient.d.ts +21 -0
- package/dist/serialization/types/PostOrderPatient.js +42 -0
- package/dist/serialization/types/PostOrderPatientBirthDate.d.ts +10 -0
- package/dist/serialization/types/PostOrderPatientBirthDate.js +31 -0
- package/dist/serialization/types/PostOrderPhysician.d.ts +20 -0
- package/dist/serialization/types/PostOrderPhysician.js +41 -0
- package/dist/serialization/types/PostOrderQuestionnaireResponse.d.ts +16 -0
- package/dist/serialization/types/PostOrderQuestionnaireResponse.js +37 -0
- package/dist/serialization/types/PostOrderServiceRequest.d.ts +22 -0
- package/dist/serialization/types/PostOrderServiceRequest.js +43 -0
- package/dist/serialization/types/Priority.d.ts +10 -0
- package/dist/serialization/types/Priority.js +36 -0
- package/dist/serialization/types/QualificationItem.d.ts +17 -0
- package/dist/serialization/types/QualificationItem.js +38 -0
- package/dist/serialization/types/QuestionaryItem.d.ts +15 -0
- package/dist/serialization/types/QuestionaryItem.js +36 -0
- package/dist/serialization/types/ReferenceRangeItem.d.ts +15 -0
- package/dist/serialization/types/ReferenceRangeItem.js +36 -0
- package/dist/serialization/types/Relationship.d.ts +13 -0
- package/dist/serialization/types/Relationship.js +34 -0
- package/dist/serialization/types/Requester.d.ts +13 -0
- package/dist/serialization/types/Requester.js +34 -0
- package/dist/serialization/types/SingleHistoricalPullStatistics.d.ts +2 -0
- package/dist/serialization/types/SingleHistoricalPullStatistics.js +2 -0
- package/dist/serialization/types/Subject.d.ts +13 -0
- package/dist/serialization/types/Subject.js +34 -0
- package/dist/serialization/types/TelecomItem.d.ts +14 -0
- package/dist/serialization/types/TelecomItem.js +35 -0
- package/dist/serialization/types/ValueQuantity.d.ts +14 -0
- package/dist/serialization/types/ValueQuantity.js +35 -0
- package/dist/serialization/types/ValueRange.d.ts +14 -0
- package/dist/serialization/types/ValueRange.js +35 -0
- package/dist/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirCode.d.ts +13 -0
- package/dist/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirCode.js +34 -0
- package/dist/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirCodingItem.d.ts +14 -0
- package/dist/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirCodingItem.js +35 -0
- package/dist/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirEntryItem.d.ts +13 -0
- package/dist/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirEntryItem.js +34 -0
- package/dist/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirEntryItemResource.d.ts +12 -0
- package/dist/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirEntryItemResource.js +33 -0
- package/dist/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirIdentifierItem.d.ts +12 -0
- package/dist/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirIdentifierItem.js +33 -0
- package/dist/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirNameItem.d.ts +12 -0
- package/dist/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirNameItem.js +33 -0
- package/dist/serialization/types/VitalCoreSchemasRequestSchemasOrdersCode.d.ts +13 -0
- package/dist/serialization/types/VitalCoreSchemasRequestSchemasOrdersCode.js +34 -0
- package/dist/serialization/types/VitalCoreSchemasRequestSchemasOrdersCodingItem.d.ts +14 -0
- package/dist/serialization/types/VitalCoreSchemasRequestSchemasOrdersCodingItem.js +35 -0
- package/dist/serialization/types/VitalCoreSchemasRequestSchemasOrdersEntryItem.d.ts +13 -0
- package/dist/serialization/types/VitalCoreSchemasRequestSchemasOrdersEntryItem.js +34 -0
- package/dist/serialization/types/VitalCoreSchemasRequestSchemasOrdersEntryItemResource.d.ts +15 -0
- package/dist/serialization/types/VitalCoreSchemasRequestSchemasOrdersEntryItemResource.js +42 -0
- package/dist/serialization/types/VitalCoreSchemasRequestSchemasOrdersIdentifierItem.d.ts +13 -0
- package/dist/serialization/types/VitalCoreSchemasRequestSchemasOrdersIdentifierItem.js +34 -0
- package/dist/serialization/types/VitalCoreSchemasRequestSchemasOrdersNameItem.d.ts +14 -0
- package/dist/serialization/types/VitalCoreSchemasRequestSchemasOrdersNameItem.js +35 -0
- package/dist/serialization/types/index.d.ts +45 -0
- package/dist/serialization/types/index.js +45 -0
- package/package.json +1 -1
- package/serialization/resources/labTests/client/requests/PostOrderFhir.d.ts +15 -0
- package/serialization/resources/labTests/client/requests/PostOrderFhir.js +36 -0
- package/serialization/resources/labTests/client/requests/index.d.ts +1 -0
- package/serialization/resources/labTests/client/requests/index.js +3 -1
- package/serialization/types/Addres.d.ts +18 -0
- package/serialization/types/Addres.js +39 -0
- package/serialization/types/AnswerItem.d.ts +12 -0
- package/serialization/types/AnswerItem.js +33 -0
- package/serialization/types/Beneficiary.d.ts +12 -0
- package/serialization/types/Beneficiary.js +33 -0
- package/serialization/types/CodingItem1.d.ts +13 -0
- package/serialization/types/CodingItem1.js +34 -0
- package/serialization/types/High.d.ts +12 -0
- package/serialization/types/High.js +33 -0
- package/serialization/types/HistoricalPullStatus.d.ts +1 -1
- package/serialization/types/HistoricalPullStatus.js +1 -1
- package/serialization/types/HistoricalPullTimeline.d.ts +14 -0
- package/serialization/types/HistoricalPullTimeline.js +35 -0
- package/serialization/types/IdentifierItem1.d.ts +13 -0
- package/serialization/types/IdentifierItem1.js +34 -0
- package/serialization/types/InterpretationItem.d.ts +13 -0
- package/serialization/types/InterpretationItem.js +34 -0
- package/serialization/types/LabResultsFhir.d.ts +15 -0
- package/serialization/types/LabResultsFhir.js +36 -0
- package/serialization/types/Low.d.ts +12 -0
- package/serialization/types/Low.js +33 -0
- package/serialization/types/Observation.d.ts +28 -0
- package/serialization/types/Observation.js +49 -0
- package/serialization/types/ObservationEffectiveDateTime.d.ts +10 -0
- package/serialization/types/ObservationEffectiveDateTime.js +31 -0
- package/serialization/types/ObservationIssued.d.ts +10 -0
- package/serialization/types/ObservationIssued.js +31 -0
- package/serialization/types/Patient.d.ts +18 -0
- package/serialization/types/Patient.js +39 -0
- package/serialization/types/PatientBirthDate.d.ts +10 -0
- package/serialization/types/PatientBirthDate.js +31 -0
- package/serialization/types/PayorItem.d.ts +12 -0
- package/serialization/types/PayorItem.js +33 -0
- package/serialization/types/Period.d.ts +12 -0
- package/serialization/types/Period.js +33 -0
- package/serialization/types/PostOrderCoverage.d.ts +23 -0
- package/serialization/types/PostOrderCoverage.js +44 -0
- package/serialization/types/PostOrderPatient.d.ts +21 -0
- package/serialization/types/PostOrderPatient.js +42 -0
- package/serialization/types/PostOrderPatientBirthDate.d.ts +10 -0
- package/serialization/types/PostOrderPatientBirthDate.js +31 -0
- package/serialization/types/PostOrderPhysician.d.ts +20 -0
- package/serialization/types/PostOrderPhysician.js +41 -0
- package/serialization/types/PostOrderQuestionnaireResponse.d.ts +16 -0
- package/serialization/types/PostOrderQuestionnaireResponse.js +37 -0
- package/serialization/types/PostOrderServiceRequest.d.ts +22 -0
- package/serialization/types/PostOrderServiceRequest.js +43 -0
- package/serialization/types/Priority.d.ts +10 -0
- package/serialization/types/Priority.js +36 -0
- package/serialization/types/QualificationItem.d.ts +17 -0
- package/serialization/types/QualificationItem.js +38 -0
- package/serialization/types/QuestionaryItem.d.ts +15 -0
- package/serialization/types/QuestionaryItem.js +36 -0
- package/serialization/types/ReferenceRangeItem.d.ts +15 -0
- package/serialization/types/ReferenceRangeItem.js +36 -0
- package/serialization/types/Relationship.d.ts +13 -0
- package/serialization/types/Relationship.js +34 -0
- package/serialization/types/Requester.d.ts +13 -0
- package/serialization/types/Requester.js +34 -0
- package/serialization/types/SingleHistoricalPullStatistics.d.ts +2 -0
- package/serialization/types/SingleHistoricalPullStatistics.js +2 -0
- package/serialization/types/Subject.d.ts +13 -0
- package/serialization/types/Subject.js +34 -0
- package/serialization/types/TelecomItem.d.ts +14 -0
- package/serialization/types/TelecomItem.js +35 -0
- package/serialization/types/ValueQuantity.d.ts +14 -0
- package/serialization/types/ValueQuantity.js +35 -0
- package/serialization/types/ValueRange.d.ts +14 -0
- package/serialization/types/ValueRange.js +35 -0
- package/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirCode.d.ts +13 -0
- package/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirCode.js +34 -0
- package/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirCodingItem.d.ts +14 -0
- package/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirCodingItem.js +35 -0
- package/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirEntryItem.d.ts +13 -0
- package/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirEntryItem.js +34 -0
- package/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirEntryItemResource.d.ts +12 -0
- package/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirEntryItemResource.js +33 -0
- package/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirIdentifierItem.d.ts +12 -0
- package/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirIdentifierItem.js +33 -0
- package/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirNameItem.d.ts +12 -0
- package/serialization/types/VitalCoreProvidersLabTestLabsSchemasResultsFhirNameItem.js +33 -0
- package/serialization/types/VitalCoreSchemasRequestSchemasOrdersCode.d.ts +13 -0
- package/serialization/types/VitalCoreSchemasRequestSchemasOrdersCode.js +34 -0
- package/serialization/types/VitalCoreSchemasRequestSchemasOrdersCodingItem.d.ts +14 -0
- package/serialization/types/VitalCoreSchemasRequestSchemasOrdersCodingItem.js +35 -0
- package/serialization/types/VitalCoreSchemasRequestSchemasOrdersEntryItem.d.ts +13 -0
- package/serialization/types/VitalCoreSchemasRequestSchemasOrdersEntryItem.js +34 -0
- package/serialization/types/VitalCoreSchemasRequestSchemasOrdersEntryItemResource.d.ts +15 -0
- package/serialization/types/VitalCoreSchemasRequestSchemasOrdersEntryItemResource.js +42 -0
- package/serialization/types/VitalCoreSchemasRequestSchemasOrdersIdentifierItem.d.ts +13 -0
- package/serialization/types/VitalCoreSchemasRequestSchemasOrdersIdentifierItem.js +34 -0
- package/serialization/types/VitalCoreSchemasRequestSchemasOrdersNameItem.d.ts +14 -0
- package/serialization/types/VitalCoreSchemasRequestSchemasOrdersNameItem.js +35 -0
- package/serialization/types/index.d.ts +45 -0
- package/serialization/types/index.js +45 -0
@@ -73,7 +73,7 @@ class Activity {
|
|
73
73
|
const _response = yield core.fetcher({
|
74
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${userId}`),
|
75
75
|
method: "GET",
|
76
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
76
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
77
77
|
contentType: "application/json",
|
78
78
|
queryParameters: _queryParams,
|
79
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -142,7 +142,7 @@ class Activity {
|
|
142
142
|
const _response = yield core.fetcher({
|
143
143
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${userId}/raw`),
|
144
144
|
method: "GET",
|
145
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
145
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
146
146
|
contentType: "application/json",
|
147
147
|
queryParameters: _queryParams,
|
148
148
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -73,7 +73,7 @@ class Body {
|
|
73
73
|
const _response = yield core.fetcher({
|
74
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${userId}`),
|
75
75
|
method: "GET",
|
76
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
76
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
77
77
|
contentType: "application/json",
|
78
78
|
queryParameters: _queryParams,
|
79
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -142,7 +142,7 @@ class Body {
|
|
142
142
|
const _response = yield core.fetcher({
|
143
143
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${userId}/raw`),
|
144
144
|
method: "GET",
|
145
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
145
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
146
146
|
contentType: "application/json",
|
147
147
|
queryParameters: _queryParams,
|
148
148
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -67,7 +67,7 @@ class Devices {
|
|
67
67
|
const _response = yield core.fetcher({
|
68
68
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/devices/${userId}/raw`),
|
69
69
|
method: "GET",
|
70
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
70
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
71
71
|
contentType: "application/json",
|
72
72
|
queryParameters: _queryParams,
|
73
73
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
package/api/resources/index.d.ts
CHANGED
@@ -25,6 +25,7 @@ export * from "./meal/client/requests";
|
|
25
25
|
export * from "./vitals/client/requests";
|
26
26
|
export * from "./user/client/requests";
|
27
27
|
export * from "./team/client/requests";
|
28
|
+
export * from "./providers/client/requests";
|
28
29
|
export * from "./introspect/client/requests";
|
29
30
|
export * from "./labTests/client/requests";
|
30
31
|
export * from "./testkit/client/requests";
|
package/api/resources/index.js
CHANGED
@@ -54,6 +54,7 @@ __exportStar(require("./meal/client/requests"), exports);
|
|
54
54
|
__exportStar(require("./vitals/client/requests"), exports);
|
55
55
|
__exportStar(require("./user/client/requests"), exports);
|
56
56
|
__exportStar(require("./team/client/requests"), exports);
|
57
|
+
__exportStar(require("./providers/client/requests"), exports);
|
57
58
|
__exportStar(require("./introspect/client/requests"), exports);
|
58
59
|
__exportStar(require("./labTests/client/requests"), exports);
|
59
60
|
__exportStar(require("./testkit/client/requests"), exports);
|
@@ -63,7 +63,7 @@ class Insurance {
|
|
63
63
|
const _response = yield core.fetcher({
|
64
64
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
|
65
65
|
method: "POST",
|
66
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
66
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
67
67
|
contentType: "application/json",
|
68
68
|
body: yield serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
69
69
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -125,7 +125,7 @@ class Insurance {
|
|
125
125
|
const _response = yield core.fetcher({
|
126
126
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/diagnosis"),
|
127
127
|
method: "GET",
|
128
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
128
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
129
129
|
contentType: "application/json",
|
130
130
|
queryParameters: _queryParams,
|
131
131
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -75,7 +75,7 @@ class Introspect {
|
|
75
75
|
const _response = yield core.fetcher({
|
76
76
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/resources"),
|
77
77
|
method: "GET",
|
78
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
79
79
|
contentType: "application/json",
|
80
80
|
queryParameters: _queryParams,
|
81
81
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -146,7 +146,7 @@ class Introspect {
|
|
146
146
|
const _response = yield core.fetcher({
|
147
147
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/historical_pull"),
|
148
148
|
method: "GET",
|
149
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
149
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
150
150
|
contentType: "application/json",
|
151
151
|
queryParameters: _queryParams,
|
152
152
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -189,6 +189,19 @@ export declare class LabTests {
|
|
189
189
|
* await vital.labTests.getResultRaw("order_id")
|
190
190
|
*/
|
191
191
|
getResultRaw(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.LabResultsRaw>;
|
192
|
+
/**
|
193
|
+
* Return both metadata and raw json test data
|
194
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
195
|
+
*
|
196
|
+
* @example
|
197
|
+
* await vital.labTests.getResultRawFhir("order_id")
|
198
|
+
*/
|
199
|
+
getResultRawFhir(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.LabResultsFhir>;
|
200
|
+
/**
|
201
|
+
* This endpoint returns the printed labels for the order.
|
202
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
203
|
+
*/
|
204
|
+
getLabelsPdf(orderId: string, request: Vital.LabTestsGetLabelsPdfRequest, requestOptions?: LabTests.RequestOptions): Promise<stream.Readable>;
|
192
205
|
/**
|
193
206
|
* GET requisition pdf for an order
|
194
207
|
* @throws {@link Vital.UnprocessableEntityError}
|
@@ -199,6 +212,11 @@ export declare class LabTests {
|
|
199
212
|
* @throws {@link Vital.UnprocessableEntityError}
|
200
213
|
*/
|
201
214
|
getOrder(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingOrder>;
|
215
|
+
/**
|
216
|
+
* POST create new order
|
217
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
218
|
+
*/
|
219
|
+
createOrderFhir(request: Vital.PostOrderFhir, requestOptions?: LabTests.RequestOptions): Promise<Vital.PostOrderResponse>;
|
202
220
|
/**
|
203
221
|
* POST create new order
|
204
222
|
* @throws {@link Vital.UnprocessableEntityError}
|
@@ -61,7 +61,7 @@ class LabTests {
|
|
61
61
|
const _response = yield core.fetcher({
|
62
62
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests"),
|
63
63
|
method: "GET",
|
64
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
64
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
65
65
|
contentType: "application/json",
|
66
66
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
67
67
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -114,7 +114,7 @@ class LabTests {
|
|
114
114
|
const _response = yield core.fetcher({
|
115
115
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests"),
|
116
116
|
method: "POST",
|
117
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
117
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
118
118
|
contentType: "application/json",
|
119
119
|
body: yield serializers.CreateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
120
120
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -191,7 +191,7 @@ class LabTests {
|
|
191
191
|
const _response = yield core.fetcher({
|
192
192
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/markers"),
|
193
193
|
method: "GET",
|
194
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
194
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
195
195
|
contentType: "application/json",
|
196
196
|
queryParameters: _queryParams,
|
197
197
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -256,7 +256,7 @@ class LabTests {
|
|
256
256
|
const _response = yield core.fetcher({
|
257
257
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${labTestId}/markers`),
|
258
258
|
method: "GET",
|
259
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
259
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
260
260
|
contentType: "application/json",
|
261
261
|
queryParameters: _queryParams,
|
262
262
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -314,7 +314,7 @@ class LabTests {
|
|
314
314
|
const _response = yield core.fetcher({
|
315
315
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${labId}/markers/${providerId}`),
|
316
316
|
method: "GET",
|
317
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
317
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
318
318
|
contentType: "application/json",
|
319
319
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
320
320
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -370,7 +370,7 @@ class LabTests {
|
|
370
370
|
const _response = yield core.fetcher({
|
371
371
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/labs"),
|
372
372
|
method: "GET",
|
373
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
373
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
374
374
|
contentType: "application/json",
|
375
375
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
376
376
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -417,7 +417,7 @@ class LabTests {
|
|
417
417
|
const _response = yield core.fetcher({
|
418
418
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${labTestId}`),
|
419
419
|
method: "GET",
|
420
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
420
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
421
421
|
contentType: "application/json",
|
422
422
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
423
423
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -480,7 +480,7 @@ class LabTests {
|
|
480
480
|
const _response = yield core.fetcher({
|
481
481
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/phlebotomy/appointment/availability"),
|
482
482
|
method: "POST",
|
483
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
483
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
484
484
|
contentType: "application/json",
|
485
485
|
body: yield serializers.UsAddress.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
486
486
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -540,7 +540,7 @@ class LabTests {
|
|
540
540
|
const _response = yield core.fetcher({
|
541
541
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/book`),
|
542
542
|
method: "POST",
|
543
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
543
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
544
544
|
contentType: "application/json",
|
545
545
|
body: yield serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
546
546
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -606,7 +606,7 @@ class LabTests {
|
|
606
606
|
const _response = yield core.fetcher({
|
607
607
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/request`),
|
608
608
|
method: "POST",
|
609
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
609
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
610
610
|
contentType: "application/json",
|
611
611
|
body: yield serializers.RequestAppointmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
612
612
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -666,7 +666,7 @@ class LabTests {
|
|
666
666
|
const _response = yield core.fetcher({
|
667
667
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/reschedule`),
|
668
668
|
method: "PATCH",
|
669
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
669
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
670
670
|
contentType: "application/json",
|
671
671
|
body: yield serializers.AppointmentRescheduleRequest.jsonOrThrow(request, {
|
672
672
|
unrecognizedObjectKeys: "strip",
|
@@ -728,7 +728,7 @@ class LabTests {
|
|
728
728
|
const _response = yield core.fetcher({
|
729
729
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/cancel`),
|
730
730
|
method: "PATCH",
|
731
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
731
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
732
732
|
contentType: "application/json",
|
733
733
|
body: yield serializers.AppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
734
734
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -785,7 +785,7 @@ class LabTests {
|
|
785
785
|
const _response = yield core.fetcher({
|
786
786
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/phlebotomy/appointment/cancellation-reasons"),
|
787
787
|
method: "GET",
|
788
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
788
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
789
789
|
contentType: "application/json",
|
790
790
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
791
791
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -832,7 +832,7 @@ class LabTests {
|
|
832
832
|
const _response = yield core.fetcher({
|
833
833
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment`),
|
834
834
|
method: "GET",
|
835
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
835
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
836
836
|
contentType: "application/json",
|
837
837
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
838
838
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -898,7 +898,7 @@ class LabTests {
|
|
898
898
|
const _response = yield core.fetcher({
|
899
899
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/area/info"),
|
900
900
|
method: "GET",
|
901
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
901
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
902
902
|
contentType: "application/json",
|
903
903
|
queryParameters: _queryParams,
|
904
904
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -953,7 +953,7 @@ class LabTests {
|
|
953
953
|
const _response = yield core.fetcher({
|
954
954
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/result/pdf`),
|
955
955
|
method: "GET",
|
956
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
956
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
957
957
|
contentType: "application/json",
|
958
958
|
responseType: "streaming",
|
959
959
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1007,7 +1007,7 @@ class LabTests {
|
|
1007
1007
|
const _response = yield core.fetcher({
|
1008
1008
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/result/metadata`),
|
1009
1009
|
method: "GET",
|
1010
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1010
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1011
1011
|
contentType: "application/json",
|
1012
1012
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1013
1013
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -1064,7 +1064,7 @@ class LabTests {
|
|
1064
1064
|
const _response = yield core.fetcher({
|
1065
1065
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/result`),
|
1066
1066
|
method: "GET",
|
1067
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1067
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1068
1068
|
contentType: "application/json",
|
1069
1069
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1070
1070
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -1108,6 +1108,120 @@ class LabTests {
|
|
1108
1108
|
}
|
1109
1109
|
});
|
1110
1110
|
}
|
1111
|
+
/**
|
1112
|
+
* Return both metadata and raw json test data
|
1113
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
1114
|
+
*
|
1115
|
+
* @example
|
1116
|
+
* await vital.labTests.getResultRawFhir("order_id")
|
1117
|
+
*/
|
1118
|
+
getResultRawFhir(orderId, requestOptions) {
|
1119
|
+
var _a;
|
1120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1121
|
+
const _response = yield core.fetcher({
|
1122
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/result/fhir`),
|
1123
|
+
method: "GET",
|
1124
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1125
|
+
contentType: "application/json",
|
1126
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1127
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1128
|
+
});
|
1129
|
+
if (_response.ok) {
|
1130
|
+
return yield serializers.LabResultsFhir.parseOrThrow(_response.body, {
|
1131
|
+
unrecognizedObjectKeys: "passthrough",
|
1132
|
+
allowUnrecognizedUnionMembers: true,
|
1133
|
+
allowUnrecognizedEnumValues: true,
|
1134
|
+
breadcrumbsPrefix: ["response"],
|
1135
|
+
});
|
1136
|
+
}
|
1137
|
+
if (_response.error.reason === "status-code") {
|
1138
|
+
switch (_response.error.statusCode) {
|
1139
|
+
case 422:
|
1140
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1141
|
+
unrecognizedObjectKeys: "passthrough",
|
1142
|
+
allowUnrecognizedUnionMembers: true,
|
1143
|
+
allowUnrecognizedEnumValues: true,
|
1144
|
+
breadcrumbsPrefix: ["response"],
|
1145
|
+
}));
|
1146
|
+
default:
|
1147
|
+
throw new errors.VitalError({
|
1148
|
+
statusCode: _response.error.statusCode,
|
1149
|
+
body: _response.error.body,
|
1150
|
+
});
|
1151
|
+
}
|
1152
|
+
}
|
1153
|
+
switch (_response.error.reason) {
|
1154
|
+
case "non-json":
|
1155
|
+
throw new errors.VitalError({
|
1156
|
+
statusCode: _response.error.statusCode,
|
1157
|
+
body: _response.error.rawBody,
|
1158
|
+
});
|
1159
|
+
case "timeout":
|
1160
|
+
throw new errors.VitalTimeoutError();
|
1161
|
+
case "unknown":
|
1162
|
+
throw new errors.VitalError({
|
1163
|
+
message: _response.error.errorMessage,
|
1164
|
+
});
|
1165
|
+
}
|
1166
|
+
});
|
1167
|
+
}
|
1168
|
+
/**
|
1169
|
+
* This endpoint returns the printed labels for the order.
|
1170
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
1171
|
+
*/
|
1172
|
+
getLabelsPdf(orderId, request, requestOptions) {
|
1173
|
+
var _a;
|
1174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1175
|
+
const { numberOfLabels, collectionDate } = request;
|
1176
|
+
const _queryParams = {};
|
1177
|
+
if (numberOfLabels != null) {
|
1178
|
+
_queryParams["number_of_labels"] = numberOfLabels.toString();
|
1179
|
+
}
|
1180
|
+
_queryParams["collection_date"] = collectionDate.toISOString();
|
1181
|
+
const _response = yield core.fetcher({
|
1182
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/labels/pdf`),
|
1183
|
+
method: "GET",
|
1184
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1185
|
+
contentType: "application/json",
|
1186
|
+
queryParameters: _queryParams,
|
1187
|
+
responseType: "streaming",
|
1188
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1189
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1190
|
+
});
|
1191
|
+
if (_response.ok) {
|
1192
|
+
return _response.body;
|
1193
|
+
}
|
1194
|
+
if (_response.error.reason === "status-code") {
|
1195
|
+
switch (_response.error.statusCode) {
|
1196
|
+
case 422:
|
1197
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1198
|
+
unrecognizedObjectKeys: "passthrough",
|
1199
|
+
allowUnrecognizedUnionMembers: true,
|
1200
|
+
allowUnrecognizedEnumValues: true,
|
1201
|
+
breadcrumbsPrefix: ["response"],
|
1202
|
+
}));
|
1203
|
+
default:
|
1204
|
+
throw new errors.VitalError({
|
1205
|
+
statusCode: _response.error.statusCode,
|
1206
|
+
body: _response.error.body,
|
1207
|
+
});
|
1208
|
+
}
|
1209
|
+
}
|
1210
|
+
switch (_response.error.reason) {
|
1211
|
+
case "non-json":
|
1212
|
+
throw new errors.VitalError({
|
1213
|
+
statusCode: _response.error.statusCode,
|
1214
|
+
body: _response.error.rawBody,
|
1215
|
+
});
|
1216
|
+
case "timeout":
|
1217
|
+
throw new errors.VitalTimeoutError();
|
1218
|
+
case "unknown":
|
1219
|
+
throw new errors.VitalError({
|
1220
|
+
message: _response.error.errorMessage,
|
1221
|
+
});
|
1222
|
+
}
|
1223
|
+
});
|
1224
|
+
}
|
1111
1225
|
/**
|
1112
1226
|
* GET requisition pdf for an order
|
1113
1227
|
* @throws {@link Vital.UnprocessableEntityError}
|
@@ -1118,7 +1232,7 @@ class LabTests {
|
|
1118
1232
|
const _response = yield core.fetcher({
|
1119
1233
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/requisition/pdf`),
|
1120
1234
|
method: "GET",
|
1121
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1235
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1122
1236
|
contentType: "application/json",
|
1123
1237
|
responseType: "streaming",
|
1124
1238
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1168,7 +1282,7 @@ class LabTests {
|
|
1168
1282
|
const _response = yield core.fetcher({
|
1169
1283
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}`),
|
1170
1284
|
method: "GET",
|
1171
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1285
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1172
1286
|
contentType: "application/json",
|
1173
1287
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1174
1288
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -1212,6 +1326,61 @@ class LabTests {
|
|
1212
1326
|
}
|
1213
1327
|
});
|
1214
1328
|
}
|
1329
|
+
/**
|
1330
|
+
* POST create new order
|
1331
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
1332
|
+
*/
|
1333
|
+
createOrderFhir(request, requestOptions) {
|
1334
|
+
var _a;
|
1335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1336
|
+
const _response = yield core.fetcher({
|
1337
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/fhir"),
|
1338
|
+
method: "POST",
|
1339
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1340
|
+
contentType: "application/json",
|
1341
|
+
body: yield serializers.PostOrderFhir.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
1342
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1343
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1344
|
+
});
|
1345
|
+
if (_response.ok) {
|
1346
|
+
return yield serializers.PostOrderResponse.parseOrThrow(_response.body, {
|
1347
|
+
unrecognizedObjectKeys: "passthrough",
|
1348
|
+
allowUnrecognizedUnionMembers: true,
|
1349
|
+
allowUnrecognizedEnumValues: true,
|
1350
|
+
breadcrumbsPrefix: ["response"],
|
1351
|
+
});
|
1352
|
+
}
|
1353
|
+
if (_response.error.reason === "status-code") {
|
1354
|
+
switch (_response.error.statusCode) {
|
1355
|
+
case 422:
|
1356
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1357
|
+
unrecognizedObjectKeys: "passthrough",
|
1358
|
+
allowUnrecognizedUnionMembers: true,
|
1359
|
+
allowUnrecognizedEnumValues: true,
|
1360
|
+
breadcrumbsPrefix: ["response"],
|
1361
|
+
}));
|
1362
|
+
default:
|
1363
|
+
throw new errors.VitalError({
|
1364
|
+
statusCode: _response.error.statusCode,
|
1365
|
+
body: _response.error.body,
|
1366
|
+
});
|
1367
|
+
}
|
1368
|
+
}
|
1369
|
+
switch (_response.error.reason) {
|
1370
|
+
case "non-json":
|
1371
|
+
throw new errors.VitalError({
|
1372
|
+
statusCode: _response.error.statusCode,
|
1373
|
+
body: _response.error.rawBody,
|
1374
|
+
});
|
1375
|
+
case "timeout":
|
1376
|
+
throw new errors.VitalTimeoutError();
|
1377
|
+
case "unknown":
|
1378
|
+
throw new errors.VitalError({
|
1379
|
+
message: _response.error.errorMessage,
|
1380
|
+
});
|
1381
|
+
}
|
1382
|
+
});
|
1383
|
+
}
|
1215
1384
|
/**
|
1216
1385
|
* POST create new order
|
1217
1386
|
* @throws {@link Vital.UnprocessableEntityError}
|
@@ -1222,7 +1391,7 @@ class LabTests {
|
|
1222
1391
|
const _response = yield core.fetcher({
|
1223
1392
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order"),
|
1224
1393
|
method: "POST",
|
1225
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1394
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1226
1395
|
contentType: "application/json",
|
1227
1396
|
body: yield serializers.CreateOrderRequestCompatible.jsonOrThrow(request, {
|
1228
1397
|
unrecognizedObjectKeys: "strip",
|
@@ -1279,7 +1448,7 @@ class LabTests {
|
|
1279
1448
|
const _response = yield core.fetcher({
|
1280
1449
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/cancel`),
|
1281
1450
|
method: "POST",
|
1282
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1451
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1283
1452
|
contentType: "application/json",
|
1284
1453
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1285
1454
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -1344,7 +1513,7 @@ class LabTests {
|
|
1344
1513
|
const _response = yield core.fetcher({
|
1345
1514
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/test`),
|
1346
1515
|
method: "POST",
|
1347
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1516
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1348
1517
|
contentType: "application/json",
|
1349
1518
|
queryParameters: _queryParams,
|
1350
1519
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1425,7 +1594,7 @@ class LabTests {
|
|
1425
1594
|
const _response = yield core.fetcher({
|
1426
1595
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/orders"),
|
1427
1596
|
method: "GET",
|
1428
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1597
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.14", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1429
1598
|
contentType: "application/json",
|
1430
1599
|
queryParameters: _queryParams,
|
1431
1600
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export interface LabTestsGetLabelsPdfRequest {
|
5
|
+
/**
|
6
|
+
* Number of labels to generate
|
7
|
+
*/
|
8
|
+
numberOfLabels?: number;
|
9
|
+
/**
|
10
|
+
* Collection date
|
11
|
+
*/
|
12
|
+
collectionDate: Date;
|
13
|
+
}
|
@@ -6,6 +6,8 @@ export { RequestAppointmentRequest } from "./RequestAppointmentRequest";
|
|
6
6
|
export { AppointmentRescheduleRequest } from "./AppointmentRescheduleRequest";
|
7
7
|
export { AppointmentCancelRequest } from "./AppointmentCancelRequest";
|
8
8
|
export { LabTestsGetAreaInfoRequest } from "./LabTestsGetAreaInfoRequest";
|
9
|
+
export { LabTestsGetLabelsPdfRequest } from "./LabTestsGetLabelsPdfRequest";
|
10
|
+
export { PostOrderFhir } from "./PostOrderFhir";
|
9
11
|
export { CreateOrderRequestCompatible } from "./CreateOrderRequestCompatible";
|
10
12
|
export { LabTestsSimulateOrderProcessRequest } from "./LabTestsSimulateOrderProcessRequest";
|
11
13
|
export { LabTestsGetOrdersRequest } from "./LabTestsGetOrdersRequest";
|