@ovok/core 0.4.49-dev.504 → 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/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/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 +5 -2
|
@@ -3,95 +3,263 @@ import type { MedplumRequestOptions } from "@medplum/core";
|
|
|
3
3
|
import { SlimAlarmQuery, SlimAlarmsPage, SlimMedicalNotificationsPage, SlimMedicalNotificationDetail, SlimMedicalNotificationRow, SlimMedicalNotificationsQuery, SlimRecentAlarms, SlimRecentOutOfBed } from "../notifications/types";
|
|
4
4
|
import { OvokClient } from "../ovok-client";
|
|
5
5
|
import { SlimAssignDevice, SlimCreateDevice, SlimCreateLocation, SlimCreatePatient, SlimDevice, SlimDeviceListItem, SlimDeviceListQuery, SlimDeviceTelemetry, SlimExportPdf, SlimExportPdfRequest, SlimLiveQuery, SlimLiveTelemetry, SlimLocation, SlimLocationQuery, SlimNotification, SlimNotificationsQuery, SlimNotificationsResponse, SlimObservationIds, SlimPage, SlimPatient, SlimPatientListItem, SlimPatientListQuery, SlimRecentNotificationsResponse, SlimSleepStatistics, SlimThreshold, SlimThresholdSettingsUpdateV1, SlimThresholdV2, SlimThresholdV2Update, SlimPatientThresholdV2, SlimProject, SlimProjectRelationships, SlimProjectRelationshipsV2, SlimChildProjectInput, SlimProjectUsersQuery, SlimProjectUsersPage, SlimProjectDeviceCounts, SlimProjectPatientCounts, SlimPolicyListQuery, SlimPolicyList, SlimPolicyResponse, SlimCreatePolicy, SlimUpdatePolicy, SlimOrganization, SlimOrganizationInput, SlimPractitionerInviteInput, SlimPractitionerInviteResponse, SlimUserProfileType, SlimHealth, SlimTrends, SlimGraphType, SlimHistoricalGraphType, SlimUpdateDevice, SlimUpdateLocation, SlimUpdatePatient, SlimZone, SlimZoneDetail } from "./types";
|
|
6
|
+
/**
|
|
7
|
+
* Lists residents (patients) in the project, paged (`GET /v1/slim/patient`).
|
|
8
|
+
*/
|
|
6
9
|
export declare function listSlimPatients(this: OvokClient, params?: SlimPatientListQuery, requestOptions?: MedplumRequestOptions): Promise<SlimPage<SlimPatientListItem>>;
|
|
10
|
+
/**
|
|
11
|
+
* Reads one resident by id (`GET /v1/slim/patient/{id}`).
|
|
12
|
+
*/
|
|
7
13
|
export declare function getSlimPatient(this: OvokClient, patientId: string, requestOptions?: MedplumRequestOptions): Promise<SlimPatient>;
|
|
14
|
+
/**
|
|
15
|
+
* Reads a resident and all related resources as a FHIR bundle (`GET /v1/slim/patient/{id}/$everything`).
|
|
16
|
+
*/
|
|
8
17
|
export declare function getSlimPatientEverything(this: OvokClient, patientId: string, requestOptions?: MedplumRequestOptions): Promise<Bundle<Resource>>;
|
|
18
|
+
/**
|
|
19
|
+
* Reads a resident's current vital readings, keyed by vital (`GET /v1/slim/patient/{id}/current-vitals`).
|
|
20
|
+
*/
|
|
9
21
|
export declare function getSlimPatientCurrentVitals(this: OvokClient, patientId: string, requestOptions?: MedplumRequestOptions): Promise<Record<string, unknown>>;
|
|
10
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* Creates a resident, optionally assigned to a location or device (`POST /v1/slim/patient`).
|
|
24
|
+
*
|
|
25
|
+
* 422 when organizationId has no locationId or deviceId, or the assigned devices span zones.
|
|
26
|
+
*/
|
|
11
27
|
export declare function createSlimPatient(this: OvokClient, body: SlimCreatePatient, requestOptions?: MedplumRequestOptions): Promise<SlimPatient>;
|
|
12
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Updates a resident (`PUT /v1/slim/patient/{id}`).
|
|
30
|
+
*
|
|
31
|
+
* Replaces editable fields; omitting locationId unassigns devices; 422 for null, empty, or [] deviceId with a location or devices across zones. Names are trimmed.
|
|
32
|
+
*/
|
|
13
33
|
export declare function updateSlimPatient(this: OvokClient, patientId: string, body: SlimUpdatePatient, requestOptions?: MedplumRequestOptions): Promise<SlimPatient>;
|
|
14
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Deletes a resident (`DELETE /v1/slim/patient/{id}`).
|
|
36
|
+
*
|
|
37
|
+
* 409 while the resident has a device; unassign it first with updateSlimPatient and no locationId.
|
|
38
|
+
*/
|
|
15
39
|
export declare function deleteSlimPatient(this: OvokClient, patientId: string, requestOptions?: MedplumRequestOptions): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Lists devices in the project, paged (`GET /v1/slim/device`).
|
|
42
|
+
*/
|
|
16
43
|
export declare function listSlimDevices(this: OvokClient, params?: SlimDeviceListQuery, requestOptions?: MedplumRequestOptions): Promise<SlimPage<SlimDeviceListItem>>;
|
|
44
|
+
/**
|
|
45
|
+
* Reads one device by id (`GET /v1/slim/device/{id}`).
|
|
46
|
+
*/
|
|
17
47
|
export declare function getSlimDevice(this: OvokClient, deviceId: string, requestOptions?: MedplumRequestOptions): Promise<SlimDevice>;
|
|
18
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* Creates a device (`POST /v1/slim/device`).
|
|
50
|
+
*
|
|
51
|
+
* 409 when another customer holds the serial; 422 when this project already uses it or its organization differs from the room's zone.
|
|
52
|
+
*/
|
|
19
53
|
export declare function createSlimDevice(this: OvokClient, body: SlimCreateDevice, requestOptions?: MedplumRequestOptions): Promise<SlimDevice>;
|
|
20
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* Updates a device (`PUT /v1/slim/device/{id}`).
|
|
56
|
+
*
|
|
57
|
+
* 409 when another customer holds the serial; 422 when this project already uses it or its organization differs from the room's zone. Renaming moves the serial, so old-serial readings stop and live values return after a reading under the new serial.
|
|
58
|
+
*/
|
|
21
59
|
export declare function updateSlimDevice(this: OvokClient, deviceId: string, body: SlimUpdateDevice, requestOptions?: MedplumRequestOptions): Promise<SlimDevice>;
|
|
60
|
+
/**
|
|
61
|
+
* Deletes a device (`DELETE /v1/slim/device/{id}`).
|
|
62
|
+
*/
|
|
22
63
|
export declare function deleteSlimDevice(this: OvokClient, deviceId: string, requestOptions?: MedplumRequestOptions): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Assigns a device to a project, optionally to one of its locations (`PUT /v1/slim/device/assign/project`).
|
|
66
|
+
*/
|
|
23
67
|
export declare function assignSlimDeviceToProject(this: OvokClient, body: SlimAssignDevice, requestOptions?: MedplumRequestOptions): Promise<SlimDevice>;
|
|
68
|
+
/**
|
|
69
|
+
* Lists devices with their live row data, paged (`GET /v1/slim/device/live`).
|
|
70
|
+
*/
|
|
24
71
|
export declare function listSlimLiveDevices(this: OvokClient, params?: SlimLiveQuery, requestOptions?: MedplumRequestOptions): Promise<SlimPage<Record<string, unknown>>>;
|
|
72
|
+
/**
|
|
73
|
+
* Reads latest telemetry and alert summaries for the matching devices, keyed by device id (`GET /v1/slim/device/live/telemetry`).
|
|
74
|
+
*/
|
|
25
75
|
export declare function listSlimLiveTelemetry(this: OvokClient, params?: SlimLiveQuery, requestOptions?: MedplumRequestOptions): Promise<SlimLiveTelemetry>;
|
|
76
|
+
/**
|
|
77
|
+
* Reads latest telemetry and alerts for one device (`GET /v1/slim/telemetry/{deviceId}`).
|
|
78
|
+
*/
|
|
26
79
|
export declare function getSlimDeviceTelemetry(this: OvokClient, deviceId: string, requestOptions?: MedplumRequestOptions): Promise<SlimDeviceTelemetry>;
|
|
80
|
+
/**
|
|
81
|
+
* Lists the effective observation ids per device, keyed by device id (`GET /v1/slim/telemetry/effectiveIds`).
|
|
82
|
+
*/
|
|
27
83
|
export declare function listSlimEffectiveObservationIds(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<Record<string, SlimObservationIds>>;
|
|
84
|
+
/**
|
|
85
|
+
* Lists the last observation ids per device, keyed by device id (`GET /v1/slim/telemetry/lastIds`).
|
|
86
|
+
*/
|
|
28
87
|
export declare function listSlimLastObservationIds(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<Record<string, SlimObservationIds>>;
|
|
88
|
+
/**
|
|
89
|
+
* Reads the effective observation ids of one device (`GET /v1/slim/telemetry/{deviceId}/effectiveIds`).
|
|
90
|
+
*/
|
|
29
91
|
export declare function getSlimDeviceEffectiveObservationIds(this: OvokClient, deviceId: string, requestOptions?: MedplumRequestOptions): Promise<Omit<SlimObservationIds, "batch">>;
|
|
92
|
+
/**
|
|
93
|
+
* Reads the last observation ids of one device (`GET /v1/slim/telemetry/{deviceId}/lastIds`).
|
|
94
|
+
*/
|
|
30
95
|
export declare function getSlimDeviceLastObservationIds(this: OvokClient, deviceId: string, requestOptions?: MedplumRequestOptions): Promise<SlimObservationIds>;
|
|
31
|
-
/**
|
|
96
|
+
/**
|
|
97
|
+
* Lists notifications of any type (`GET /v1/slim/notifications`).
|
|
98
|
+
*
|
|
99
|
+
* @deprecated Use listSlimOutOfBedNotifications, listSlimAlarms, or listSlimMedicalNotifications.
|
|
100
|
+
*/
|
|
32
101
|
export declare function listSlimNotifications(this: OvokClient, params?: SlimNotificationsQuery, requestOptions?: MedplumRequestOptions): Promise<SlimNotificationsResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* Reads the most recent notifications (`GET /v1/slim/notifications/recent`).
|
|
104
|
+
*/
|
|
33
105
|
export declare function getRecentSlimNotifications(this: OvokClient, count?: number, requestOptions?: MedplumRequestOptions): Promise<SlimRecentNotificationsResponse>;
|
|
106
|
+
/**
|
|
107
|
+
* Lists alarm notifications, paged (`GET /v1/slim/notifications/alarms`).
|
|
108
|
+
*/
|
|
34
109
|
export declare function listSlimAlarms(this: OvokClient, params?: SlimAlarmQuery, requestOptions?: MedplumRequestOptions): Promise<SlimAlarmsPage>;
|
|
35
|
-
/**
|
|
110
|
+
/**
|
|
111
|
+
* Acknowledges an alarm notification (`PATCH /v1/slim/notifications/{id}/ack`).
|
|
112
|
+
*
|
|
113
|
+
* Can take about 12 s; a 503 signals_unavailable means it was not confirmed, so repeat after retryAfterMs (safe to repeat).
|
|
114
|
+
*/
|
|
36
115
|
export declare function acknowledgeSlimAlarm(this: OvokClient, notificationId: string, requestOptions?: MedplumRequestOptions): Promise<SlimNotification>;
|
|
116
|
+
/**
|
|
117
|
+
* Reads the most recent alarm notifications (`GET /v1/slim/notifications/recent/alarms`).
|
|
118
|
+
*/
|
|
37
119
|
export declare function getRecentSlimAlarms(this: OvokClient, count?: number, requestOptions?: MedplumRequestOptions): Promise<SlimRecentAlarms>;
|
|
38
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* Alias of `getRecentSlimAlarms`.
|
|
122
|
+
*/
|
|
39
123
|
export declare function getRecentAlarms(this: OvokClient, count?: number, requestOptions?: MedplumRequestOptions): Promise<SlimRecentAlarms>;
|
|
124
|
+
/**
|
|
125
|
+
* Reads the most recent out-of-bed notifications (`GET /v1/slim/notifications/recent/oob`).
|
|
126
|
+
*/
|
|
40
127
|
export declare function getRecentSlimOutOfBed(this: OvokClient, count?: number, requestOptions?: MedplumRequestOptions): Promise<SlimRecentOutOfBed>;
|
|
41
|
-
/**
|
|
128
|
+
/**
|
|
129
|
+
* Alias of `getRecentSlimOutOfBed`.
|
|
130
|
+
*/
|
|
42
131
|
export declare function getRecentOutOfBed(this: OvokClient, count?: number, requestOptions?: MedplumRequestOptions): Promise<SlimRecentOutOfBed>;
|
|
43
|
-
/**
|
|
132
|
+
/**
|
|
133
|
+
* Lists out-of-bed notifications (`GET /v1/slim/notifications/oob`).
|
|
134
|
+
*
|
|
135
|
+
* Omitting status lists new and reviewed rows; active is new, completed reviewed, and revoked hand-closed.
|
|
136
|
+
*/
|
|
44
137
|
export declare function listSlimOutOfBedNotifications(this: OvokClient, params?: Omit<SlimNotificationsQuery, "type">, requestOptions?: MedplumRequestOptions): Promise<SlimNotificationsResponse>;
|
|
138
|
+
/**
|
|
139
|
+
* Lists medical (vital-sign) notifications, cursor-paged (`GET /v1/slim/notifications/medical`).
|
|
140
|
+
*/
|
|
45
141
|
export declare function listSlimMedicalNotifications(this: OvokClient, params?: SlimMedicalNotificationsQuery, requestOptions?: MedplumRequestOptions): Promise<SlimMedicalNotificationsPage>;
|
|
46
|
-
/**
|
|
142
|
+
/**
|
|
143
|
+
* Reads the most recent medical notifications (`GET /v1/slim/notifications/recent/medical`).
|
|
144
|
+
*
|
|
145
|
+
* During a Signals outage, this may return the last good page from up to 10 minutes ago, without a marker.
|
|
146
|
+
*/
|
|
47
147
|
export declare function getRecentSlimMedicalNotifications(this: OvokClient, count?: number, requestOptions?: MedplumRequestOptions): Promise<SlimRecentNotificationsResponse>;
|
|
148
|
+
/**
|
|
149
|
+
* Reads one medical notification episode (`GET /v1/slim/notifications/medical/{episodeId}`).
|
|
150
|
+
*/
|
|
48
151
|
export declare function getSlimMedicalNotification(this: OvokClient, episodeId: string, requestOptions?: MedplumRequestOptions): Promise<SlimMedicalNotificationDetail>;
|
|
49
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* Acknowledges a medical notification episode (`POST /v1/slim/notifications/medical/{episodeId}/ack`).
|
|
154
|
+
*
|
|
155
|
+
* Can take about 12 s; a 503 signals_unavailable means it was not confirmed, so repeat after retryAfterMs (safe to repeat).
|
|
156
|
+
*/
|
|
50
157
|
export declare function acknowledgeSlimMedicalNotification(this: OvokClient, episodeId: string, requestOptions?: MedplumRequestOptions): Promise<SlimMedicalNotificationRow>;
|
|
51
|
-
/**
|
|
158
|
+
/**
|
|
159
|
+
* Alias of `acknowledgeSlimAlarm`.
|
|
160
|
+
*/
|
|
52
161
|
export declare function acknowledgeSlimNotification(this: OvokClient, notificationId: string, requestOptions?: MedplumRequestOptions): Promise<SlimNotification>;
|
|
53
|
-
/**
|
|
162
|
+
/**
|
|
163
|
+
* Reads the project's v1 vital-sign limits (`GET /v1/slim/threshold`).
|
|
164
|
+
*
|
|
165
|
+
* A home with no stored limits reads as the default template, not as unset.
|
|
166
|
+
*/
|
|
54
167
|
export declare function getSlimThreshold(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<SlimThreshold>;
|
|
55
|
-
/**
|
|
168
|
+
/**
|
|
169
|
+
* Updates the project's v1 vital-sign limits; never retried (`PUT /v1/slim/threshold`).
|
|
170
|
+
*
|
|
171
|
+
* A 502 means Signals did not take every resident's limits and nothing was written.
|
|
172
|
+
*/
|
|
56
173
|
export declare function updateSlimThreshold(this: OvokClient, body: {
|
|
57
174
|
settings: SlimThresholdSettingsUpdateV1;
|
|
58
175
|
}, requestOptions?: MedplumRequestOptions): Promise<SlimThreshold>;
|
|
176
|
+
/**
|
|
177
|
+
* Reads one resident's v1 limits (`GET /v1/slim/threshold/patient/{id}`).
|
|
178
|
+
*/
|
|
59
179
|
export declare function getSlimPatientThreshold(this: OvokClient, patientId: string, requestOptions?: MedplumRequestOptions): Promise<Record<string, unknown>>;
|
|
60
|
-
/**
|
|
180
|
+
/**
|
|
181
|
+
* Updates one resident's v1 limits; never retried (`PUT /v1/slim/threshold/patient/{id}`).
|
|
182
|
+
*
|
|
183
|
+
* 409 means another save for this resident is running and nothing changed; wait briefly, then send again.
|
|
184
|
+
*/
|
|
61
185
|
export declare function updateSlimPatientThreshold(this: OvokClient, patientId: string, body: {
|
|
62
186
|
settings: SlimThresholdSettingsUpdateV1;
|
|
63
187
|
}, requestOptions?: MedplumRequestOptions): Promise<Record<string, unknown>>;
|
|
64
|
-
/**
|
|
188
|
+
/**
|
|
189
|
+
* Reads the project's v2 vital-sign limits (`GET /v2/slim/threshold`).
|
|
190
|
+
*
|
|
191
|
+
* A home with no stored limits reads as the default template, not as unset.
|
|
192
|
+
*/
|
|
65
193
|
export declare function getSlimThresholdV2(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<SlimThresholdV2>;
|
|
66
|
-
/**
|
|
194
|
+
/**
|
|
195
|
+
* Updates the project's v2 vital-sign limits; never retried (`PUT /v2/slim/threshold`).
|
|
196
|
+
*
|
|
197
|
+
* A 502 means Signals did not take every resident's limits and nothing was written.
|
|
198
|
+
*/
|
|
67
199
|
export declare function updateSlimThresholdV2(this: OvokClient, body: SlimThresholdV2Update, requestOptions?: MedplumRequestOptions): Promise<SlimThresholdV2>;
|
|
200
|
+
/**
|
|
201
|
+
* Reads one resident's v2 limits (`GET /v2/slim/threshold/patient/{id}`).
|
|
202
|
+
*/
|
|
68
203
|
export declare function getSlimPatientThresholdV2(this: OvokClient, patientId: string, requestOptions?: MedplumRequestOptions): Promise<SlimPatientThresholdV2>;
|
|
69
|
-
/**
|
|
204
|
+
/**
|
|
205
|
+
* Updates one resident's v2 limits; never retried (`PUT /v2/slim/threshold/patient/{id}`).
|
|
206
|
+
*
|
|
207
|
+
* 409 means another save for this resident is running and nothing changed; wait briefly, then send again.
|
|
208
|
+
*/
|
|
70
209
|
export declare function updateSlimPatientThresholdV2(this: OvokClient, patientId: string, body: SlimThresholdV2Update, requestOptions?: MedplumRequestOptions): Promise<SlimPatientThresholdV2>;
|
|
210
|
+
/**
|
|
211
|
+
* Reads historical heart-rate or respiratory-rate graphs for a resident (`GET /v1/slim/trends/graphs`).
|
|
212
|
+
*/
|
|
71
213
|
export declare function getSlimTrends(this: OvokClient, params: {
|
|
72
214
|
patientId: string;
|
|
73
215
|
startDate: string;
|
|
74
216
|
endDate: string;
|
|
75
217
|
graphType: SlimHistoricalGraphType | readonly SlimHistoricalGraphType[];
|
|
76
218
|
}, requestOptions?: MedplumRequestOptions): Promise<SlimTrends>;
|
|
77
|
-
/**
|
|
219
|
+
/**
|
|
220
|
+
* Reads raw-reading graphs for a resident over a time range (`GET /v1/slim/trends/realtime`).
|
|
221
|
+
*
|
|
222
|
+
* At most 20 calls per minute per caller; load once per view and wait retryAfterMs after 503.
|
|
223
|
+
*/
|
|
78
224
|
export declare function getSlimRealtimeTrends(this: OvokClient, params: {
|
|
79
225
|
patientId: string;
|
|
80
226
|
startTime: string;
|
|
81
227
|
endTime: string;
|
|
82
228
|
graphType: SlimGraphType | readonly SlimGraphType[];
|
|
83
229
|
}, requestOptions?: MedplumRequestOptions): Promise<SlimTrends>;
|
|
230
|
+
/**
|
|
231
|
+
* Reads a resident's sleep statistics for the days up to `endDate` (`GET /v1/slim/sleep/statistics`).
|
|
232
|
+
*/
|
|
84
233
|
export declare function getSlimSleepStatistics(this: OvokClient, params: {
|
|
85
234
|
endDate: string;
|
|
86
235
|
lastDayCount?: number;
|
|
87
236
|
patientId: string;
|
|
88
237
|
}, requestOptions?: MedplumRequestOptions): Promise<SlimSleepStatistics>;
|
|
238
|
+
/**
|
|
239
|
+
* Lists locations (floor, room, bed), paged (`GET /v1/slim/location`).
|
|
240
|
+
*/
|
|
89
241
|
export declare function listSlimLocations(this: OvokClient, params?: SlimLocationQuery, requestOptions?: MedplumRequestOptions): Promise<SlimPage<SlimLocation>>;
|
|
242
|
+
/**
|
|
243
|
+
* Reads one location by id (`GET /v1/slim/location/{id}`).
|
|
244
|
+
*/
|
|
90
245
|
export declare function getSlimLocation(this: OvokClient, locationId: string, requestOptions?: MedplumRequestOptions): Promise<SlimLocation>;
|
|
246
|
+
/**
|
|
247
|
+
* Creates a location (`POST /v1/slim/location`).
|
|
248
|
+
*/
|
|
91
249
|
export declare function createSlimLocation(this: OvokClient, body: SlimCreateLocation, requestOptions?: MedplumRequestOptions): Promise<SlimLocation>;
|
|
92
|
-
/**
|
|
250
|
+
/**
|
|
251
|
+
* Updates a location, including its device and resident (`PUT /v1/slim/location/{id}`).
|
|
252
|
+
*
|
|
253
|
+
* 422 Device not found means the requested device is unreadable; nothing was saved.
|
|
254
|
+
*/
|
|
93
255
|
export declare function updateSlimLocation(this: OvokClient, locationId: string, body: SlimUpdateLocation, requestOptions?: MedplumRequestOptions): Promise<SlimLocation>;
|
|
256
|
+
/**
|
|
257
|
+
* Deletes a location (`DELETE /v1/slim/location/{id}`).
|
|
258
|
+
*/
|
|
94
259
|
export declare function deleteSlimLocation(this: OvokClient, locationId: string, requestOptions?: MedplumRequestOptions): Promise<void>;
|
|
260
|
+
/**
|
|
261
|
+
* Lists zones with device counts, paged (`GET /v1/slim/zones`).
|
|
262
|
+
*/
|
|
95
263
|
export declare function listSlimZones(this: OvokClient, params?: {
|
|
96
264
|
page?: number;
|
|
97
265
|
count?: number;
|
|
@@ -99,40 +267,119 @@ export declare function listSlimZones(this: OvokClient, params?: {
|
|
|
99
267
|
orderBy?: "ASC" | "DESC";
|
|
100
268
|
search?: string;
|
|
101
269
|
}, requestOptions?: MedplumRequestOptions): Promise<SlimPage<SlimZone>>;
|
|
270
|
+
/**
|
|
271
|
+
* Reads one zone with its locations, devices and residents (`GET /v1/slim/zones/{id}`).
|
|
272
|
+
*/
|
|
102
273
|
export declare function getSlimZone(this: OvokClient, zoneId: string, requestOptions?: MedplumRequestOptions): Promise<SlimZoneDetail>;
|
|
274
|
+
/**
|
|
275
|
+
* Reads device counts per zone (`GET /v1/slim/zones/device-counts`).
|
|
276
|
+
*/
|
|
103
277
|
export declare function getSlimZoneDeviceCounts(this: OvokClient, params?: {
|
|
104
278
|
all?: boolean;
|
|
105
279
|
effectiveSleepStatus?: string;
|
|
106
280
|
includeUnassigned?: boolean;
|
|
107
281
|
includeEmpty?: boolean;
|
|
108
282
|
}, requestOptions?: MedplumRequestOptions): Promise<Record<string, unknown>>;
|
|
283
|
+
/**
|
|
284
|
+
* Creates a PDF report for a resident and returns its download link (`POST /v1/slim/export/pdf`).
|
|
285
|
+
*/
|
|
109
286
|
export declare function exportSlimPatientPdf(this: OvokClient, body: SlimExportPdfRequest, requestOptions?: MedplumRequestOptions): Promise<SlimExportPdf>;
|
|
287
|
+
/**
|
|
288
|
+
* Lists the current project's users, paged (`GET /v1/slim/project/users`).
|
|
289
|
+
*/
|
|
110
290
|
export declare function listSlimProjectUsers(this: OvokClient, params?: SlimProjectUsersQuery, requestOptions?: MedplumRequestOptions): Promise<SlimProjectUsersPage>;
|
|
291
|
+
/**
|
|
292
|
+
* Creates a child project (`POST /v1/slim/project/child`).
|
|
293
|
+
*/
|
|
111
294
|
export declare function createSlimChildProject(this: OvokClient, body: SlimChildProjectInput, requestOptions?: MedplumRequestOptions): Promise<{
|
|
295
|
+
/** Id of the created child project. */
|
|
112
296
|
projectId: string;
|
|
297
|
+
/** Always true when the call succeeds. */
|
|
113
298
|
success: true;
|
|
114
299
|
}>;
|
|
300
|
+
/**
|
|
301
|
+
* Reads the current, parent and child projects (`GET /v1/slim/project/child`).
|
|
302
|
+
*/
|
|
115
303
|
export declare function getSlimProjectRelationships(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<SlimProjectRelationships>;
|
|
304
|
+
/**
|
|
305
|
+
* Reads the current, parent and child projects with device counts (`GET /v2/slim/project/child`).
|
|
306
|
+
*/
|
|
116
307
|
export declare function getSlimProjectRelationshipsV2(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<SlimProjectRelationshipsV2>;
|
|
308
|
+
/**
|
|
309
|
+
* Deletes a child project (`DELETE /v1/slim/project/child/{id}`).
|
|
310
|
+
*/
|
|
117
311
|
export declare function deleteSlimChildProject(this: OvokClient, subProjectId: string, requestOptions?: MedplumRequestOptions): Promise<{
|
|
312
|
+
/** Always true when the call succeeds. */
|
|
118
313
|
success: true;
|
|
119
314
|
}>;
|
|
315
|
+
/**
|
|
316
|
+
* Lists the users of a given project, paged (`GET /v1/slim/project/{id}/users`).
|
|
317
|
+
*/
|
|
120
318
|
export declare function listSlimProjectUsersById(this: OvokClient, projectId: string, params?: SlimProjectUsersQuery, requestOptions?: MedplumRequestOptions): Promise<SlimProjectUsersPage>;
|
|
319
|
+
/**
|
|
320
|
+
* Reads device counts of a project (`GET /v1/slim/project/{id}/device-counts`).
|
|
321
|
+
*/
|
|
121
322
|
export declare function getSlimProjectDeviceCounts(this: OvokClient, projectId: string, requestOptions?: MedplumRequestOptions): Promise<SlimProjectDeviceCounts>;
|
|
323
|
+
/**
|
|
324
|
+
* Reads resident counts of a project (`GET /v1/slim/project/{id}/patient-counts`).
|
|
325
|
+
*/
|
|
122
326
|
export declare function getSlimProjectPatientCounts(this: OvokClient, projectId: string, requestOptions?: MedplumRequestOptions): Promise<SlimProjectPatientCounts>;
|
|
327
|
+
/**
|
|
328
|
+
* Updates a project (`PUT /v1/slim/project/{id}`).
|
|
329
|
+
*/
|
|
123
330
|
export declare function updateSlimProject(this: OvokClient, projectId: string, body: SlimChildProjectInput, requestOptions?: MedplumRequestOptions): Promise<SlimProject>;
|
|
331
|
+
/**
|
|
332
|
+
* Reads a project by id (`GET /v1/slim/project/{id}`).
|
|
333
|
+
*/
|
|
124
334
|
export declare function getSlimProject(this: OvokClient, projectId: string, requestOptions?: MedplumRequestOptions): Promise<SlimProject>;
|
|
335
|
+
/**
|
|
336
|
+
* Lists access policies, paged (`GET /v1/slim/policy`).
|
|
337
|
+
*/
|
|
125
338
|
export declare function listSlimPolicies(this: OvokClient, params?: SlimPolicyListQuery, requestOptions?: MedplumRequestOptions): Promise<SlimPolicyList>;
|
|
339
|
+
/**
|
|
340
|
+
* Reads an access policy and its members (`GET /v1/slim/policy/{id}`).
|
|
341
|
+
*/
|
|
126
342
|
export declare function getSlimPolicy(this: OvokClient, policyId: string, requestOptions?: MedplumRequestOptions): Promise<SlimPolicyResponse>;
|
|
343
|
+
/**
|
|
344
|
+
* Creates an access policy with its members (`POST /v1/slim/policy`).
|
|
345
|
+
*/
|
|
127
346
|
export declare function createSlimPolicy(this: OvokClient, body: SlimCreatePolicy, requestOptions?: MedplumRequestOptions): Promise<SlimPolicyResponse>;
|
|
347
|
+
/**
|
|
348
|
+
* Updates an access policy and its members (`PUT /v1/slim/policy/{id}`).
|
|
349
|
+
*/
|
|
128
350
|
export declare function updateSlimPolicy(this: OvokClient, policyId: string, body: SlimUpdatePolicy, requestOptions?: MedplumRequestOptions): Promise<SlimPolicyResponse>;
|
|
351
|
+
/**
|
|
352
|
+
* Deletes an access policy (`DELETE /v1/slim/policy/{id}`).
|
|
353
|
+
*/
|
|
129
354
|
export declare function deleteSlimPolicy(this: OvokClient, policyId: string, requestOptions?: MedplumRequestOptions): Promise<void>;
|
|
355
|
+
/**
|
|
356
|
+
* Reads an organization by id (`GET /v1/slim/organization/{id}`).
|
|
357
|
+
*/
|
|
130
358
|
export declare function getSlimOrganization(this: OvokClient, organizationId: string, requestOptions?: MedplumRequestOptions): Promise<SlimOrganization>;
|
|
359
|
+
/**
|
|
360
|
+
* Creates an organization (`POST /v1/slim/organization`).
|
|
361
|
+
*/
|
|
131
362
|
export declare function createSlimOrganization(this: OvokClient, body: SlimOrganizationInput, requestOptions?: MedplumRequestOptions): Promise<SlimOrganization>;
|
|
363
|
+
/**
|
|
364
|
+
* Updates an organization (`PUT /v1/slim/organization/{id}`).
|
|
365
|
+
*/
|
|
132
366
|
export declare function updateSlimOrganization(this: OvokClient, organizationId: string, body: SlimOrganizationInput, requestOptions?: MedplumRequestOptions): Promise<SlimOrganization>;
|
|
367
|
+
/**
|
|
368
|
+
* Deletes an organization (`DELETE /v1/slim/organization/{id}`).
|
|
369
|
+
*/
|
|
133
370
|
export declare function deleteSlimOrganization(this: OvokClient, organizationId: string, requestOptions?: MedplumRequestOptions): Promise<void>;
|
|
371
|
+
/**
|
|
372
|
+
* Invites a practitioner to the project (`POST /v1/slim/invite/practitioner`).
|
|
373
|
+
*/
|
|
134
374
|
export declare function inviteSlimPractitioner(this: OvokClient, body: SlimPractitionerInviteInput, requestOptions?: MedplumRequestOptions): Promise<SlimPractitionerInviteResponse>;
|
|
375
|
+
/**
|
|
376
|
+
* Deletes a patient or practitioner user by profile id (`DELETE /v1/slim/user/{type}/{id}`).
|
|
377
|
+
*/
|
|
135
378
|
export declare function deleteSlimUser(this: OvokClient, profileType: SlimUserProfileType, profileId: string, requestOptions?: MedplumRequestOptions): Promise<{
|
|
379
|
+
/** Whether the user was deleted. */
|
|
136
380
|
success: boolean;
|
|
137
381
|
}>;
|
|
382
|
+
/**
|
|
383
|
+
* Reads service health and dependency status (`GET /v1/slim/health`).
|
|
384
|
+
*/
|
|
138
385
|
export declare function getSlimHealth(this: OvokClient, requestOptions?: MedplumRequestOptions): Promise<SlimHealth>;
|