@ovok/core 0.4.49-dev.503 → 0.4.49-dev.513
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/README.md +23 -666
- package/dist/client/ai-fhir/methods/AIFhirResources.d.ts +3 -1
- package/dist/client/ai-fhir/methods/AIFhirResources.js +3 -1
- package/dist/client/ai-fhir/types/AIFhirPlan.d.ts +8 -0
- package/dist/client/ai-fhir/types/AIFhirPlanRequest.d.ts +8 -0
- package/dist/client/ai-fhir/types/AIFhirRequest.d.ts +5 -0
- package/dist/client/ai-fhir/types/AIFhirResponse.d.ts +6 -0
- package/dist/client/auth/errors.d.ts +15 -2
- package/dist/client/auth/errors.js +12 -2
- package/dist/client/auth/methods/appleLogin.d.ts +1 -0
- package/dist/client/auth/methods/appleLogin.js +1 -0
- package/dist/client/auth/methods/changePassword.d.ts +1 -0
- package/dist/client/auth/methods/changePassword.js +1 -0
- package/dist/client/auth/methods/googleLogin.d.ts +1 -0
- package/dist/client/auth/methods/googleLogin.js +1 -0
- package/dist/client/auth/methods/login.d.ts +6 -0
- package/dist/client/auth/methods/login.js +6 -0
- package/dist/client/auth/methods/register.d.ts +5 -0
- package/dist/client/auth/methods/register.js +5 -0
- package/dist/client/auth/methods/registerPractitioner.d.ts +5 -0
- package/dist/client/auth/methods/registerPractitioner.js +5 -0
- package/dist/client/auth/methods/reloadSession.d.ts +3 -0
- package/dist/client/auth/methods/requestDeleteUser.d.ts +4 -5
- package/dist/client/auth/methods/requestDeleteUser.js +4 -5
- package/dist/client/auth/methods/setPasswordFromReset.d.ts +1 -0
- package/dist/client/auth/methods/setPasswordFromReset.js +1 -0
- package/dist/client/auth/session-fetch.d.ts +11 -0
- package/dist/client/auth/types/Account.d.ts +8 -1
- package/dist/client/auth/types/AppleLoginBody.d.ts +16 -0
- package/dist/client/auth/types/AppleLoginBody.js +5 -0
- package/dist/client/auth/types/AuthResponse.d.ts +12 -0
- package/dist/client/auth/types/ChangePasswordBody.d.ts +7 -0
- package/dist/client/auth/types/ChangePasswordResponse.d.ts +5 -0
- package/dist/client/auth/types/CompletePasswordResetBody.d.ts +8 -0
- package/dist/client/auth/types/GoogleLoginBody.d.ts +5 -0
- package/dist/client/auth/types/LoginBody.d.ts +15 -1
- package/dist/client/auth/types/LoginError.d.ts +21 -2
- package/dist/client/auth/types/LoginError.js +8 -2
- package/dist/client/auth/types/LoginResponse.d.ts +8 -1
- package/dist/client/auth/types/RegisterBody.d.ts +12 -0
- package/dist/client/auth/types/RegisterPractitionerBody.d.ts +5 -0
- package/dist/client/auth/types/RegisterResponse.d.ts +7 -0
- package/dist/client/auth/types/RequestDeleteUserBody.d.ts +7 -7
- package/dist/client/auth/types/RequestDeleteUserResponse.d.ts +14 -0
- package/dist/client/auth/types/ResetPasswordBody.d.ts +5 -0
- package/dist/client/auth/types/Session.d.ts +14 -2
- package/dist/client/change-history/methods.d.ts +6 -0
- package/dist/client/change-history/methods.js +6 -0
- package/dist/client/change-history/types.d.ts +82 -0
- package/dist/client/chat/ai/methods/createAiSession.d.ts +6 -0
- package/dist/client/chat/ai/methods/createAiSession.js +6 -0
- package/dist/client/chat/ai/types/CreateAiSessionResponse.d.ts +17 -0
- package/dist/client/chat/ai/types/SessionMessagesResponse.d.ts +9 -0
- package/dist/client/cms/locale.d.ts +12 -2
- package/dist/client/cms/locale.js +9 -2
- package/dist/client/cms/methods.d.ts +6 -2
- package/dist/client/cms/methods.js +7 -3
- package/dist/client/cms/types.d.ts +44 -4
- package/dist/client/consent/methods.d.ts +16 -0
- package/dist/client/consent/methods.js +16 -0
- package/dist/client/consent/types.d.ts +53 -1
- package/dist/client/consent/types.js +10 -1
- package/dist/client/email/methods.d.ts +3 -0
- package/dist/client/email/methods.js +3 -0
- package/dist/client/email/types.d.ts +33 -0
- package/dist/client/errors/field-errors.d.ts +3 -0
- package/dist/client/errors/field-errors.js +3 -0
- package/dist/client/errors/ovok-error-utils.d.ts +6 -0
- package/dist/client/errors/ovok-error-utils.js +6 -0
- package/dist/client/errors/ovok-error.d.ts +36 -4
- package/dist/client/errors/ovok-error.js +15 -4
- package/dist/client/errors/rate-limit-error.d.ts +11 -2
- package/dist/client/errors/rate-limit-error.js +10 -2
- package/dist/client/errors/sign-in-required-error.d.ts +5 -2
- package/dist/client/errors/sign-in-required-error.js +5 -2
- package/dist/client/experience/methods.d.ts +38 -0
- package/dist/client/experience/methods.js +35 -0
- package/dist/client/experience/types.d.ts +316 -0
- package/dist/client/experience/types.js +1 -0
- package/dist/client/invites/methods.d.ts +27 -9
- package/dist/client/invites/methods.js +27 -9
- package/dist/client/invites/parse-accept-invite-link.d.ts +3 -1
- package/dist/client/invites/parse-accept-invite-link.js +3 -1
- package/dist/client/invites/types.d.ts +55 -0
- package/dist/client/invites/types.js +12 -0
- package/dist/client/notifications/methods.d.ts +15 -0
- package/dist/client/notifications/methods.js +15 -0
- package/dist/client/notifications/types.d.ts +249 -2
- package/dist/client/observation/methods/generateObservationBodiesByMeasurement.d.ts +3 -0
- package/dist/client/observation/methods/generateObservationBodiesByMeasurement.js +3 -0
- package/dist/client/observation/methods/getLatestObservationsByCodes.d.ts +3 -0
- package/dist/client/observation/methods/getLatestObservationsByCodes.js +3 -0
- package/dist/client/observation/methods/observationsToMeasurements.d.ts +23 -1
- package/dist/client/observation/methods/observationsToMeasurements.js +8 -1
- package/dist/client/observation/methods/saveMeasurement.d.ts +3 -1
- package/dist/client/observation/methods/saveMeasurement.js +3 -1
- package/dist/client/observation/observation-bundle-utils.d.ts +6 -0
- package/dist/client/observation/observation-bundle-utils.js +6 -0
- package/dist/client/observation/series.d.ts +25 -3
- package/dist/client/observation/series.js +6 -2
- package/dist/client/observation/services/creator.d.ts +5 -0
- package/dist/client/observation/services/creator.js +5 -0
- package/dist/client/observation/services/uric-acid-service.js +0 -1
- package/dist/client/observation/types/GetLatestObservationsByCodeParams.d.ts +10 -0
- package/dist/client/observation/types/MeasurementTypeKey.d.ts +26 -0
- package/dist/client/observation/types/MeasurementTypeKey.js +26 -0
- package/dist/client/observation/types/ObservationCode.d.ts +64 -1
- package/dist/client/observation/types/ObservationCode.js +64 -1
- package/dist/client/observation/types/UrineAnalytes.d.ts +14 -0
- package/dist/client/observation/types/UrineAnalytes.js +1 -0
- package/dist/client/observation/types/generate-measurement/Sample.d.ts +33 -0
- package/dist/client/observation/types/generate-observation-body/GenerateObservationBodyParams.d.ts +9 -0
- package/dist/client/observation/types/measurement/BabySleepMeasurement.d.ts +3 -0
- package/dist/client/observation/types/measurement/BloodGlucoseMeasurement.d.ts +7 -0
- package/dist/client/observation/types/measurement/BloodPressureMeasurement.d.ts +10 -0
- package/dist/client/observation/types/measurement/BloodPressureStates.d.ts +10 -0
- package/dist/client/observation/types/measurement/BloodPressureStates.js +10 -0
- package/dist/client/observation/types/measurement/BodyTemperatureMeasurement.d.ts +7 -0
- package/dist/client/observation/types/measurement/BodyWeightMeasurmement.d.ts +8 -0
- package/dist/client/observation/types/measurement/EcgDiagnosticFlag.d.ts +18 -0
- package/dist/client/observation/types/measurement/EcgDiagnosticFlag.js +18 -0
- package/dist/client/observation/types/measurement/EcgMeasurement.d.ts +9 -0
- package/dist/client/observation/types/measurement/HeartRateMeasurement.d.ts +7 -0
- package/dist/client/observation/types/measurement/HeartRateVariabilityMeasurement.d.ts +7 -0
- package/dist/client/observation/types/measurement/LipidPanelMeasurement.d.ts +12 -0
- package/dist/client/observation/types/measurement/Measurement.d.ts +9 -0
- package/dist/client/observation/types/measurement/MeasurementDevice.d.ts +10 -0
- package/dist/client/observation/types/measurement/MeasurementSeries.d.ts +2 -0
- package/dist/client/observation/types/measurement/PulseOximeterMeasurement.d.ts +10 -0
- package/dist/client/observation/types/measurement/RespiratoryRateMeasurement.d.ts +7 -0
- package/dist/client/observation/types/measurement/RespiratoryTherapyMeasurement.d.ts +3 -0
- package/dist/client/observation/types/measurement/RestingHeartRateMeasurement.d.ts +7 -0
- package/dist/client/observation/types/measurement/SpirometryMeasurement.d.ts +23 -0
- package/dist/client/observation/types/measurement/StepCountMeasurement.d.ts +9 -0
- package/dist/client/observation/types/measurement/UrineAnalyzeMeasurement.d.ts +29 -0
- package/dist/client/observation/types/measurement/Vo2MaxMeasurement.d.ts +7 -0
- package/dist/client/observation/types/measurement/WalkingHeartRateAverageMeasurement.d.ts +7 -0
- package/dist/client/observation/types/service/MeasurementField.d.ts +5 -1
- package/dist/client/observation/utils/getObservationValueDisplay.d.ts +2 -0
- package/dist/client/offline/offline-measurement-queue.d.ts +56 -1
- package/dist/client/offline/offline-measurement-queue.js +21 -0
- package/dist/client/offline/shared-measurement-queue.d.ts +16 -1
- package/dist/client/offline/shared-measurement-queue.js +3 -1
- package/dist/client/ovok-client.d.ts +27 -6
- package/dist/client/ovok-client.js +8 -5
- package/dist/client/patient/methods.d.ts +21 -0
- package/dist/client/patient/methods.js +21 -0
- package/dist/client/patient/types.d.ts +131 -0
- package/dist/client/patient-sharing/methods.d.ts +18 -0
- package/dist/client/patient-sharing/methods.js +18 -0
- package/dist/client/patient-sharing/types.d.ts +89 -1
- package/dist/client/platform/methods.d.ts +22 -0
- package/dist/client/platform/methods.js +20 -0
- package/dist/client/platform/types.d.ts +194 -1
- package/dist/client/platform/types.js +24 -0
- package/dist/client/questionnaire-response/methods/createQuestionnaireResponseWithObservations.d.ts +3 -0
- package/dist/client/questionnaire-response/methods/createQuestionnaireResponseWithObservations.js +3 -0
- package/dist/client/questionnaire-response/methods/extractQuestionnaireObservations.d.ts +3 -0
- package/dist/client/questionnaire-response/methods/extractQuestionnaireObservations.js +3 -0
- package/dist/client/questionnaire-response/methods/populateQuestionnaire.d.ts +3 -0
- package/dist/client/questionnaire-response/methods/populateQuestionnaire.js +3 -0
- package/dist/client/questionnaire-response/methods/submitQuestionnaireResponse.d.ts +3 -0
- package/dist/client/questionnaire-response/methods/submitQuestionnaireResponse.js +3 -0
- package/dist/client/questionnaire-response/types.d.ts +6 -0
- package/dist/client/signals/errors.d.ts +13 -2
- package/dist/client/signals/errors.js +9 -2
- package/dist/client/signals/methods.d.ts +9 -0
- package/dist/client/signals/methods.js +9 -0
- package/dist/client/signals/types.d.ts +31 -0
- package/dist/client/slim/methods.d.ts +268 -21
- package/dist/client/slim/methods.js +264 -21
- package/dist/client/slim/paging.d.ts +22 -2
- package/dist/client/slim/paging.js +6 -2
- package/dist/client/slim/types.d.ts +920 -1
- package/dist/client/storage.d.ts +15 -1
- package/dist/client/storage.js +7 -1
- package/dist/client/wearables/methods.d.ts +24 -0
- package/dist/client/wearables/methods.js +24 -0
- package/dist/client/wearables/types.d.ts +74 -0
- package/dist/conformance/api-requirements.d.ts +31 -5
- package/dist/conformance/api-requirements.js +47 -10
- package/dist/conformance/capability-requirements.d.ts +4 -26
- package/dist/conformance/capability-requirements.js +5 -27
- package/dist/conformance/capability.d.ts +9 -1
- package/dist/conformance/capability.js +3 -1
- package/dist/hooks/account-hooks.d.ts +35 -0
- package/dist/hooks/account-hooks.js +33 -0
- package/dist/hooks/api-hooks.d.ts +74 -4
- package/dist/hooks/api-hooks.js +56 -4
- package/dist/hooks/cms-hooks.d.ts +9 -3
- package/dist/hooks/cms-hooks.js +9 -3
- package/dist/hooks/email-hooks.d.ts +3 -0
- package/dist/hooks/email-hooks.js +3 -0
- package/dist/hooks/experience-hooks.d.ts +26 -0
- package/dist/hooks/experience-hooks.js +24 -0
- package/dist/hooks/index.d.ts +18 -0
- package/dist/hooks/index.js +18 -0
- package/dist/hooks/invites-hooks.d.ts +21 -2
- package/dist/hooks/invites-hooks.js +21 -2
- package/dist/hooks/notification-ack-hooks.d.ts +6 -2
- package/dist/hooks/notification-ack-hooks.js +6 -2
- package/dist/hooks/notification-hooks.d.ts +27 -3
- package/dist/hooks/notification-hooks.js +27 -3
- package/dist/hooks/notification-note-hooks.d.ts +41 -0
- package/dist/hooks/notification-note-hooks.js +33 -0
- package/dist/hooks/observation-hooks.d.ts +29 -0
- package/dist/hooks/observation-hooks.js +23 -1
- package/dist/hooks/patient-hooks.d.ts +53 -0
- package/dist/hooks/patient-hooks.js +48 -0
- package/dist/hooks/patient-sharing-hooks.d.ts +18 -0
- package/dist/hooks/patient-sharing-hooks.js +18 -0
- package/dist/hooks/platform-hooks.d.ts +32 -0
- package/dist/hooks/platform-hooks.js +23 -0
- package/dist/hooks/poll-hooks.d.ts +17 -1
- package/dist/hooks/poll-hooks.js +3 -1
- package/dist/hooks/signals-hooks.d.ts +3 -0
- package/dist/hooks/signals-hooks.js +3 -0
- package/dist/hooks/wearables-hooks.d.ts +23 -0
- package/dist/hooks/wearables-hooks.js +21 -0
- package/dist/index.d.ts +1 -965
- package/dist/index.js +1 -71
- package/dist/next/auth/saved-accounts-store.d.ts +10 -0
- package/dist/next/auth/session.d.ts +17 -0
- package/dist/next/auth/user-session.d.ts +5 -0
- package/dist/next/config/ovok-config.d.ts +45 -0
- package/dist/next/errors/ovok-account-error.d.ts +14 -1
- package/dist/next/errors/ovok-account-error.js +8 -1
- package/dist/next/errors/ovok-errors.d.ts +88 -0
- package/dist/next/errors/ovok-errors.js +67 -0
- package/dist/next/http/http-client.d.ts +5 -0
- package/dist/next/http/transmit.d.ts +7 -0
- package/dist/next/http/url.d.ts +10 -0
- package/dist/next/ovok.d.ts +31 -1
- package/dist/next/ovok.js +5 -1
- package/dist/next/paging/page.d.ts +13 -1
- package/dist/next/react/context.d.ts +7 -0
- package/dist/next/react/context.js +7 -0
- package/dist/next/react/index.d.ts +24 -0
- package/dist/next/react/index.js +18 -0
- package/dist/next/react/query-hooks.d.ts +69 -0
- package/dist/next/react/query-hooks.js +31 -0
- package/dist/next/resources/accounts/accounts-resource.d.ts +6 -0
- package/dist/next/resources/accounts/accounts-resource.js +6 -0
- package/dist/next/resources/ai/ai-chat-resource.d.ts +7 -0
- package/dist/next/resources/ai/ai-chat-resource.js +5 -0
- package/dist/next/resources/ai/ai-resource.d.ts +13 -0
- package/dist/next/resources/ai/ai-resource.js +6 -0
- package/dist/next/resources/ai/chat-messages-resource.d.ts +7 -0
- package/dist/next/resources/ai/chat-messages-resource.js +7 -0
- package/dist/next/resources/ai/chat-sessions-resource.d.ts +14 -0
- package/dist/next/resources/ai/chat-sessions-resource.js +8 -0
- package/dist/next/resources/auth/auth-sessions-resource.d.ts +6 -1
- package/dist/next/resources/auth/auth-sessions-resource.js +6 -1
- package/dist/next/resources/auth/registration.d.ts +18 -1
- package/dist/next/resources/auth/social-login.d.ts +12 -0
- package/dist/next/resources/auth-resource.d.ts +54 -1
- package/dist/next/resources/auth-resource.js +23 -0
- package/dist/next/resources/bots/bots-resource.d.ts +15 -0
- package/dist/next/resources/bots/bots-resource.js +5 -0
- package/dist/next/resources/cms/cms-delivery.d.ts +14 -2
- package/dist/next/resources/cms/cms-documents-resource.d.ts +7 -1
- package/dist/next/resources/cms/cms-documents-resource.js +7 -1
- package/dist/next/resources/cms/cms-resource.d.ts +7 -0
- package/dist/next/resources/cms/cms-resource.js +5 -0
- package/dist/next/resources/cms/release-notes-resource.d.ts +6 -0
- package/dist/next/resources/cms/release-notes-resource.js +6 -0
- package/dist/next/resources/consent/consent-resource.d.ts +22 -0
- package/dist/next/resources/consent/consent-resource.js +20 -0
- package/dist/next/resources/content/content-resource.d.ts +18 -0
- package/dist/next/resources/content/content-resource.js +12 -0
- package/dist/next/resources/documents/documents-resource.d.ts +24 -0
- package/dist/next/resources/documents/documents-resource.js +10 -0
- package/dist/next/resources/email/email-resource.d.ts +6 -0
- package/dist/next/resources/email/email-resource.js +5 -0
- package/dist/next/resources/email/email-templates-resource.d.ts +6 -0
- package/dist/next/resources/email/email-templates-resource.js +6 -0
- package/dist/next/resources/fhir-resource.d.ts +36 -0
- package/dist/next/resources/fhir-resource.js +21 -0
- package/dist/next/resources/health-resource.d.ts +16 -0
- package/dist/next/resources/health-resource.js +5 -0
- package/dist/next/resources/invites/invite-flow-resource.d.ts +7 -1
- package/dist/next/resources/invites/invite-flow-resource.js +7 -1
- package/dist/next/resources/invites/invites-resource.d.ts +15 -0
- package/dist/next/resources/invites/invites-resource.js +5 -0
- package/dist/next/resources/localization/i18next-resource.d.ts +6 -0
- package/dist/next/resources/localization/i18next-resource.js +6 -0
- package/dist/next/resources/localization/locales-resource.d.ts +7 -0
- package/dist/next/resources/localization/locales-resource.js +7 -0
- package/dist/next/resources/localization/localizations-resource.d.ts +17 -0
- package/dist/next/resources/localization/localizations-resource.js +9 -0
- package/dist/next/resources/measurements/measurements-resource.d.ts +53 -1
- package/dist/next/resources/measurements/measurements-resource.js +14 -0
- package/dist/next/resources/measurements/observation-builder.d.ts +5 -0
- package/dist/next/resources/measurements/offline-measurement-queue-types.d.ts +32 -0
- package/dist/next/resources/patient/fhir-records.d.ts +19 -1
- package/dist/next/resources/patient/fhir-records.js +19 -1
- package/dist/next/resources/patient/patient-resource.d.ts +15 -0
- package/dist/next/resources/patient/patient-resource.js +6 -0
- package/dist/next/resources/projects/project-features-resource.d.ts +7 -0
- package/dist/next/resources/projects/project-features-resource.js +7 -0
- package/dist/next/resources/projects/project-members-resource.d.ts +19 -0
- package/dist/next/resources/projects/project-members-resource.js +9 -0
- package/dist/next/resources/projects/project-settings-resource.d.ts +8 -0
- package/dist/next/resources/projects/project-settings-resource.js +8 -0
- package/dist/next/resources/projects/projects-resource.d.ts +15 -0
- package/dist/next/resources/projects/projects-resource.js +5 -0
- package/dist/next/resources/questionnaires/questionnaires-resource.d.ts +13 -0
- package/dist/next/resources/questionnaires/questionnaires-resource.js +13 -0
- package/dist/next/resources/realtime/realtime-resource.d.ts +11 -0
- package/dist/next/resources/realtime/realtime-resource.js +11 -0
- package/dist/next/resources/realtime/realtime-types.d.ts +16 -0
- package/dist/next/resources/session/saved-accounts-resource.d.ts +16 -0
- package/dist/next/resources/session/saved-accounts-resource.js +16 -0
- package/dist/next/resources/session/session-resource.d.ts +8 -0
- package/dist/next/resources/session/session-resource.js +7 -0
- package/dist/next/resources/sharing/sharing-invites-resource.d.ts +7 -0
- package/dist/next/resources/sharing/sharing-invites-resource.js +7 -0
- package/dist/next/resources/sharing/sharing-resource.d.ts +8 -0
- package/dist/next/resources/sharing/sharing-resource.js +5 -0
- package/dist/next/resources/sharing/sharing-settings-resource.d.ts +7 -0
- package/dist/next/resources/sharing/sharing-settings-resource.js +7 -0
- package/dist/next/resources/sharing/sharing-shares-resource.d.ts +7 -0
- package/dist/next/resources/sharing/sharing-shares-resource.js +7 -0
- package/dist/next/resources/signals/signals-gateway-resource.d.ts +15 -0
- package/dist/next/resources/signals/signals-gateway-resource.js +6 -0
- package/dist/next/resources/signals/signals-resource.d.ts +7 -0
- package/dist/next/resources/signals/signals-resource.js +5 -0
- package/dist/next/resources/signals/undeliverable-resource.d.ts +35 -0
- package/dist/next/resources/signals/undeliverable-resource.js +6 -0
- package/dist/next/resources/slim/slim-alarms-resource.d.ts +7 -0
- package/dist/next/resources/slim/slim-alarms-resource.js +7 -0
- package/dist/next/resources/slim/slim-change-history-resource.d.ts +6 -0
- package/dist/next/resources/slim/slim-change-history-resource.js +6 -0
- package/dist/next/resources/slim/slim-child-projects-resource.d.ts +21 -0
- package/dist/next/resources/slim/slim-child-projects-resource.js +8 -0
- package/dist/next/resources/slim/slim-devices-resource.d.ts +31 -0
- package/dist/next/resources/slim/slim-devices-resource.js +16 -0
- package/dist/next/resources/slim/slim-exports-resource.d.ts +6 -0
- package/dist/next/resources/slim/slim-exports-resource.js +6 -0
- package/dist/next/resources/slim/slim-locations-resource.d.ts +9 -0
- package/dist/next/resources/slim/slim-locations-resource.js +9 -0
- package/dist/next/resources/slim/slim-medical-notifications-resource.d.ts +6 -0
- package/dist/next/resources/slim/slim-medical-notifications-resource.js +6 -0
- package/dist/next/resources/slim/slim-notification-notes-resource.d.ts +10 -0
- package/dist/next/resources/slim/slim-notification-notes-resource.js +10 -0
- package/dist/next/resources/slim/slim-notifications-resource.d.ts +10 -0
- package/dist/next/resources/slim/slim-notifications-resource.js +6 -0
- package/dist/next/resources/slim/slim-organizations-resource.d.ts +9 -0
- package/dist/next/resources/slim/slim-organizations-resource.js +9 -0
- package/dist/next/resources/slim/slim-out-of-bed-resource.d.ts +12 -0
- package/dist/next/resources/slim/slim-out-of-bed-resource.js +7 -0
- package/dist/next/resources/slim/slim-patient-thresholds-resource.d.ts +6 -0
- package/dist/next/resources/slim/slim-patient-thresholds-resource.js +6 -0
- package/dist/next/resources/slim/slim-patients-resource.d.ts +11 -0
- package/dist/next/resources/slim/slim-patients-resource.js +10 -0
- package/dist/next/resources/slim/slim-policies-resource.d.ts +10 -0
- package/dist/next/resources/slim/slim-policies-resource.js +10 -0
- package/dist/next/resources/slim/slim-practitioners-resource.d.ts +6 -0
- package/dist/next/resources/slim/slim-practitioners-resource.js +6 -0
- package/dist/next/resources/slim/slim-projects-resource.d.ts +12 -0
- package/dist/next/resources/slim/slim-projects-resource.js +11 -0
- package/dist/next/resources/slim/slim-queries.d.ts +51 -0
- package/dist/next/resources/slim/slim-resource.d.ts +21 -0
- package/dist/next/resources/slim/slim-resource.js +6 -0
- package/dist/next/resources/slim/slim-sleep-resource.d.ts +6 -0
- package/dist/next/resources/slim/slim-sleep-resource.js +6 -0
- package/dist/next/resources/slim/slim-thresholds-resource.d.ts +5 -0
- package/dist/next/resources/slim/slim-thresholds-resource.js +5 -0
- package/dist/next/resources/slim/slim-trends-resource.d.ts +6 -0
- package/dist/next/resources/slim/slim-trends-resource.js +6 -0
- package/dist/next/resources/slim/slim-users-resource.d.ts +12 -0
- package/dist/next/resources/slim/slim-users-resource.js +6 -0
- package/dist/next/resources/slim/slim-zones-resource.d.ts +8 -0
- package/dist/next/resources/slim/slim-zones-resource.js +8 -0
- package/dist/next/resources/video-calls/video-call-access-resource.d.ts +13 -0
- package/dist/next/resources/video-calls/video-call-access-resource.js +8 -0
- package/dist/next/resources/video-calls/video-call-appointments-resource.d.ts +8 -0
- package/dist/next/resources/video-calls/video-call-appointments-resource.js +8 -0
- package/dist/next/resources/video-calls/video-call-emails-resource.d.ts +8 -0
- package/dist/next/resources/video-calls/video-call-emails-resource.js +8 -0
- package/dist/next/resources/video-calls/video-calls-resource.d.ts +14 -0
- package/dist/next/resources/video-calls/video-calls-resource.js +6 -0
- package/dist/next/resources/wearables/wearable-connections-resource.d.ts +8 -0
- package/dist/next/resources/wearables/wearable-connections-resource.js +8 -0
- package/dist/next/resources/wearables/wearable-providers-resource.d.ts +10 -0
- package/dist/next/resources/wearables/wearable-providers-resource.js +10 -0
- package/dist/next/resources/wearables/wearables-resource.d.ts +7 -0
- package/dist/next/resources/wearables/wearables-resource.js +5 -0
- package/dist/next/storage/ovok-storage.d.ts +16 -0
- package/dist/next/storage/ovok-storage.js +8 -0
- package/dist/types/ValidationError.d.ts +9 -0
- package/dist/utils/patch/getPatchOperationType.d.ts +3 -0
- package/dist/utils/patch/getPatchOperationType.js +3 -0
- package/package.json +51 -12
|
@@ -1,64 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A created patient sharing invite.
|
|
3
|
+
*
|
|
4
|
+
* @category sharing
|
|
5
|
+
*/
|
|
1
6
|
export type PatientSharingInvite = {
|
|
7
|
+
/** ID of the invite. */
|
|
2
8
|
inviteId: string;
|
|
9
|
+
/** Code the recipient redeems the invite with. */
|
|
3
10
|
code: string;
|
|
11
|
+
/** ISO 8601 time the invite expires. */
|
|
4
12
|
expiresAt: string;
|
|
5
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* Observation codes one patient shares with another.
|
|
16
|
+
*
|
|
17
|
+
* @category sharing
|
|
18
|
+
*/
|
|
6
19
|
export type PatientSharingShare = {
|
|
20
|
+
/** ID of the Consent that records the share. */
|
|
7
21
|
consentId: string;
|
|
22
|
+
/** Patient who shares. */
|
|
8
23
|
sharer: PatientSharingParty;
|
|
24
|
+
/** Patient who receives. */
|
|
9
25
|
recipient: PatientSharingParty;
|
|
26
|
+
/** Observation codes that are shared. */
|
|
10
27
|
codes: string[];
|
|
28
|
+
/** ISO 8601 start of the share, or null when not set. */
|
|
11
29
|
startedAt: string | null;
|
|
30
|
+
/** ISO 8601 end of the share, or null when open-ended. */
|
|
12
31
|
endsAt: string | null;
|
|
13
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* A patient taking part in a share.
|
|
35
|
+
*
|
|
36
|
+
* @category sharing
|
|
37
|
+
*/
|
|
14
38
|
export type PatientSharingParty = {
|
|
39
|
+
/** ID of the patient. */
|
|
15
40
|
patientId: string;
|
|
41
|
+
/** Display name, or null when unknown. */
|
|
16
42
|
name: string | null;
|
|
17
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* A patient's share of their record with a practitioner.
|
|
46
|
+
*
|
|
47
|
+
* @category sharing
|
|
48
|
+
*/
|
|
18
49
|
export type PatientSharingPractitionerShare = {
|
|
50
|
+
/** ID of the Consent that records the share. */
|
|
19
51
|
consentId: string;
|
|
52
|
+
/** Patient who shares. */
|
|
20
53
|
sharer: PatientSharingParty;
|
|
54
|
+
/** Practitioner who receives. */
|
|
21
55
|
practitioner: {
|
|
56
|
+
/** ID of the practitioner. */
|
|
22
57
|
practitionerId: string;
|
|
58
|
+
/** Display name, or null when unknown. */
|
|
23
59
|
name: string | null;
|
|
24
60
|
};
|
|
61
|
+
/** ISO 8601 start of the share, or null when not set. */
|
|
25
62
|
startedAt: string | null;
|
|
63
|
+
/** ISO 8601 end of the share, or null when open-ended. */
|
|
26
64
|
endsAt: string | null;
|
|
27
65
|
};
|
|
28
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* Observation codes a patient shares with a related person (a carer).
|
|
68
|
+
*
|
|
69
|
+
* @category sharing
|
|
70
|
+
*/
|
|
29
71
|
export type PatientSharingRelatedPersonShare = {
|
|
72
|
+
/** ID of the Consent that records the share. */
|
|
30
73
|
consentId: string;
|
|
74
|
+
/** Patient who shares. */
|
|
31
75
|
sharer: PatientSharingParty;
|
|
76
|
+
/** Carer who receives. */
|
|
32
77
|
relatedPerson: {
|
|
78
|
+
/** ID of the related person. */
|
|
33
79
|
relatedPersonId: string;
|
|
80
|
+
/** Display name, or null when unknown. */
|
|
34
81
|
name: string | null;
|
|
35
82
|
};
|
|
83
|
+
/** Observation codes that are shared. */
|
|
36
84
|
codes: string[];
|
|
85
|
+
/** ISO 8601 start of the share, or null when not set. */
|
|
37
86
|
startedAt: string | null;
|
|
87
|
+
/** ISO 8601 end of the share, or null when open-ended. */
|
|
38
88
|
endsAt: string | null;
|
|
39
89
|
};
|
|
90
|
+
/**
|
|
91
|
+
* The signed-in user's shares.
|
|
92
|
+
*
|
|
93
|
+
* @category sharing
|
|
94
|
+
*/
|
|
40
95
|
export type PatientSharingShares = {
|
|
96
|
+
/** Shares the user gave to other patients. */
|
|
41
97
|
outgoing: PatientSharingShare[];
|
|
98
|
+
/** Shares other patients gave to the user. */
|
|
42
99
|
incoming: PatientSharingShare[];
|
|
100
|
+
/** Shares with practitioners. */
|
|
43
101
|
practitioners: PatientSharingPractitionerShare[];
|
|
102
|
+
/** Shares with carers. */
|
|
44
103
|
relatedPersons: PatientSharingRelatedPersonShare[];
|
|
45
104
|
/** For a signed-in carer: the shares patients gave them. Empty for a patient. */
|
|
46
105
|
received: PatientSharingRelatedPersonShare[];
|
|
47
106
|
};
|
|
107
|
+
/**
|
|
108
|
+
* Request to create a patient sharing invite.
|
|
109
|
+
*
|
|
110
|
+
* @category sharing
|
|
111
|
+
*/
|
|
48
112
|
export type CreatePatientSharingInvite = {
|
|
113
|
+
/** Observation codes to share. */
|
|
49
114
|
codes: string[];
|
|
115
|
+
/** ISO 8601 end of the share, or null for no end. */
|
|
50
116
|
endsAt: string | null;
|
|
51
117
|
};
|
|
118
|
+
/**
|
|
119
|
+
* Request to redeem a patient sharing invite.
|
|
120
|
+
*
|
|
121
|
+
* @category sharing
|
|
122
|
+
*/
|
|
52
123
|
export type RedeemPatientSharingInvite = {
|
|
124
|
+
/** ID of the invite. */
|
|
53
125
|
inviteId: string;
|
|
126
|
+
/** Code from the invite. */
|
|
54
127
|
code: string;
|
|
55
128
|
};
|
|
129
|
+
/**
|
|
130
|
+
* Project settings for patient sharing.
|
|
131
|
+
*
|
|
132
|
+
* @category sharing
|
|
133
|
+
*/
|
|
56
134
|
export type PatientSharingSettings = {
|
|
135
|
+
/** Whether patient sharing is on. */
|
|
57
136
|
enabled: boolean;
|
|
137
|
+
/** ID of the access policy applied to shares, or null. */
|
|
58
138
|
accessPolicyId: string | null;
|
|
139
|
+
/** Whether patients may share with practitioners. */
|
|
59
140
|
practitionerSharingEnabled: boolean;
|
|
60
141
|
};
|
|
142
|
+
/**
|
|
143
|
+
* Request to update patient sharing settings.
|
|
144
|
+
*
|
|
145
|
+
* @category sharing
|
|
146
|
+
*/
|
|
61
147
|
export type PatientSharingSettingsUpdate = {
|
|
148
|
+
/** Whether patient sharing is on. */
|
|
62
149
|
enabled: boolean;
|
|
150
|
+
/** Whether patients may share with practitioners; null leaves it unchanged. */
|
|
63
151
|
practitionerSharingEnabled?: boolean | null;
|
|
64
152
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { MedplumRequestOptions } from "@medplum/core";
|
|
2
2
|
import { OvokClient } from "../ovok-client";
|
|
3
3
|
import { OvokAccount, OvokAdministeredProject, OvokI18nDocument, OvokI18nValue, OvokInviteProjectMember, OvokLocalization, OvokLocalizationQuery, OvokLocalizationUpdate, OvokLocales, OvokPage, OvokPatientObservations, OvokProjectFeature, OvokProjectFeatures, OvokProjectMember, OvokProjectMemberResponse, OvokProjectSettings, OvokProjectSettingKey, OvokProjectTextSettingKey, OvokRemoveProjectMemberResponse, OvokUpdateProjectMember } from "./types";
|
|
4
|
+
/** Lists the accounts of the signed-in user from `GET /accounts`. */
|
|
4
5
|
export declare function getAccounts(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<OvokAccount[]>;
|
|
6
|
+
/** Lists the projects the signed-in user administers, via `GET /v1/projects`. */
|
|
5
7
|
export declare function listAdministeredProjects(this: OvokClient, params?: {
|
|
6
8
|
page?: number;
|
|
7
9
|
count?: number;
|
|
8
10
|
}, requestOptions?: MedplumRequestOptions): Promise<OvokPage<OvokAdministeredProject>>;
|
|
11
|
+
/** Lists the members of the current project, via `GET /v1/projects/me/members`. */
|
|
9
12
|
export declare function listProjectMembers(this: OvokClient, params?: {
|
|
10
13
|
accessPolicyId?: string;
|
|
11
14
|
profileId?: string;
|
|
@@ -13,25 +16,44 @@ export declare function listProjectMembers(this: OvokClient, params?: {
|
|
|
13
16
|
page?: number;
|
|
14
17
|
count?: number;
|
|
15
18
|
}, requestOptions?: MedplumRequestOptions): Promise<OvokPage<OvokProjectMember>>;
|
|
19
|
+
/** Invites a member to the current project, via `POST /v1/projects/me/members`. */
|
|
16
20
|
export declare function inviteProjectMember(this: OvokClient, body: OvokInviteProjectMember, requestOptions?: MedplumRequestOptions): Promise<OvokProjectMemberResponse>;
|
|
21
|
+
/** Updates a project member, via `PATCH /v1/projects/me/members/{membershipId}`. */
|
|
17
22
|
export declare function updateProjectMember(this: OvokClient, membershipId: string, body: OvokUpdateProjectMember, requestOptions?: MedplumRequestOptions): Promise<OvokProjectMemberResponse>;
|
|
23
|
+
/** Removes a project member, via `DELETE /v1/projects/me/members/{membershipId}`. */
|
|
18
24
|
export declare function removeProjectMember(this: OvokClient, membershipId: string, requestOptions?: MedplumRequestOptions): Promise<OvokRemoveProjectMemberResponse>;
|
|
25
|
+
/** Reads the enabled features of the current project from `GET /v1/projects/me/features`. */
|
|
19
26
|
export declare function getProjectFeatures(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<OvokProjectFeatures>;
|
|
27
|
+
/** Sets the enabled features of the current project, via `PATCH /v1/projects/me/features`. */
|
|
20
28
|
export declare function updateProjectFeatures(this: OvokClient, features: OvokProjectFeature[], requestOptions?: MedplumRequestOptions): Promise<OvokProjectFeatures>;
|
|
29
|
+
/** Reads the current project's settings from `GET /v1/project/settings`. */
|
|
21
30
|
export declare function getProjectSettings(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<OvokProjectSettings>;
|
|
31
|
+
/** Turns a boolean project setting on or off, via `PUT /v1/project/settings/{key}`. */
|
|
22
32
|
export declare function updateProjectSetting(this: OvokClient, key: OvokProjectSettingKey, enabled: boolean, requestOptions?: MedplumRequestOptions): Promise<OvokProjectSettings>;
|
|
33
|
+
/** Sets a text project setting (null clears it), via `PUT /v1/project/settings/values/{key}`. */
|
|
23
34
|
export declare function updateProjectTextSetting(this: OvokClient, key: OvokProjectTextSettingKey, value: string | null, requestOptions?: MedplumRequestOptions): Promise<OvokProjectSettings>;
|
|
35
|
+
/** Reads the project's languages from `GET /locales`. */
|
|
24
36
|
export declare function getLocales(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<OvokLocales>;
|
|
37
|
+
/** Updates the project's languages, via `PATCH /locales`. */
|
|
25
38
|
export declare function updateLocales(this: OvokClient, locales: OvokLocales, requestOptions?: MedplumRequestOptions): Promise<OvokLocales>;
|
|
39
|
+
/** Lists the translations of a language, via `GET /localization/{language}`. */
|
|
26
40
|
export declare function listLocalizations(this: OvokClient, language: string, params?: OvokLocalizationQuery, requestOptions?: MedplumRequestOptions): Promise<{
|
|
41
|
+
/** Total number of translations of the language. */
|
|
27
42
|
total: number;
|
|
43
|
+
/** The translations in this page. */
|
|
28
44
|
resources: OvokLocalization[];
|
|
29
45
|
}>;
|
|
46
|
+
/** Reads one translation, via `GET /localization/{language}/{key}`. */
|
|
30
47
|
export declare function getLocalization(this: OvokClient, language: string, key: string, requestOptions?: MedplumRequestOptions): Promise<OvokLocalization>;
|
|
48
|
+
/** Sets one translation, via `PUT /localization/{language}/{key}`. */
|
|
31
49
|
export declare function updateLocalization(this: OvokClient, language: string, key: string, body: OvokLocalizationUpdate, requestOptions?: MedplumRequestOptions): Promise<OvokLocalization>;
|
|
50
|
+
/** Deletes one translation, via `DELETE /localization/{language}/{key}`. */
|
|
32
51
|
export declare function deleteLocalization(this: OvokClient, language: string, key: string, requestOptions?: MedplumRequestOptions): Promise<void>;
|
|
52
|
+
/** Reads a language's translations as an i18next document, via `GET /localization/i18next/{language}`. */
|
|
33
53
|
export declare function getI18nextDocument(this: OvokClient, language: string, requestOptions?: MedplumRequestOptions): Promise<OvokI18nDocument>;
|
|
54
|
+
/** Updates a language's translations from an i18next document, via `PATCH /localization/i18next/{language}`. */
|
|
34
55
|
export declare function updateI18nextDocument(this: OvokClient, language: string, document: Record<string, OvokI18nValue>, requestOptions?: MedplumRequestOptions): Promise<void>;
|
|
56
|
+
/** Reads the latest observations of a patient, via `GET /patient/{patientId}/observation`. */
|
|
35
57
|
export declare function getPatientLastObservations(this: OvokClient, patientId: string, params: {
|
|
36
58
|
code: string;
|
|
37
59
|
max?: number;
|
|
@@ -22,64 +22,84 @@ exports.updateI18nextDocument = updateI18nextDocument;
|
|
|
22
22
|
exports.getPatientLastObservations = getPatientLastObservations;
|
|
23
23
|
const query_string_1 = require("../query-string");
|
|
24
24
|
const request_options_1 = require("../request-options");
|
|
25
|
+
/** Lists the accounts of the signed-in user from `GET /accounts`. */
|
|
25
26
|
async function getAccounts(requestOptions) {
|
|
26
27
|
return this.get("/accounts", ...(0, request_options_1.optionalArg)(requestOptions));
|
|
27
28
|
}
|
|
29
|
+
/** Lists the projects the signed-in user administers, via `GET /v1/projects`. */
|
|
28
30
|
async function listAdministeredProjects(params = {}, requestOptions) {
|
|
29
31
|
return this.get(`/v1/projects${(0, query_string_1.toQueryString)(params)}`, ...(0, request_options_1.optionalArg)(requestOptions));
|
|
30
32
|
}
|
|
33
|
+
/** Lists the members of the current project, via `GET /v1/projects/me/members`. */
|
|
31
34
|
async function listProjectMembers(params = {}, requestOptions) {
|
|
32
35
|
return this.get(`/v1/projects/me/members${(0, query_string_1.toQueryString)(params)}`, ...(0, request_options_1.optionalArg)(requestOptions));
|
|
33
36
|
}
|
|
37
|
+
/** Invites a member to the current project, via `POST /v1/projects/me/members`. */
|
|
34
38
|
async function inviteProjectMember(body, requestOptions) {
|
|
35
39
|
return this.post("/v1/projects/me/members", body, undefined, requestOptions);
|
|
36
40
|
}
|
|
41
|
+
/** Updates a project member, via `PATCH /v1/projects/me/members/{membershipId}`. */
|
|
37
42
|
async function updateProjectMember(membershipId, body, requestOptions) {
|
|
38
43
|
return (await this.patch(`/v1/projects/me/members/${encodeURIComponent(membershipId)}`, body, ...(0, request_options_1.optionalArg)(requestOptions)));
|
|
39
44
|
}
|
|
45
|
+
/** Removes a project member, via `DELETE /v1/projects/me/members/{membershipId}`. */
|
|
40
46
|
async function removeProjectMember(membershipId, requestOptions) {
|
|
41
47
|
return (await this.delete(`/v1/projects/me/members/${encodeURIComponent(membershipId)}`, ...(0, request_options_1.optionalArg)(requestOptions)));
|
|
42
48
|
}
|
|
49
|
+
/** Reads the enabled features of the current project from `GET /v1/projects/me/features`. */
|
|
43
50
|
async function getProjectFeatures(requestOptions) {
|
|
44
51
|
return this.get("/v1/projects/me/features", ...(0, request_options_1.optionalArg)(requestOptions));
|
|
45
52
|
}
|
|
53
|
+
/** Sets the enabled features of the current project, via `PATCH /v1/projects/me/features`. */
|
|
46
54
|
async function updateProjectFeatures(features, requestOptions) {
|
|
47
55
|
const body = { features };
|
|
48
56
|
return (await this.patch("/v1/projects/me/features", body, ...(0, request_options_1.optionalArg)(requestOptions)));
|
|
49
57
|
}
|
|
58
|
+
/** Reads the current project's settings from `GET /v1/project/settings`. */
|
|
50
59
|
async function getProjectSettings(requestOptions) {
|
|
51
60
|
return this.get("/v1/project/settings", ...(0, request_options_1.optionalArg)(requestOptions));
|
|
52
61
|
}
|
|
62
|
+
/** Turns a boolean project setting on or off, via `PUT /v1/project/settings/{key}`. */
|
|
53
63
|
async function updateProjectSetting(key, enabled, requestOptions) {
|
|
54
64
|
return (await this.put(`/v1/project/settings/${encodeURIComponent(key)}`, { enabled }, undefined, requestOptions));
|
|
55
65
|
}
|
|
66
|
+
/** Sets a text project setting (null clears it), via `PUT /v1/project/settings/values/{key}`. */
|
|
56
67
|
async function updateProjectTextSetting(key, value, requestOptions) {
|
|
57
68
|
return (await this.put(`/v1/project/settings/values/${encodeURIComponent(key)}`, { value }, undefined, requestOptions));
|
|
58
69
|
}
|
|
70
|
+
/** Reads the project's languages from `GET /locales`. */
|
|
59
71
|
async function getLocales(requestOptions) {
|
|
60
72
|
return this.get("/locales", ...(0, request_options_1.optionalArg)(requestOptions));
|
|
61
73
|
}
|
|
74
|
+
/** Updates the project's languages, via `PATCH /locales`. */
|
|
62
75
|
async function updateLocales(locales, requestOptions) {
|
|
63
76
|
return (await this.patch("/locales", locales, ...(0, request_options_1.optionalArg)(requestOptions)));
|
|
64
77
|
}
|
|
78
|
+
/** Lists the translations of a language, via `GET /localization/{language}`. */
|
|
65
79
|
async function listLocalizations(language, params = {}, requestOptions) {
|
|
66
80
|
return this.get(`/localization/${encodeURIComponent(language)}${(0, query_string_1.toQueryString)(params)}`, ...(0, request_options_1.optionalArg)(requestOptions));
|
|
67
81
|
}
|
|
82
|
+
/** Reads one translation, via `GET /localization/{language}/{key}`. */
|
|
68
83
|
async function getLocalization(language, key, requestOptions) {
|
|
69
84
|
return this.get(`/localization/${encodeURIComponent(language)}/${encodeURIComponent(key)}`, ...(0, request_options_1.optionalArg)(requestOptions));
|
|
70
85
|
}
|
|
86
|
+
/** Sets one translation, via `PUT /localization/{language}/{key}`. */
|
|
71
87
|
async function updateLocalization(language, key, body, requestOptions) {
|
|
72
88
|
return (await this.put(`/localization/${encodeURIComponent(language)}/${encodeURIComponent(key)}`, body, undefined, requestOptions));
|
|
73
89
|
}
|
|
90
|
+
/** Deletes one translation, via `DELETE /localization/{language}/{key}`. */
|
|
74
91
|
async function deleteLocalization(language, key, requestOptions) {
|
|
75
92
|
await this.delete(`/localization/${encodeURIComponent(language)}/${encodeURIComponent(key)}`, ...(0, request_options_1.optionalArg)(requestOptions));
|
|
76
93
|
}
|
|
94
|
+
/** Reads a language's translations as an i18next document, via `GET /localization/i18next/{language}`. */
|
|
77
95
|
async function getI18nextDocument(language, requestOptions) {
|
|
78
96
|
return this.get(`/localization/i18next/${encodeURIComponent(language)}`, ...(0, request_options_1.optionalArg)(requestOptions));
|
|
79
97
|
}
|
|
98
|
+
/** Updates a language's translations from an i18next document, via `PATCH /localization/i18next/{language}`. */
|
|
80
99
|
async function updateI18nextDocument(language, document, requestOptions) {
|
|
81
100
|
await this.patch(`/localization/i18next/${encodeURIComponent(language)}`, document, ...(0, request_options_1.optionalArg)(requestOptions));
|
|
82
101
|
}
|
|
102
|
+
/** Reads the latest observations of a patient, via `GET /patient/{patientId}/observation`. */
|
|
83
103
|
async function getPatientLastObservations(patientId, params, requestOptions) {
|
|
84
104
|
return this.get(`/patient/${encodeURIComponent(patientId)}/observation${(0, query_string_1.toQueryString)(params)}`, ...(0, request_options_1.optionalArg)(requestOptions));
|
|
85
105
|
}
|
|
@@ -1,112 +1,305 @@
|
|
|
1
1
|
import { Bundle, Observation } from "@medplum/fhirtypes";
|
|
2
2
|
import { SlimPage } from "../slim/types";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* A page of results, the same shape as `SlimPage`.
|
|
5
|
+
*
|
|
6
|
+
* @category projects
|
|
7
|
+
*/
|
|
4
8
|
export type OvokPage<T> = SlimPage<T>;
|
|
9
|
+
/**
|
|
10
|
+
* An account of the signed-in user.
|
|
11
|
+
*
|
|
12
|
+
* @category accounts
|
|
13
|
+
*/
|
|
5
14
|
export type OvokAccount = {
|
|
15
|
+
/** Email address of the account. */
|
|
6
16
|
email: string;
|
|
17
|
+
/** Name of the account. */
|
|
7
18
|
name: string;
|
|
8
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* A project the user administers.
|
|
22
|
+
*
|
|
23
|
+
* @category projects
|
|
24
|
+
*/
|
|
9
25
|
export type OvokAdministeredProject = {
|
|
26
|
+
/** ID of the project. */
|
|
10
27
|
projectId: string;
|
|
28
|
+
/** Name of the project, or null. */
|
|
11
29
|
name: string | null;
|
|
30
|
+
/** Tenant code of the project, or null. */
|
|
12
31
|
tenantCode: string | null;
|
|
32
|
+
/** Whether this is the main project, or null when unknown. */
|
|
13
33
|
isMainProject: boolean | null;
|
|
34
|
+
/** ID of the parent project, or null. */
|
|
14
35
|
parentProjectId: string | null;
|
|
15
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* A reference to a resource, with display text.
|
|
39
|
+
*
|
|
40
|
+
* @category projects
|
|
41
|
+
*/
|
|
16
42
|
export type OvokProjectMemberReference = {
|
|
43
|
+
/** Reference string, such as `Practitioner/123`. */
|
|
17
44
|
reference?: string;
|
|
45
|
+
/** Display text. */
|
|
18
46
|
display?: string;
|
|
19
47
|
[key: string]: unknown;
|
|
20
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* A member of a project.
|
|
51
|
+
*
|
|
52
|
+
* @category projects
|
|
53
|
+
*/
|
|
21
54
|
export type OvokProjectMember = {
|
|
55
|
+
/** ID of the ProjectMembership. */
|
|
22
56
|
membershipId: string;
|
|
57
|
+
/** ID of the user. */
|
|
23
58
|
userId?: string;
|
|
59
|
+
/** The member's profile. */
|
|
24
60
|
profile?: OvokProjectMemberReference;
|
|
61
|
+
/** The member's access policy. */
|
|
25
62
|
accessPolicy?: OvokProjectMemberReference;
|
|
63
|
+
/** Whether the member is a project admin. */
|
|
26
64
|
admin?: boolean;
|
|
27
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* Request to invite a project member.
|
|
68
|
+
*
|
|
69
|
+
* @category projects
|
|
70
|
+
*/
|
|
28
71
|
export type OvokInviteProjectMember = {
|
|
72
|
+
/** Email address to invite. */
|
|
29
73
|
email: string;
|
|
74
|
+
/** First name, or null. */
|
|
30
75
|
firstName: string | null;
|
|
76
|
+
/** Last name, or null. */
|
|
31
77
|
lastName: string | null;
|
|
78
|
+
/** Whether to make the member an admin, or null. */
|
|
32
79
|
admin: boolean | null;
|
|
33
80
|
};
|
|
81
|
+
/**
|
|
82
|
+
* Request to update a project member.
|
|
83
|
+
*
|
|
84
|
+
* @category projects
|
|
85
|
+
*/
|
|
34
86
|
export type OvokUpdateProjectMember = {
|
|
87
|
+
/** Whether the member is an admin, or null. */
|
|
35
88
|
admin: boolean | null;
|
|
36
89
|
};
|
|
90
|
+
/**
|
|
91
|
+
* A project member as returned by the member routes.
|
|
92
|
+
*
|
|
93
|
+
* @category projects
|
|
94
|
+
*/
|
|
37
95
|
export type OvokProjectMemberResponse = {
|
|
96
|
+
/** ID of the membership. */
|
|
38
97
|
id: string;
|
|
98
|
+
/** Email address, or null. */
|
|
39
99
|
email: string | null;
|
|
100
|
+
/** Display name, or null. */
|
|
40
101
|
displayName: string | null;
|
|
102
|
+
/** First name, or null. */
|
|
41
103
|
firstName: string | null;
|
|
104
|
+
/** Last name, or null. */
|
|
42
105
|
lastName: string | null;
|
|
106
|
+
/** Whether the member is an admin. */
|
|
43
107
|
admin: boolean;
|
|
108
|
+
/** Resource type of the member's profile, or null. */
|
|
44
109
|
profileType: "Practitioner" | "Patient" | "RelatedPerson" | null;
|
|
110
|
+
/** ID of the member's profile, or null. */
|
|
45
111
|
profileId: string | null;
|
|
112
|
+
/** Whether the invite has not been accepted yet. */
|
|
46
113
|
pending: boolean;
|
|
114
|
+
/** ISO 8601 time of the invite, or null. */
|
|
47
115
|
invitedAt: string | null;
|
|
48
116
|
};
|
|
117
|
+
/**
|
|
118
|
+
* Result of removing a project member.
|
|
119
|
+
*
|
|
120
|
+
* @category projects
|
|
121
|
+
*/
|
|
49
122
|
export type OvokRemoveProjectMemberResponse = {
|
|
123
|
+
/** Always `true`. */
|
|
50
124
|
success: true;
|
|
51
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* Project features that can be switched on.
|
|
128
|
+
*
|
|
129
|
+
* @category projects
|
|
130
|
+
*/
|
|
52
131
|
export declare const OVOK_PROJECT_FEATURE_VALUES: readonly ["ai", "aws-comprehend", "aws-textract", "bots", "cron", "email", "google-auth-required", "graphql-introspection", "websocket-subscriptions", "transaction-bundles", "validate-terminology"];
|
|
132
|
+
/**
|
|
133
|
+
* A project feature.
|
|
134
|
+
*
|
|
135
|
+
* @category projects
|
|
136
|
+
*/
|
|
53
137
|
export type OvokProjectFeature = (typeof OVOK_PROJECT_FEATURE_VALUES)[number];
|
|
138
|
+
/**
|
|
139
|
+
* Enabled features of a project.
|
|
140
|
+
*
|
|
141
|
+
* @category projects
|
|
142
|
+
*/
|
|
54
143
|
export type OvokProjectFeatures = {
|
|
144
|
+
/** Enabled features. */
|
|
55
145
|
features: string[];
|
|
56
146
|
};
|
|
147
|
+
/**
|
|
148
|
+
* Request to set the enabled features.
|
|
149
|
+
*
|
|
150
|
+
* @category projects
|
|
151
|
+
*/
|
|
57
152
|
export type OvokProjectFeaturesUpdate = {
|
|
153
|
+
/** Features to enable. */
|
|
58
154
|
features: OvokProjectFeature[];
|
|
59
155
|
};
|
|
156
|
+
/**
|
|
157
|
+
* Keys of the boolean project settings.
|
|
158
|
+
*
|
|
159
|
+
* @category projects
|
|
160
|
+
*/
|
|
60
161
|
export declare const OVOK_PROJECT_SETTING_KEYS: readonly ["CONTENT_ENABLED", "MAILING_ENABLED", "PATIENT_INVITATION_ENABLED", "PATIENT_REGISTRATION_ENABLED", "PATIENT_LOGIN_ENABLED", "PRACTITIONER_INVITATION_ENABLED", "PRACTITIONER_REGISTRATION_ENABLED", "PRACTITIONER_LOGIN_ENABLED", "CLINICIAN_INVITE_ON_BUSINESS_EMAIL"];
|
|
162
|
+
/**
|
|
163
|
+
* A boolean project setting key.
|
|
164
|
+
*
|
|
165
|
+
* @category projects
|
|
166
|
+
*/
|
|
61
167
|
export type OvokProjectSettingKey = (typeof OVOK_PROJECT_SETTING_KEYS)[number];
|
|
168
|
+
/**
|
|
169
|
+
* Keys of the text project settings.
|
|
170
|
+
*
|
|
171
|
+
* @category projects
|
|
172
|
+
*/
|
|
62
173
|
export declare const OVOK_PROJECT_TEXT_SETTING_KEYS: readonly ["PATIENT_APP_URL", "PRACTITIONER_APP_URL", "PATIENT_SIGNUP_URL", "CLINICIAN_DASHBOARD_URL", "DEFAULT_PRACTITIONER_ACCESS_POLICY", "CLINICIAN_INVITE_ACCESS_POLICY"];
|
|
174
|
+
/**
|
|
175
|
+
* A text project setting key.
|
|
176
|
+
*
|
|
177
|
+
* @category projects
|
|
178
|
+
*/
|
|
63
179
|
export type OvokProjectTextSettingKey = (typeof OVOK_PROJECT_TEXT_SETTING_KEYS)[number];
|
|
180
|
+
/**
|
|
181
|
+
* Error codes returned when a text setting is rejected.
|
|
182
|
+
*
|
|
183
|
+
* @category projects
|
|
184
|
+
*/
|
|
64
185
|
export declare const OVOK_PROJECT_TEXT_SETTING_ERROR_CODES: {
|
|
186
|
+
/** The value is not valid for the setting. */
|
|
65
187
|
readonly invalidValue: "INVALID_SETTING_VALUE";
|
|
188
|
+
/** The app URL is not allowed. */
|
|
66
189
|
readonly appUrlNotAllowed: "APP_URL_NOT_ALLOWED";
|
|
190
|
+
/** The setting does not exist. */
|
|
67
191
|
readonly unknownSetting: "UNKNOWN_SETTING";
|
|
192
|
+
/** No app URL is configured. */
|
|
68
193
|
readonly appUrlNotConfigured: "app_url_not_configured";
|
|
69
194
|
};
|
|
195
|
+
/**
|
|
196
|
+
* Settings of a project.
|
|
197
|
+
*
|
|
198
|
+
* @category projects
|
|
199
|
+
*/
|
|
70
200
|
export type OvokProjectSettings = {
|
|
201
|
+
/** ID of the project. */
|
|
71
202
|
projectId: string;
|
|
203
|
+
/** Boolean settings by key. */
|
|
72
204
|
settings: Record<OvokProjectSettingKey, boolean>;
|
|
205
|
+
/** Text settings by key; null when unset. */
|
|
73
206
|
values: Record<OvokProjectTextSettingKey, string | null>;
|
|
74
207
|
};
|
|
208
|
+
/**
|
|
209
|
+
* Languages of a project.
|
|
210
|
+
*
|
|
211
|
+
* @category localization
|
|
212
|
+
*/
|
|
75
213
|
export type OvokLocales = {
|
|
214
|
+
/** Supported language codes. */
|
|
76
215
|
languages: string[];
|
|
216
|
+
/** Default language code. */
|
|
77
217
|
defaultLanguage: string;
|
|
78
218
|
};
|
|
219
|
+
/**
|
|
220
|
+
* A translation of one key.
|
|
221
|
+
*
|
|
222
|
+
* @category localization
|
|
223
|
+
*/
|
|
79
224
|
export type OvokLocalization = {
|
|
225
|
+
/** ID of the translation. */
|
|
80
226
|
id?: string;
|
|
227
|
+
/** Translation key. */
|
|
81
228
|
key: string;
|
|
229
|
+
/** Language code. */
|
|
82
230
|
language: string;
|
|
231
|
+
/** Translated text. */
|
|
83
232
|
value: string;
|
|
233
|
+
/** Who last changed the translation. */
|
|
84
234
|
author: {
|
|
235
|
+
/** Reference to the author. */
|
|
85
236
|
reference: string;
|
|
237
|
+
/** Display name of the author. */
|
|
86
238
|
display?: string;
|
|
87
239
|
};
|
|
240
|
+
/** ISO 8601 time of the last change. */
|
|
88
241
|
date?: string;
|
|
242
|
+
/** ID of the project. */
|
|
89
243
|
projectId?: string;
|
|
90
244
|
};
|
|
245
|
+
/**
|
|
246
|
+
* Query of `listLocalizations`.
|
|
247
|
+
*
|
|
248
|
+
* @category localization
|
|
249
|
+
*/
|
|
91
250
|
export type OvokLocalizationQuery = {
|
|
251
|
+
/** Maximum number of results. */
|
|
92
252
|
_count?: number;
|
|
253
|
+
/** Number of results to skip. */
|
|
93
254
|
_offset?: number;
|
|
255
|
+
/** Sort order. */
|
|
94
256
|
_sort?: string;
|
|
257
|
+
/** Text to search for. */
|
|
95
258
|
search?: string;
|
|
96
259
|
};
|
|
260
|
+
/**
|
|
261
|
+
* Request to set a translation.
|
|
262
|
+
*
|
|
263
|
+
* @category localization
|
|
264
|
+
*/
|
|
97
265
|
export type OvokLocalizationUpdate = {
|
|
266
|
+
/** Translated text. */
|
|
98
267
|
value: string;
|
|
99
268
|
};
|
|
269
|
+
/**
|
|
270
|
+
* A value in an i18next document: text or a nested object.
|
|
271
|
+
*
|
|
272
|
+
* @category localization
|
|
273
|
+
*/
|
|
100
274
|
export type OvokI18nValue = string | {
|
|
101
275
|
[key: string]: OvokI18nValue;
|
|
102
276
|
};
|
|
277
|
+
/**
|
|
278
|
+
* A language's translations as an i18next document.
|
|
279
|
+
*
|
|
280
|
+
* @category localization
|
|
281
|
+
*/
|
|
103
282
|
export type OvokI18nDocument = {
|
|
283
|
+
/** Document key. */
|
|
104
284
|
key: string;
|
|
285
|
+
/** Language code. */
|
|
105
286
|
language: string;
|
|
106
287
|
[key: string]: unknown;
|
|
107
288
|
};
|
|
289
|
+
/**
|
|
290
|
+
* Query for a patient's latest observations.
|
|
291
|
+
*
|
|
292
|
+
* @category patient
|
|
293
|
+
*/
|
|
108
294
|
export type OvokPatientObservationQuery = {
|
|
295
|
+
/** Observation code. */
|
|
109
296
|
code: string;
|
|
297
|
+
/** Maximum number of observations. */
|
|
110
298
|
max?: number;
|
|
111
299
|
};
|
|
300
|
+
/**
|
|
301
|
+
* Bundle of a patient's observations.
|
|
302
|
+
*
|
|
303
|
+
* @category patient
|
|
304
|
+
*/
|
|
112
305
|
export type OvokPatientObservations = Bundle<Observation>;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OVOK_PROJECT_TEXT_SETTING_ERROR_CODES = exports.OVOK_PROJECT_TEXT_SETTING_KEYS = exports.OVOK_PROJECT_SETTING_KEYS = exports.OVOK_PROJECT_FEATURE_VALUES = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Project features that can be switched on.
|
|
6
|
+
*
|
|
7
|
+
* @category projects
|
|
8
|
+
*/
|
|
4
9
|
exports.OVOK_PROJECT_FEATURE_VALUES = [
|
|
5
10
|
"ai",
|
|
6
11
|
"aws-comprehend",
|
|
@@ -14,6 +19,11 @@ exports.OVOK_PROJECT_FEATURE_VALUES = [
|
|
|
14
19
|
"transaction-bundles",
|
|
15
20
|
"validate-terminology",
|
|
16
21
|
];
|
|
22
|
+
/**
|
|
23
|
+
* Keys of the boolean project settings.
|
|
24
|
+
*
|
|
25
|
+
* @category projects
|
|
26
|
+
*/
|
|
17
27
|
exports.OVOK_PROJECT_SETTING_KEYS = [
|
|
18
28
|
"CONTENT_ENABLED",
|
|
19
29
|
"MAILING_ENABLED",
|
|
@@ -25,6 +35,11 @@ exports.OVOK_PROJECT_SETTING_KEYS = [
|
|
|
25
35
|
"PRACTITIONER_LOGIN_ENABLED",
|
|
26
36
|
"CLINICIAN_INVITE_ON_BUSINESS_EMAIL",
|
|
27
37
|
];
|
|
38
|
+
/**
|
|
39
|
+
* Keys of the text project settings.
|
|
40
|
+
*
|
|
41
|
+
* @category projects
|
|
42
|
+
*/
|
|
28
43
|
exports.OVOK_PROJECT_TEXT_SETTING_KEYS = [
|
|
29
44
|
"PATIENT_APP_URL",
|
|
30
45
|
"PRACTITIONER_APP_URL",
|
|
@@ -33,9 +48,18 @@ exports.OVOK_PROJECT_TEXT_SETTING_KEYS = [
|
|
|
33
48
|
"DEFAULT_PRACTITIONER_ACCESS_POLICY",
|
|
34
49
|
"CLINICIAN_INVITE_ACCESS_POLICY",
|
|
35
50
|
];
|
|
51
|
+
/**
|
|
52
|
+
* Error codes returned when a text setting is rejected.
|
|
53
|
+
*
|
|
54
|
+
* @category projects
|
|
55
|
+
*/
|
|
36
56
|
exports.OVOK_PROJECT_TEXT_SETTING_ERROR_CODES = {
|
|
57
|
+
/** The value is not valid for the setting. */
|
|
37
58
|
invalidValue: "INVALID_SETTING_VALUE",
|
|
59
|
+
/** The app URL is not allowed. */
|
|
38
60
|
appUrlNotAllowed: "APP_URL_NOT_ALLOWED",
|
|
61
|
+
/** The setting does not exist. */
|
|
39
62
|
unknownSetting: "UNKNOWN_SETTING",
|
|
63
|
+
/** No app URL is configured. */
|
|
40
64
|
appUrlNotConfigured: "app_url_not_configured",
|
|
41
65
|
};
|
package/dist/client/questionnaire-response/methods/createQuestionnaireResponseWithObservations.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Bundle, Observation, QuestionnaireResponse } from "@medplum/fhirtypes";
|
|
2
2
|
import type { MedplumRequestOptions } from "@medplum/core";
|
|
3
3
|
import { OvokClient } from "../../ovok-client";
|
|
4
|
+
/**
|
|
5
|
+
* Creates a QuestionnaireResponse and its Observations together in one transaction bundle.
|
|
6
|
+
*/
|
|
4
7
|
export declare function createQuestionnaireResponseWithObservations(this: OvokClient, questionnaireResponse: QuestionnaireResponse, observations: Observation[], requestOptions?: MedplumRequestOptions): Promise<Bundle>;
|
package/dist/client/questionnaire-response/methods/createQuestionnaireResponseWithObservations.js
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createQuestionnaireResponseWithObservations = createQuestionnaireResponseWithObservations;
|
|
4
4
|
const request_options_1 = require("../../request-options");
|
|
5
|
+
/**
|
|
6
|
+
* Creates a QuestionnaireResponse and its Observations together in one transaction bundle.
|
|
7
|
+
*/
|
|
5
8
|
async function createQuestionnaireResponseWithObservations(questionnaireResponse, observations, requestOptions) {
|
|
6
9
|
const bundle = {
|
|
7
10
|
resourceType: "Bundle",
|