@ovok/core 0.4.49-rc.3 → 0.4.49-rc.5
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/bundle-entry-status.d.ts +3 -0
- package/dist/client/observation/bundle-entry-status.js +13 -0
- package/dist/client/observation/fhir-systems.d.ts +7 -0
- package/dist/client/observation/fhir-systems.js +8 -1
- package/dist/client/observation/methods/generateObservationBodiesByMeasurement.d.ts +3 -0
- package/dist/client/observation/methods/generateObservationBodiesByMeasurement.js +10 -65
- 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 +72 -12
- 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 +11 -7
- package/dist/client/observation/observation-bundle-utils.js +61 -71
- package/dist/client/observation/observation-coding.d.ts +12 -0
- package/dist/client/observation/observation-coding.js +69 -0
- package/dist/client/observation/observation-groups.d.ts +12 -0
- package/dist/client/observation/observation-groups.js +51 -0
- package/dist/client/observation/reading-group-backfill.d.ts +13 -0
- package/dist/client/observation/reading-group-backfill.js +79 -0
- package/dist/client/observation/reading-group.d.ts +14 -0
- package/dist/client/observation/reading-group.js +85 -0
- package/dist/client/observation/series.d.ts +28 -5
- package/dist/client/observation/series.js +16 -6
- package/dist/client/observation/services/base-observation-service.d.ts +1 -1
- package/dist/client/observation/services/base-observation-service.js +6 -12
- package/dist/client/observation/services/blood-pressure.d.ts +2 -0
- package/dist/client/observation/services/blood-pressure.js +9 -5
- package/dist/client/observation/services/component-observation-services.js +2 -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/ecg-observation-fragments.d.ts +4 -0
- package/dist/client/observation/services/ecg-observation-fragments.js +30 -37
- package/dist/client/observation/services/ecg.d.ts +3 -1
- package/dist/client/observation/services/ecg.js +19 -19
- package/dist/client/observation/services/uric-acid-service.js +2 -13
- package/dist/client/observation/services/urine-analyte-values.d.ts +4 -0
- package/dist/client/observation/services/urine-analyte-values.js +27 -0
- 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 +29 -0
- package/dist/client/observation/types/UrineAnalytes.js +18 -9
- 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/getDeviceObject.js +15 -32
- 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 +23 -8
- 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 +28 -6
- package/dist/client/ovok-client.js +19 -11
- 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 +30 -0
- package/dist/hooks/observation-hooks.js +26 -3
- 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 +64 -3
- package/dist/next/resources/measurements/measurements-resource.js +45 -6
- package/dist/next/resources/measurements/observation-builder.d.ts +6 -1
- package/dist/next/resources/measurements/observation-builder.js +16 -7
- package/dist/next/resources/measurements/offline-measurement-queue-types.d.ts +32 -0
- package/dist/next/resources/measurements/save-error.js +3 -4
- 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-socket.js +12 -5
- package/dist/next/resources/realtime/realtime-types.d.ts +19 -1
- 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 +52 -13
|
@@ -1,32 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HealthKit quantity sample, as delivered by Apple Health.
|
|
3
|
+
*
|
|
4
|
+
* @category measurements
|
|
5
|
+
*/
|
|
1
6
|
export interface Sample {
|
|
7
|
+
/** HealthKit device that produced the sample. */
|
|
2
8
|
device?: HKDevice | undefined;
|
|
9
|
+
/** Sampled value, in `unit`. */
|
|
3
10
|
quantity: number;
|
|
11
|
+
/** ISO 8601 end of the sample. */
|
|
4
12
|
endDate: string;
|
|
13
|
+
/** ISO 8601 start of the sample. */
|
|
5
14
|
startDate: string;
|
|
15
|
+
/** Unit of `quantity`. */
|
|
6
16
|
unit: string;
|
|
17
|
+
/** App and OS that recorded the sample. */
|
|
7
18
|
sourceRevision: {
|
|
19
|
+
/** Operating system version of the source. */
|
|
8
20
|
operatingSystemVersion: string;
|
|
21
|
+
/** Version of the source app. */
|
|
9
22
|
version: string;
|
|
23
|
+
/** Hardware product type of the source. */
|
|
10
24
|
productType: string;
|
|
25
|
+
/** The app that wrote the sample. */
|
|
11
26
|
source: {
|
|
27
|
+
/** Bundle identifier of the source app. */
|
|
12
28
|
bundleIdentifier: string;
|
|
29
|
+
/** Name of the source app. */
|
|
13
30
|
name: string;
|
|
14
31
|
};
|
|
15
32
|
};
|
|
33
|
+
/** HealthKit sample UUID. */
|
|
16
34
|
uuid: string;
|
|
35
|
+
/** HealthKit quantity type identifier. */
|
|
17
36
|
quantityType: string;
|
|
37
|
+
/** Sample metadata. */
|
|
18
38
|
metadata: {
|
|
19
39
|
[key: string]: number | string;
|
|
20
40
|
};
|
|
21
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* HealthKit device description.
|
|
44
|
+
*
|
|
45
|
+
* @category measurements
|
|
46
|
+
*/
|
|
22
47
|
type HKDevice = {
|
|
48
|
+
/** Device name. */
|
|
23
49
|
readonly name: string;
|
|
50
|
+
/** Firmware version, or null if unknown. */
|
|
24
51
|
readonly firmwareVersion: string | null;
|
|
52
|
+
/** Hardware version. */
|
|
25
53
|
readonly hardwareVersion: string;
|
|
54
|
+
/** Manufacturer-local identifier, or null. */
|
|
26
55
|
readonly localIdentifier: string | null;
|
|
56
|
+
/** Device manufacturer. */
|
|
27
57
|
readonly manufacturer: string;
|
|
58
|
+
/** Device model. */
|
|
28
59
|
readonly model: string;
|
|
60
|
+
/** Software version. */
|
|
29
61
|
readonly softwareVersion: string;
|
|
62
|
+
/** Unique device identifier (UDI), or null. */
|
|
30
63
|
readonly udiDeviceIdentifier: string | null;
|
|
31
64
|
};
|
|
32
65
|
export {};
|
package/dist/client/observation/types/generate-observation-body/GenerateObservationBodyParams.d.ts
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { Measurement } from "../../../../types";
|
|
2
2
|
import { MeasurementDevice } from "../measurement/MeasurementDevice";
|
|
3
|
+
/**
|
|
4
|
+
* Input for building an Observation body from a measurement.
|
|
5
|
+
*
|
|
6
|
+
* @category measurements
|
|
7
|
+
*/
|
|
3
8
|
export type GenerateObservationBodyParams = {
|
|
9
|
+
/** Device that took the measurement. */
|
|
4
10
|
device?: MeasurementDevice;
|
|
11
|
+
/** When the measurement was taken. */
|
|
5
12
|
effectiveDateTime?: Date;
|
|
13
|
+
/** ID of the patient the measurement belongs to. */
|
|
6
14
|
patientId?: string;
|
|
7
15
|
/** Stable ID from the originating device reading. */
|
|
8
16
|
sourceId?: string;
|
|
17
|
+
/** The measurement to convert. */
|
|
9
18
|
measurement: Measurement;
|
|
10
19
|
};
|
|
@@ -5,8 +5,11 @@ import { Measurement } from "./Measurement";
|
|
|
5
5
|
* One BabySleep observation, such as a clip sample or a session summary.
|
|
6
6
|
* Core preserves the coded components supplied by the device adapter rather than
|
|
7
7
|
* assigning vendor-specific meaning to sleep states, posture, or device status.
|
|
8
|
+
* @category measurements
|
|
8
9
|
*/
|
|
9
10
|
export type BabySleepMeasurement = Measurement & {
|
|
11
|
+
/** Always `babySleep`. */
|
|
10
12
|
measurementTypeKey: MeasurementTypeKey.babySleep;
|
|
13
|
+
/** Coded observation values supplied by the device adapter. */
|
|
11
14
|
components: ObservationComponent[];
|
|
12
15
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
2
2
|
import { Measurement } from "./Measurement";
|
|
3
|
+
/**
|
|
4
|
+
* Blood glucose measurement.
|
|
5
|
+
*
|
|
6
|
+
* @category measurements
|
|
7
|
+
*/
|
|
3
8
|
export type BloodGlucoseMeasurement = Measurement & {
|
|
9
|
+
/** Always `bloodGlucose`. */
|
|
4
10
|
measurementTypeKey: MeasurementTypeKey.bloodGlucose;
|
|
11
|
+
/** Blood glucose value as reported by the device. */
|
|
5
12
|
bloodGlucose?: number;
|
|
6
13
|
};
|
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
2
2
|
import { BloodPressureStates } from "./BloodPressureStates";
|
|
3
3
|
import { Measurement } from "./Measurement";
|
|
4
|
+
/**
|
|
5
|
+
* Blood pressure measurement.
|
|
6
|
+
*
|
|
7
|
+
* @category measurements
|
|
8
|
+
*/
|
|
4
9
|
export type BloodPressureMeasurement = Measurement & {
|
|
10
|
+
/** Always `bloodPressure`. */
|
|
5
11
|
measurementTypeKey: MeasurementTypeKey.bloodPressure;
|
|
12
|
+
/** Diastolic pressure, in mmHg. */
|
|
6
13
|
diastolic?: number;
|
|
14
|
+
/** Systolic pressure, in mmHg. */
|
|
7
15
|
systolic?: number;
|
|
8
16
|
/** Mean arterial pressure, in mmHg. Reported by the device rather than derived. */
|
|
9
17
|
meanArterialPressure?: number;
|
|
18
|
+
/** Heart rate, in beats per minute. */
|
|
10
19
|
heartRate?: number;
|
|
11
20
|
/** User memory slot reported by a device, when available. */
|
|
12
21
|
memorySlot?: number;
|
|
22
|
+
/** Device status of the reading. */
|
|
13
23
|
status?: BloodPressureStates;
|
|
14
24
|
/** Whether the device detected an irregular heartbeat during the reading. */
|
|
15
25
|
irregularHeartbeat?: boolean;
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Status reported by the blood pressure monitor for a reading.
|
|
3
|
+
*
|
|
4
|
+
* @category measurements
|
|
5
|
+
*/
|
|
1
6
|
export declare enum BloodPressureStates {
|
|
7
|
+
/** The reading is normal. */
|
|
2
8
|
REGULAR = "Regular",
|
|
9
|
+
/** The cuff is loose and the reading could not be analyzed. */
|
|
3
10
|
LOOSE_SLEEVE = "The sleeve is loose. Unable to analyze.",
|
|
11
|
+
/** Movement or interference was detected during the reading. */
|
|
4
12
|
DISTURB_DETECTED = "Disturb Detected.",
|
|
13
|
+
/** The signal was too weak. */
|
|
5
14
|
WEAK_SIGNAL = "Weak Signal.",
|
|
15
|
+
/** The device reported an unknown error. */
|
|
6
16
|
DEVICE_ERROR = "Unknown device error."
|
|
7
17
|
}
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BloodPressureStates = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Status reported by the blood pressure monitor for a reading.
|
|
6
|
+
*
|
|
7
|
+
* @category measurements
|
|
8
|
+
*/
|
|
4
9
|
var BloodPressureStates;
|
|
5
10
|
(function (BloodPressureStates) {
|
|
11
|
+
/** The reading is normal. */
|
|
6
12
|
BloodPressureStates["REGULAR"] = "Regular";
|
|
13
|
+
/** The cuff is loose and the reading could not be analyzed. */
|
|
7
14
|
BloodPressureStates["LOOSE_SLEEVE"] = "The sleeve is loose. Unable to analyze.";
|
|
15
|
+
/** Movement or interference was detected during the reading. */
|
|
8
16
|
BloodPressureStates["DISTURB_DETECTED"] = "Disturb Detected.";
|
|
17
|
+
/** The signal was too weak. */
|
|
9
18
|
BloodPressureStates["WEAK_SIGNAL"] = "Weak Signal.";
|
|
19
|
+
/** The device reported an unknown error. */
|
|
10
20
|
BloodPressureStates["DEVICE_ERROR"] = "Unknown device error.";
|
|
11
21
|
})(BloodPressureStates || (exports.BloodPressureStates = BloodPressureStates = {}));
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
2
2
|
import { Measurement } from "./Measurement";
|
|
3
|
+
/**
|
|
4
|
+
* Body temperature measurement.
|
|
5
|
+
*
|
|
6
|
+
* @category measurements
|
|
7
|
+
*/
|
|
3
8
|
export type BodyTemperatureMeasurement = Measurement & {
|
|
9
|
+
/** Always `temperature`. */
|
|
4
10
|
measurementTypeKey: MeasurementTypeKey.temperature;
|
|
11
|
+
/** Body temperature as reported by the device. */
|
|
5
12
|
bodyTemp?: number;
|
|
6
13
|
};
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
2
2
|
import { Measurement } from "./Measurement";
|
|
3
|
+
/**
|
|
4
|
+
* Body weight measurement.
|
|
5
|
+
*
|
|
6
|
+
* @category measurements
|
|
7
|
+
*/
|
|
3
8
|
export type BodyWeightMeasurement = Measurement & {
|
|
9
|
+
/** Always `bodyWeight`. */
|
|
4
10
|
measurementTypeKey: MeasurementTypeKey.bodyWeight;
|
|
11
|
+
/** Body weight value as reported by the device. */
|
|
5
12
|
bodyWeight?: number;
|
|
13
|
+
/** Device timestamp of the reading, as a number. */
|
|
6
14
|
timestamp?: number;
|
|
7
15
|
};
|
|
@@ -1,15 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Diagnostic result reported by an ECG device.
|
|
3
|
+
*
|
|
4
|
+
* @category measurements
|
|
5
|
+
*/
|
|
1
6
|
export declare enum EcgDiagnosticFlag {
|
|
7
|
+
/** Regular rhythm. */
|
|
2
8
|
REGULAR = "Regular",
|
|
9
|
+
/** Waveform quality too poor to evaluate. */
|
|
3
10
|
POOR_WAVEFORM = "Poor Waveform",
|
|
11
|
+
/** Electrode lead disconnected. */
|
|
4
12
|
LEAD_OFF = "Lead Off",
|
|
13
|
+
/** High heart rate. */
|
|
5
14
|
HIGH_HR = "High HR",
|
|
15
|
+
/** Low heart rate. */
|
|
6
16
|
LOW_HR = "Low HR",
|
|
17
|
+
/** Irregular RR intervals. */
|
|
7
18
|
RR_IRREGULAR = "Irregular RR",
|
|
19
|
+
/** Premature ventricular contraction. */
|
|
8
20
|
PVC = "PVC",
|
|
21
|
+
/** Cardiac arrest. */
|
|
9
22
|
CARDIAC_ARREST = "Cardiac Arrest",
|
|
23
|
+
/** Atrial fibrillation. */
|
|
10
24
|
ATRIAL_FIBRILLATION = "AFIB",
|
|
25
|
+
/** Wide QRS complex. */
|
|
11
26
|
QRS_WIDE = "QRS Wide",
|
|
27
|
+
/** Long QT interval, as reported by the device. */
|
|
12
28
|
QTC_LONG = "QRS Long",
|
|
29
|
+
/** Short QT interval, as reported by the device. */
|
|
13
30
|
QTC_SHORT = "QRS Short",
|
|
31
|
+
/** Device reported an error. */
|
|
14
32
|
ERROR = "ERROR"
|
|
15
33
|
}
|
|
@@ -1,19 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EcgDiagnosticFlag = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Diagnostic result reported by an ECG device.
|
|
6
|
+
*
|
|
7
|
+
* @category measurements
|
|
8
|
+
*/
|
|
4
9
|
var EcgDiagnosticFlag;
|
|
5
10
|
(function (EcgDiagnosticFlag) {
|
|
11
|
+
/** Regular rhythm. */
|
|
6
12
|
EcgDiagnosticFlag["REGULAR"] = "Regular";
|
|
13
|
+
/** Waveform quality too poor to evaluate. */
|
|
7
14
|
EcgDiagnosticFlag["POOR_WAVEFORM"] = "Poor Waveform";
|
|
15
|
+
/** Electrode lead disconnected. */
|
|
8
16
|
EcgDiagnosticFlag["LEAD_OFF"] = "Lead Off";
|
|
17
|
+
/** High heart rate. */
|
|
9
18
|
EcgDiagnosticFlag["HIGH_HR"] = "High HR";
|
|
19
|
+
/** Low heart rate. */
|
|
10
20
|
EcgDiagnosticFlag["LOW_HR"] = "Low HR";
|
|
21
|
+
/** Irregular RR intervals. */
|
|
11
22
|
EcgDiagnosticFlag["RR_IRREGULAR"] = "Irregular RR";
|
|
23
|
+
/** Premature ventricular contraction. */
|
|
12
24
|
EcgDiagnosticFlag["PVC"] = "PVC";
|
|
25
|
+
/** Cardiac arrest. */
|
|
13
26
|
EcgDiagnosticFlag["CARDIAC_ARREST"] = "Cardiac Arrest";
|
|
27
|
+
/** Atrial fibrillation. */
|
|
14
28
|
EcgDiagnosticFlag["ATRIAL_FIBRILLATION"] = "AFIB";
|
|
29
|
+
/** Wide QRS complex. */
|
|
15
30
|
EcgDiagnosticFlag["QRS_WIDE"] = "QRS Wide";
|
|
31
|
+
/** Long QT interval, as reported by the device. */
|
|
16
32
|
EcgDiagnosticFlag["QTC_LONG"] = "QRS Long";
|
|
33
|
+
/** Short QT interval, as reported by the device. */
|
|
17
34
|
EcgDiagnosticFlag["QTC_SHORT"] = "QRS Short";
|
|
35
|
+
/** Device reported an error. */
|
|
18
36
|
EcgDiagnosticFlag["ERROR"] = "ERROR";
|
|
19
37
|
})(EcgDiagnosticFlag || (exports.EcgDiagnosticFlag = EcgDiagnosticFlag = {}));
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
2
2
|
import { EcgDiagnosticFlag } from "./EcgDiagnosticFlag";
|
|
3
3
|
import { Measurement } from "./Measurement";
|
|
4
|
+
/**
|
|
5
|
+
* ECG measurement.
|
|
6
|
+
*
|
|
7
|
+
* @category measurements
|
|
8
|
+
*/
|
|
4
9
|
export type EcgMeasurement = Measurement & {
|
|
10
|
+
/** Always `ecg`. */
|
|
5
11
|
measurementTypeKey: MeasurementTypeKey.ecg;
|
|
12
|
+
/** Heart rate, in beats per minute. */
|
|
6
13
|
heartRate?: number;
|
|
14
|
+
/** Waveform sample points. */
|
|
7
15
|
diagramPoints?: number[];
|
|
16
|
+
/** Diagnostic result reported by the device. */
|
|
8
17
|
diagnosticResult?: EcgDiagnosticFlag;
|
|
9
18
|
/**
|
|
10
19
|
* Duration of the ECG in seconds
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
2
2
|
import { Measurement } from "./Measurement";
|
|
3
|
+
/**
|
|
4
|
+
* Heart rate measurement.
|
|
5
|
+
*
|
|
6
|
+
* @category measurements
|
|
7
|
+
*/
|
|
3
8
|
export type HeartRateMeasurement = Measurement & {
|
|
9
|
+
/** Always `heartRate`. */
|
|
4
10
|
measurementTypeKey: MeasurementTypeKey.heartRate;
|
|
11
|
+
/** Heart rate, in beats per minute. */
|
|
5
12
|
heartRate?: number;
|
|
6
13
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
2
2
|
import { Measurement } from "./Measurement";
|
|
3
|
+
/**
|
|
4
|
+
* Heart rate variability measurement.
|
|
5
|
+
*
|
|
6
|
+
* @category measurements
|
|
7
|
+
*/
|
|
3
8
|
export type HeartRateVariabilityMeasurement = Measurement & {
|
|
9
|
+
/** Always `heartRateVariability`. */
|
|
4
10
|
measurementTypeKey: MeasurementTypeKey.heartRateVariability;
|
|
11
|
+
/** Heart rate variability value as reported by the device. */
|
|
5
12
|
heartRateVariability?: number;
|
|
6
13
|
};
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
2
2
|
import { Measurement } from "./Measurement";
|
|
3
|
+
/**
|
|
4
|
+
* Lipid panel measurement.
|
|
5
|
+
*
|
|
6
|
+
* @category measurements
|
|
7
|
+
*/
|
|
3
8
|
export type LipidPanelMeasurement = Measurement & {
|
|
9
|
+
/** Always `lipidPanel`. */
|
|
4
10
|
measurementTypeKey: MeasurementTypeKey.lipidPanel;
|
|
11
|
+
/** Total cholesterol, in `unit`. */
|
|
5
12
|
totalCholesterol?: number;
|
|
13
|
+
/** HDL cholesterol, in `unit`. */
|
|
6
14
|
hdlCholesterol?: number;
|
|
15
|
+
/** LDL cholesterol, in `unit`. */
|
|
7
16
|
ldlCholesterol?: number;
|
|
17
|
+
/** Triglycerides, in `unit`. */
|
|
8
18
|
triglycerides?: number;
|
|
19
|
+
/** Ratio of total to HDL cholesterol. */
|
|
9
20
|
totalCholesterolHdlRatio?: number;
|
|
21
|
+
/** Concentration unit of the lipid values. */
|
|
10
22
|
unit: "mg/dL" | "mmol/L";
|
|
11
23
|
};
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { Reference } from "@medplum/fhirtypes";
|
|
2
2
|
import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
3
|
+
/**
|
|
4
|
+
* Fields shared by every measurement.
|
|
5
|
+
*
|
|
6
|
+
* @category measurements
|
|
7
|
+
*/
|
|
3
8
|
export type Measurement = {
|
|
9
|
+
/** Kind of measurement. */
|
|
4
10
|
measurementTypeKey: MeasurementTypeKey;
|
|
11
|
+
/** Observation ID, when the measurement is stored. */
|
|
5
12
|
id?: string;
|
|
13
|
+
/** Reference to the device that took the reading. */
|
|
6
14
|
device?: Reference;
|
|
15
|
+
/** Time the reading was recorded. */
|
|
7
16
|
recordedAt?: Date;
|
|
8
17
|
};
|
|
@@ -6,13 +6,21 @@
|
|
|
6
6
|
* platform (for example, a Bluetooth address on Android and a local UUID on iOS).
|
|
7
7
|
* The manufacturer-reported serial number (`sn`) is used for that FHIR identifier
|
|
8
8
|
* when available; otherwise, the identifier is omitted.
|
|
9
|
+
*
|
|
10
|
+
* @category measurements
|
|
9
11
|
*/
|
|
10
12
|
export type MeasurementDevice = {
|
|
13
|
+
/** Advertised device name. */
|
|
11
14
|
name: string;
|
|
15
|
+
/** Local name the device advertises. */
|
|
12
16
|
localName: string;
|
|
17
|
+
/** Raw manufacturer data advertised by the device. */
|
|
13
18
|
manufacturerData: string;
|
|
19
|
+
/** Manufacturer name reported by the device. */
|
|
14
20
|
manufacturerName?: string;
|
|
21
|
+
/** Model reported by the device. */
|
|
15
22
|
model?: string;
|
|
23
|
+
/** Manufacturer-reported serial number. */
|
|
16
24
|
sn: string;
|
|
17
25
|
/** Runtime association key; not written to the FHIR device identifier. */
|
|
18
26
|
id: string;
|
|
@@ -22,7 +30,9 @@ export type MeasurementDevice = {
|
|
|
22
30
|
* `model`, which often describe the Bluetooth module rather than the product.
|
|
23
31
|
*/
|
|
24
32
|
variant?: {
|
|
33
|
+
/** Brand of the identified product. */
|
|
25
34
|
manufacturer: string;
|
|
35
|
+
/** Model of the identified product. */
|
|
26
36
|
model: string;
|
|
27
37
|
};
|
|
28
38
|
/**
|
|
@@ -2,8 +2,10 @@ import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
|
2
2
|
/**
|
|
3
3
|
* One kind of measurement taken at a fixed interval, such as the heart rate a strap sends every second: one value
|
|
4
4
|
* per slot for each measured property, and `null` for a slot nothing arrived in.
|
|
5
|
+
* @category measurements
|
|
5
6
|
*/
|
|
6
7
|
export type MeasurementSeries = {
|
|
8
|
+
/** Kind of measurement the series holds. */
|
|
7
9
|
measurementTypeKey: MeasurementTypeKey;
|
|
8
10
|
/** When the first slot starts. */
|
|
9
11
|
start: Date;
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
2
2
|
import { Measurement } from "./Measurement";
|
|
3
|
+
/**
|
|
4
|
+
* Pulse oximeter measurement.
|
|
5
|
+
*
|
|
6
|
+
* @category measurements
|
|
7
|
+
*/
|
|
3
8
|
export type PulseOximeterMeasurement = Measurement & {
|
|
9
|
+
/** Always `bloodOxygenPulseRate`. */
|
|
4
10
|
measurementTypeKey: MeasurementTypeKey.bloodOxygenPulseRate;
|
|
11
|
+
/** Pulse rate, in beats per minute. */
|
|
5
12
|
pulseRate?: number;
|
|
13
|
+
/** Interval between consecutive heartbeats. */
|
|
6
14
|
rrInterval?: number;
|
|
15
|
+
/** Blood oxygen saturation (SpO2), in percent. */
|
|
7
16
|
bloodOxygen?: number;
|
|
17
|
+
/** Perfusion index. */
|
|
8
18
|
perfusionIndex?: number;
|
|
9
19
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
2
2
|
import { Measurement } from "./Measurement";
|
|
3
|
+
/**
|
|
4
|
+
* Respiratory rate measurement.
|
|
5
|
+
*
|
|
6
|
+
* @category measurements
|
|
7
|
+
*/
|
|
3
8
|
export type RespiratoryRateMeasurement = Measurement & {
|
|
9
|
+
/** Always `respiratoryRate`. */
|
|
4
10
|
measurementTypeKey: MeasurementTypeKey.respiratoryRate;
|
|
11
|
+
/** Respiratory rate, in breaths per minute. */
|
|
5
12
|
respiratoryRate?: number;
|
|
6
13
|
};
|
|
@@ -5,8 +5,11 @@ import { Measurement } from "./Measurement";
|
|
|
5
5
|
* A coded set of respiratory-therapy observations. Keeping the values as FHIR components
|
|
6
6
|
* lets devices and consuming applications add their own metrics without Core assigning
|
|
7
7
|
* device-specific meaning to them.
|
|
8
|
+
* @category measurements
|
|
8
9
|
*/
|
|
9
10
|
export type RespiratoryTherapyMeasurement = Measurement & {
|
|
11
|
+
/** Always `respiratoryTherapy`. */
|
|
10
12
|
measurementTypeKey: MeasurementTypeKey.respiratoryTherapy;
|
|
13
|
+
/** Coded observation values. */
|
|
11
14
|
components: ObservationComponent[];
|
|
12
15
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
2
2
|
import { Measurement } from "./Measurement";
|
|
3
|
+
/**
|
|
4
|
+
* Resting heart rate measurement.
|
|
5
|
+
*
|
|
6
|
+
* @category measurements
|
|
7
|
+
*/
|
|
3
8
|
export type RestingHeartRateMeasurement = Measurement & {
|
|
9
|
+
/** Always `restingHeartRate`. */
|
|
4
10
|
measurementTypeKey: MeasurementTypeKey.restingHeartRate;
|
|
11
|
+
/** Resting heart rate, in beats per minute. */
|
|
5
12
|
restingHeartRate?: number;
|
|
6
13
|
};
|
|
@@ -1,20 +1,43 @@
|
|
|
1
1
|
import { CodeableConcept } from "@medplum/fhirtypes";
|
|
2
2
|
import { Measurement } from "./Measurement";
|
|
3
|
+
/**
|
|
4
|
+
* Spirometry measurement.
|
|
5
|
+
*
|
|
6
|
+
* @category measurements
|
|
7
|
+
*/
|
|
3
8
|
export type SpirometryMeasurement = Measurement & {
|
|
9
|
+
/** Forced vital capacity. */
|
|
4
10
|
fvc?: string;
|
|
11
|
+
/** Forced expiratory volume in 1 second. */
|
|
5
12
|
fev1?: string;
|
|
13
|
+
/** Forced expiratory volume in 0.5 seconds. */
|
|
6
14
|
"fev0.5"?: string;
|
|
15
|
+
/** FEV1 to FVC ratio. */
|
|
7
16
|
"fev1/fvc"?: string;
|
|
17
|
+
/** Peak expiratory flow. */
|
|
8
18
|
pef?: string;
|
|
19
|
+
/** Forced expiratory flow at 25% of FVC. */
|
|
9
20
|
fef25?: string;
|
|
21
|
+
/** Forced expiratory flow at 50% of FVC. */
|
|
10
22
|
fef50?: string;
|
|
23
|
+
/** Forced expiratory flow at 75% of FVC. */
|
|
11
24
|
fef75?: string;
|
|
25
|
+
/** Forced expiratory flow between 25% and 75% of FVC. */
|
|
12
26
|
fef2575?: string;
|
|
27
|
+
/** Coded spirometry values. */
|
|
13
28
|
spirometryValues: SpirometerValue[];
|
|
14
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* One coded spirometer value.
|
|
32
|
+
*
|
|
33
|
+
* @category measurements
|
|
34
|
+
*/
|
|
15
35
|
type SpirometerValue = {
|
|
36
|
+
/** Code identifying the value. */
|
|
16
37
|
code: CodeableConcept;
|
|
38
|
+
/** The value. */
|
|
17
39
|
value?: {
|
|
40
|
+
/** Value as a string. */
|
|
18
41
|
string: string;
|
|
19
42
|
};
|
|
20
43
|
};
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
2
2
|
import { Measurement } from "./Measurement";
|
|
3
|
+
/**
|
|
4
|
+
* Step count measurement.
|
|
5
|
+
*
|
|
6
|
+
* @category measurements
|
|
7
|
+
*/
|
|
3
8
|
export type StepCountMeasurement = Measurement & {
|
|
9
|
+
/** Always `stepCount`. */
|
|
4
10
|
measurementTypeKey: MeasurementTypeKey.stepCount;
|
|
11
|
+
/** Number of steps. */
|
|
5
12
|
stepCount?: number;
|
|
13
|
+
/** Start of the counted period. */
|
|
6
14
|
start?: Date;
|
|
15
|
+
/** End of the counted period. */
|
|
7
16
|
end?: Date;
|
|
8
17
|
};
|
|
@@ -1,29 +1,58 @@
|
|
|
1
1
|
import { CodeableConcept } from "@medplum/fhirtypes";
|
|
2
2
|
import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
3
3
|
import { Measurement } from "./Measurement";
|
|
4
|
+
/**
|
|
5
|
+
* Urine test strip measurement.
|
|
6
|
+
*
|
|
7
|
+
* @category measurements
|
|
8
|
+
*/
|
|
4
9
|
export type UrineAnalyzeMeasurement = Measurement & {
|
|
10
|
+
/** `urineAnalysis` or the deprecated `uricAcid`. */
|
|
5
11
|
measurementTypeKey: MeasurementTypeKey.urineAnalysis | MeasurementTypeKey.uricAcid;
|
|
12
|
+
/** Urobilinogen. */
|
|
6
13
|
uro?: number;
|
|
14
|
+
/** Bilirubin. */
|
|
7
15
|
bil?: number;
|
|
16
|
+
/** Ketones. */
|
|
8
17
|
ket?: number;
|
|
18
|
+
/** Glucose. */
|
|
9
19
|
glu?: number;
|
|
20
|
+
/** Protein. */
|
|
10
21
|
pro?: number;
|
|
22
|
+
/** Urine pH. */
|
|
11
23
|
ph?: number;
|
|
24
|
+
/** Blood (hemoglobin). */
|
|
12
25
|
bld?: number;
|
|
26
|
+
/** Nitrite. */
|
|
13
27
|
nit?: number;
|
|
28
|
+
/** Leukocyte esterase. */
|
|
14
29
|
leu?: number;
|
|
30
|
+
/** Specific gravity. */
|
|
15
31
|
sg?: number;
|
|
32
|
+
/** Ascorbate (vitamin C). */
|
|
16
33
|
vc?: number;
|
|
34
|
+
/** Microalbumin. */
|
|
17
35
|
mal?: number;
|
|
36
|
+
/** Creatinine. */
|
|
18
37
|
cr?: number;
|
|
38
|
+
/** Urate. */
|
|
19
39
|
uca?: number;
|
|
40
|
+
/** Coded analyte values. */
|
|
20
41
|
urineValues: UrineAnalysisValue[];
|
|
21
42
|
/** Time at which the analyzer recorded the strip. */
|
|
22
43
|
recordedAt?: Date;
|
|
23
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* One coded urine analysis value.
|
|
47
|
+
*
|
|
48
|
+
* @category measurements
|
|
49
|
+
*/
|
|
24
50
|
type UrineAnalysisValue = {
|
|
51
|
+
/** Code identifying the value. */
|
|
25
52
|
code: CodeableConcept;
|
|
53
|
+
/** The value. */
|
|
26
54
|
value?: {
|
|
55
|
+
/** Value as a string. */
|
|
27
56
|
string: string;
|
|
28
57
|
};
|
|
29
58
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
2
2
|
import { Measurement } from "./Measurement";
|
|
3
|
+
/**
|
|
4
|
+
* VO2 max measurement.
|
|
5
|
+
*
|
|
6
|
+
* @category measurements
|
|
7
|
+
*/
|
|
3
8
|
export type Vo2MaxMeasurement = Measurement & {
|
|
9
|
+
/** Always `vo2Max`. */
|
|
4
10
|
measurementTypeKey: MeasurementTypeKey.vo2Max;
|
|
11
|
+
/** VO2 max value as reported by the device. */
|
|
5
12
|
vo2Max?: number;
|
|
6
13
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { MeasurementTypeKey } from "../MeasurementTypeKey";
|
|
2
2
|
import { Measurement } from "./Measurement";
|
|
3
|
+
/**
|
|
4
|
+
* Average walking heart rate measurement.
|
|
5
|
+
*
|
|
6
|
+
* @category measurements
|
|
7
|
+
*/
|
|
3
8
|
export type WalkingHeartRateAverageMeasurement = Measurement & {
|
|
9
|
+
/** Always `walkingHeartRateAverage`. */
|
|
4
10
|
measurementTypeKey: MeasurementTypeKey.walkingHeartRateAverage;
|
|
11
|
+
/** Average heart rate while walking, in beats per minute. */
|
|
5
12
|
walkingHeartRateAverage?: number;
|
|
6
13
|
};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* One property of a measurement, as its Observation stores it.
|
|
3
|
+
*/
|
|
2
4
|
export type MeasurementField = {
|
|
3
5
|
/** The property on the measurement: `systolic`, `bloodGlucose`, … */
|
|
4
6
|
key: string;
|
|
5
7
|
/** The code (LOINC) of the Observation that carries it. */
|
|
6
8
|
code: string;
|
|
9
|
+
/** Unit the value is stored in. */
|
|
7
10
|
unit: string;
|
|
8
11
|
/** The decimal places the SDK keeps when it writes the value. */
|
|
9
12
|
decimals: number;
|
|
13
|
+
/** Display name of the Observation code. */
|
|
10
14
|
display: string;
|
|
11
15
|
};
|