@bahmni/services 0.0.1-dev.70 → 0.0.1-dev.72
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/constants/app.d.ts +0 -2
- package/dist/constants/app.d.ts.map +1 -1
- package/dist/i18n/index.d.ts +1 -0
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +710 -691
- package/dist/observationFormsService/constants.d.ts +4 -0
- package/dist/observationFormsService/constants.d.ts.map +1 -0
- package/dist/observationFormsService/index.d.ts +2 -2
- package/dist/observationFormsService/index.d.ts.map +1 -1
- package/dist/observationFormsService/models.d.ts +18 -0
- package/dist/observationFormsService/models.d.ts.map +1 -1
- package/dist/observationFormsService/observationFormsService.d.ts +7 -1
- package/dist/observationFormsService/observationFormsService.d.ts.map +1 -1
- package/dist/patientService/models.d.ts +13 -5
- package/dist/patientService/models.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/constants/app.d.ts
CHANGED
|
@@ -5,7 +5,5 @@ export declare const OPENMRS_REST_V2 = "/openmrs/ws/rest/v2";
|
|
|
5
5
|
export declare const BAHMNI_USER_COOKIE_NAME = "bahmni.user";
|
|
6
6
|
export declare const BAHMNI_HOME_PATH = "/bahmni/home/index.html";
|
|
7
7
|
export declare const USER_PRIVILEGES_URL: string;
|
|
8
|
-
export declare const OBSERVATION_FORMS_URL: string;
|
|
9
|
-
export declare const USER_PINNED_PREFERENCE_URL: (userUuid: string) => string;
|
|
10
8
|
export declare const VISIT_LOCATION_UUID: string;
|
|
11
9
|
//# sourceMappingURL=app.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/constants/app.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,QAAgC,CAAC;AACvD,eAAO,MAAM,eAAe,yBAAyB,CAAC;AACtD,eAAO,MAAM,eAAe,wBAAwB,CAAC;AACrD,eAAO,MAAM,eAAe,wBAAwB,CAAC;AACrD,eAAO,MAAM,uBAAuB,gBAAgB,CAAC;AACrD,eAAO,MAAM,gBAAgB,4BAA4B,CAAC;AAC1D,eAAO,MAAM,mBAAmB,QAAyC,CAAC;AAC1E,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/constants/app.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,QAAgC,CAAC;AACvD,eAAO,MAAM,eAAe,yBAAyB,CAAC;AACtD,eAAO,MAAM,eAAe,wBAAwB,CAAC;AACrD,eAAO,MAAM,eAAe,wBAAwB,CAAC;AACrD,eAAO,MAAM,uBAAuB,gBAAgB,CAAC;AACrD,eAAO,MAAM,gBAAgB,4BAA4B,CAAC;AAC1D,eAAO,MAAM,mBAAmB,QAAyC,CAAC;AAC1E,eAAO,MAAM,mBAAmB,QACgB,CAAC"}
|
package/dist/i18n/index.d.ts
CHANGED
package/dist/i18n/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { get, post, put, del } from './api';
|
|
2
|
-
export { initAppI18n, useTranslation, normalizeTranslationKey } from './i18n';
|
|
2
|
+
export { initAppI18n, useTranslation, normalizeTranslationKey, getUserPreferredLocale, } from './i18n';
|
|
3
3
|
export { useCamera } from './cameraService';
|
|
4
4
|
export { getPatientById, getFormattedPatientById, searchPatientByNameOrId, searchPatientByCustomAttribute, getIdentifierTypes, getPrimaryIdentifierType, createPatient, updatePatient, createVisit, getActiveVisitByPatient, getIdentifierData, getGenders, getAddressHierarchyEntries, getVisitTypes, getVisitLocationUUID, getOrderedAddressHierarchyLevels, getPatientImageAsDataUrl, getPatientProfile, getPersonAttributeTypes, getRelationshipTypes, type FormattedPatientData, type PatientSearchResult, type PatientSearchResultBundle, type IdentifierSource, type IdentifierType, type IdentifierTypesResponse, type CreatePatientRequest, type CreatePatientResponse, type VisitData, type PatientName, type PatientAddress, type PatientIdentifier, type PatientAttribute, type AddressHierarchyEntry, type OrderedAddressHierarchyLevel, type OrderedAddressHierarchyLevels, type PatientProfileResponse, type PersonAttributeType, type PersonAttributeTypesResponse, type ConceptAnswer, type PersonAttributeConcept, AttributeFormat, AttributeInputType, getInputTypeForFormat, isBooleanFormat, isConceptFormat, isNumberFormat, isDateFormat, isTextFormat, MAX_PATIENT_AGE_YEARS, MAX_NAME_LENGTH, MAX_PHONE_NUMBER_LENGTH, } from './patientService';
|
|
5
5
|
export { searchAppointmentsByAttribute, updateAppointmentStatus, getAppointmentById, } from './AppointmentService/appointmmetService';
|
|
@@ -18,7 +18,7 @@ export { getPatientLabTestsBundle, getPatientLabInvestigations, groupLabTestsByD
|
|
|
18
18
|
export { getFlattenedInvestigations, type FlattenedInvestigations, type OrderType, type OrderTypeResponse, } from './investigationService';
|
|
19
19
|
export { getClinicalConfig, getDashboardConfig, getMedicationConfig, getRegistrationConfig, type ClinicalConfig, type DashboardConfig, type MedicationJSONConfig, type DashboardSectionConfig, type Dashboard, type Frequency, type RegistrationConfig, type PatientSearchConfig, type PatientSearchField, type PatientInformationConfig, type SearchActionConfig, type ControlConfig, type AppExtensionConfig, type ExtensionPoint, } from './configService';
|
|
20
20
|
export { getCurrentUser, getUserLoginLocation, type User } from './userService';
|
|
21
|
-
export { USER_PINNED_PREFERENCE_URL } from './constants
|
|
21
|
+
export { USER_PINNED_PREFERENCE_URL } from './observationFormsService/constants';
|
|
22
22
|
export { getCurrentProvider, type Provider, type Person, } from './providerService';
|
|
23
23
|
export { findActiveEncounterInSession } from './encounterSessionService';
|
|
24
24
|
export { getActiveVisit } from './encounterService';
|
|
@@ -27,6 +27,6 @@ export { dispatchAuditEvent, AUDIT_LOG_EVENT_DETAILS, initializeAuditListener, t
|
|
|
27
27
|
export { HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM, HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM, HL7_CONDITION_CATEGORY_CODE_SYSTEM, HL7_CONDITION_CATEGORY_CONDITION_CODE, HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE, FHIR_ENCOUNTER_TYPE_CODE_SYSTEM, } from './constants/fhir';
|
|
28
28
|
export { OPENMRS_REST_V1, OPENMRS_FHIR_R4, BAHMNI_HOME_PATH, } from './constants/app';
|
|
29
29
|
export { getCurrentUserPrivileges, hasPrivilege, type UserPrivilege, } from './privilegeService';
|
|
30
|
-
export { fetchObservationForms, type ObservationForm, type FormApiResponse, type ApiNameTranslation, type FormPrivilege, type ApiFormPrivilege, } from './observationFormsService';
|
|
30
|
+
export { fetchObservationForms, fetchFormMetadata, type ObservationForm, type FormApiResponse, type ApiNameTranslation, type FormPrivilege, type ApiFormPrivilege, type FormMetadata, } from './observationFormsService';
|
|
31
31
|
export { getVitalFlowSheetData, type VitalFlowSheetData, type VitalFlowSheetConceptDetail, } from './vitalFlowSheetService';
|
|
32
32
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EACL,WAAW,EACX,cAAc,EACd,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,8BAA8B,EAC9B,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,WAAW,EACX,uBAAuB,EACvB,iBAAiB,EACjB,UAAU,EACV,0BAA0B,EAC1B,aAAa,EACb,oBAAoB,EACpB,gCAAgC,EAChC,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,eAAe,EACf,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,cAAc,EACd,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