@bahmni/services 0.0.1-dev.7 → 0.0.1-dev.71
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/LICENSE +1 -1
- package/README.md +3 -2
- package/dist/AppointmentService/appointmmetService.d.ts +1 -0
- package/dist/AppointmentService/appointmmetService.d.ts.map +1 -1
- package/dist/AppointmentService/index.d.ts +1 -1
- package/dist/AppointmentService/index.d.ts.map +1 -1
- package/dist/AppointmentService/models.d.ts +0 -1
- package/dist/AppointmentService/models.d.ts.map +1 -1
- package/dist/cameraService/index.d.ts +2 -0
- package/dist/cameraService/index.d.ts.map +1 -0
- package/dist/cameraService/useCamera.d.ts +7 -0
- package/dist/cameraService/useCamera.d.ts.map +1 -0
- package/dist/conceptService/conceptService.d.ts +2 -1
- package/dist/conceptService/conceptService.d.ts.map +1 -1
- package/dist/conceptService/constants.d.ts +1 -0
- package/dist/conceptService/constants.d.ts.map +1 -1
- package/dist/conceptService/index.d.ts +1 -1
- package/dist/conceptService/index.d.ts.map +1 -1
- package/dist/conceptService/models.d.ts +72 -0
- package/dist/conceptService/models.d.ts.map +1 -1
- package/dist/configService/index.d.ts +1 -1
- package/dist/configService/index.d.ts.map +1 -1
- package/dist/configService/models/dashboardConfig.d.ts +5 -1
- package/dist/configService/models/dashboardConfig.d.ts.map +1 -1
- package/dist/configService/models/registrationConfig.d.ts +69 -0
- package/dist/configService/models/registrationConfig.d.ts.map +1 -1
- package/dist/configService/models.d.ts +2 -2
- package/dist/configService/models.d.ts.map +1 -1
- package/dist/configService/schemas/dashboardConfig.schema.json.d.ts +18 -1
- package/dist/configService/schemas/registrationConfig.schema.json.d.ts +206 -0
- package/dist/constants/app.d.ts +1 -2
- package/dist/constants/app.d.ts.map +1 -1
- package/dist/date/constants.d.ts +1 -0
- package/dist/date/constants.d.ts.map +1 -1
- package/dist/date/date.d.ts.map +1 -1
- package/dist/date/index.d.ts +1 -1
- package/dist/date/index.d.ts.map +1 -1
- package/dist/episodeOfCareService/constants.d.ts +2 -0
- package/dist/episodeOfCareService/constants.d.ts.map +1 -0
- package/dist/episodeOfCareService/episodeOfCareService.d.ts +8 -0
- package/dist/episodeOfCareService/episodeOfCareService.d.ts.map +1 -0
- package/dist/episodeOfCareService/index.d.ts +3 -0
- package/dist/episodeOfCareService/index.d.ts.map +1 -0
- package/dist/episodeOfCareService/models.d.ts +5 -0
- package/dist/episodeOfCareService/models.d.ts.map +1 -0
- package/dist/errorHandling/utils.d.ts.map +1 -1
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/translationService.d.ts +1 -0
- package/dist/i18n/translationService.d.ts.map +1 -1
- package/dist/index.d.ts +10 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4746 -4624
- 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/attributeFormatMapper.d.ts +55 -0
- package/dist/patientService/attributeFormatMapper.d.ts.map +1 -0
- package/dist/patientService/constants.d.ts +9 -4
- package/dist/patientService/constants.d.ts.map +1 -1
- package/dist/patientService/index.d.ts +4 -3
- package/dist/patientService/index.d.ts.map +1 -1
- package/dist/patientService/models.d.ts +125 -0
- package/dist/patientService/models.d.ts.map +1 -1
- package/dist/patientService/patientService.d.ts +45 -4
- package/dist/patientService/patientService.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/utils.d.ts +6 -0
- package/dist/utils/utils.d.ts.map +1 -1
- package/package.json +3 -3
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
# @bahmni/services
|
|
2
3
|
|
|
3
4
|
## Description
|
|
@@ -6,7 +7,7 @@ A set of service utilities and API integration helpers that act as an abstractio
|
|
|
6
7
|
|
|
7
8
|
## Bundler Configuration
|
|
8
9
|
|
|
9
|
-
When bundling this library in your application, you need to configure your bundler to define the `process.env` environment variable
|
|
10
|
+
When bundling this library in your application, you need to configure your bundler to define the `process.env` environment variable
|
|
10
11
|
|
|
11
12
|
### Example Configurations:
|
|
12
13
|
|
|
@@ -17,4 +18,4 @@ When bundling this library in your application, you need to configure your bundl
|
|
|
17
18
|
define: {
|
|
18
19
|
'process.env': {}
|
|
19
20
|
}
|
|
20
|
-
```
|
|
21
|
+
```
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Appointment } from './models';
|
|
2
2
|
export declare const searchAppointmentsByAttribute: (searchTerm: Record<string, string>) => Promise<Appointment[]>;
|
|
3
3
|
export declare const updateAppointmentStatus: (appointmentUuid: string, toStatus: string, onDate?: Date) => Promise<Appointment>;
|
|
4
|
+
export declare function getAppointmentById(uuid: string): Promise<Appointment>;
|
|
4
5
|
//# sourceMappingURL=appointmmetService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appointmmetService.d.ts","sourceRoot":"","sources":["../../src/AppointmentService/appointmmetService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,6BAA6B,GACxC,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KACjC,OAAO,CAAC,WAAW,EAAE,CAMvB,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,iBAAiB,MAAM,EACvB,UAAU,MAAM,EAChB,SAAS,IAAI,KACZ,OAAO,CAAC,WAAW,CAMrB,CAAC"}
|
|
1
|
+
{"version":3,"file":"appointmmetService.d.ts","sourceRoot":"","sources":["../../src/AppointmentService/appointmmetService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,6BAA6B,GACxC,YAAY,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KACjC,OAAO,CAAC,WAAW,EAAE,CAMvB,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,iBAAiB,MAAM,EACvB,UAAU,MAAM,EAChB,SAAS,IAAI,KACZ,OAAO,CAAC,WAAW,CAMrB,CAAC;AAEF,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAE3E"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { searchAppointmentsByAttribute, updateAppointmentStatus, } from './appointmmetService';
|
|
1
|
+
export { searchAppointmentsByAttribute, updateAppointmentStatus, getAppointmentById, } from './appointmmetService';
|
|
2
2
|
export { type Appointment, type AppointmentSearchResult, type Reason, } from './models';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/AppointmentService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/AppointmentService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,MAAM,GACZ,MAAM,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/AppointmentService/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB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,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCamera.d.ts","sourceRoot":"","sources":["../../src/cameraService/useCamera.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS;;;;;EA6CxB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ValueSet } from 'fhir/r4';
|
|
2
|
-
import { ConceptSearch } from './models';
|
|
2
|
+
import { ConceptData, ConceptSearch } from './models';
|
|
3
3
|
/**
|
|
4
4
|
* Search for concepts matching the provided term
|
|
5
5
|
* @param term - The search term to find matching concepts
|
|
@@ -14,4 +14,5 @@ export declare const searchConcepts: (term: string, limit?: number) => Promise<C
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const searchFHIRConcepts: (uuid: string) => Promise<ValueSet>;
|
|
16
16
|
export declare const searchFHIRConceptsByName: (name: string) => Promise<ValueSet>;
|
|
17
|
+
export declare function getConceptById(uuid: string): Promise<ConceptData>;
|
|
17
18
|
//# sourceMappingURL=conceptService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conceptService.d.ts","sourceRoot":"","sources":["../../src/conceptService/conceptService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"conceptService.d.ts","sourceRoot":"","sources":["../../src/conceptService/conceptService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AASnC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GACzB,MAAM,MAAM,EACZ,cAAU,KACT,OAAO,CAAC,aAAa,EAAE,CAIzB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAU,MAAM,MAAM,KAAG,OAAO,CAAC,QAAQ,CAGvE,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,MAAM,MAAM,KACX,OAAO,CAAC,QAAQ,CAGlB,CAAC;AAEF,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAEvE"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const FHIR_VALUESET_URL: (uuid: string) => string;
|
|
2
2
|
export declare const FHIR_VALUESET_FILTER_EXPAND_URL: (filter: string) => string;
|
|
3
3
|
export declare const CONCEPT_SEARCH_URL: (term: string, limit: number, locale: string) => string;
|
|
4
|
+
export declare const CONCEPT_GET_URL: (uuid: string) => string;
|
|
4
5
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/conceptService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,WACC,CAAC;AAChD,eAAO,MAAM,+BAA+B,GAAI,QAAQ,MAAM,WACc,CAAC;AAC7E,eAAO,MAAM,kBAAkB,GAC7B,MAAM,MAAM,EACZ,OAAO,MAAM,EACb,QAAQ,MAAM,WAG+D,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/conceptService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,WACC,CAAC;AAChD,eAAO,MAAM,+BAA+B,GAAI,QAAQ,MAAM,WACc,CAAC;AAC7E,eAAO,MAAM,kBAAkB,GAC7B,MAAM,MAAM,EACZ,OAAO,MAAM,EACb,QAAQ,MAAM,WAG+D,CAAC;AAEhF,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,WACN,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { searchConcepts, searchFHIRConcepts, searchFHIRConceptsByName, } from './conceptService';
|
|
1
|
+
export { searchConcepts, searchFHIRConcepts, searchFHIRConceptsByName, getConceptById, } from './conceptService';
|
|
2
2
|
export { type ConceptSearch, type ConceptClass } from './models';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conceptService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conceptService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,wBAAwB,EACxB,cAAc,GACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -8,4 +8,76 @@ export interface ConceptClass {
|
|
|
8
8
|
uuid: string;
|
|
9
9
|
name: string;
|
|
10
10
|
}
|
|
11
|
+
export interface ConceptData {
|
|
12
|
+
uuid: string;
|
|
13
|
+
display: string;
|
|
14
|
+
name: ConceptName;
|
|
15
|
+
datatype: ConceptDataType;
|
|
16
|
+
conceptClass: ConceptClassData;
|
|
17
|
+
set: boolean;
|
|
18
|
+
version: string | null;
|
|
19
|
+
retired: boolean;
|
|
20
|
+
names: ConceptName[];
|
|
21
|
+
descriptions: unknown[];
|
|
22
|
+
mappings: unknown[];
|
|
23
|
+
answers: unknown[];
|
|
24
|
+
setMembers: ConceptSetMember[];
|
|
25
|
+
attributes: ConceptAttribute[];
|
|
26
|
+
links: Array<{
|
|
27
|
+
rel: string;
|
|
28
|
+
uri: string;
|
|
29
|
+
resourceAlias?: string;
|
|
30
|
+
}>;
|
|
31
|
+
resourceVersion: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ConceptName {
|
|
34
|
+
display: string;
|
|
35
|
+
uuid: string;
|
|
36
|
+
name: string;
|
|
37
|
+
locale: string;
|
|
38
|
+
localePreferred: boolean;
|
|
39
|
+
conceptNameType: string;
|
|
40
|
+
links: Array<{
|
|
41
|
+
rel: string;
|
|
42
|
+
uri: string;
|
|
43
|
+
resourceAlias?: string;
|
|
44
|
+
}>;
|
|
45
|
+
resourceVersion: string;
|
|
46
|
+
}
|
|
47
|
+
export interface ConceptDataType {
|
|
48
|
+
uuid: string;
|
|
49
|
+
display: string;
|
|
50
|
+
links: Array<{
|
|
51
|
+
rel: string;
|
|
52
|
+
uri: string;
|
|
53
|
+
resourceAlias?: string;
|
|
54
|
+
}>;
|
|
55
|
+
}
|
|
56
|
+
export interface ConceptClassData {
|
|
57
|
+
uuid: string;
|
|
58
|
+
display: string;
|
|
59
|
+
links: Array<{
|
|
60
|
+
rel: string;
|
|
61
|
+
uri: string;
|
|
62
|
+
resourceAlias?: string;
|
|
63
|
+
}>;
|
|
64
|
+
}
|
|
65
|
+
export interface ConceptSetMember {
|
|
66
|
+
uuid: string;
|
|
67
|
+
display: string;
|
|
68
|
+
links: Array<{
|
|
69
|
+
rel: string;
|
|
70
|
+
uri: string;
|
|
71
|
+
resourceAlias?: string;
|
|
72
|
+
}>;
|
|
73
|
+
}
|
|
74
|
+
export interface ConceptAttribute {
|
|
75
|
+
uuid: string;
|
|
76
|
+
display: string;
|
|
77
|
+
links: Array<{
|
|
78
|
+
rel: string;
|
|
79
|
+
uri: string;
|
|
80
|
+
resourceAlias?: string;
|
|
81
|
+
}>;
|
|
82
|
+
}
|
|
11
83
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/conceptService/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd"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AAK,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC,CAAC;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;QACZ,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC,CAAC;CACJ"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { getClinicalConfig, getDashboardConfig, getMedicationConfig, getRegistrationConfig, } from './configService';
|
|
2
|
-
export { type ClinicalConfig, type DashboardConfig, type MedicationJSONConfig, type DashboardSectionConfig, type Dashboard, type Frequency, type RegistrationConfig, type PatientSearchConfig, type PatientSearchField, type SearchActionConfig, } from './models';
|
|
2
|
+
export { type ClinicalConfig, type DashboardConfig, type MedicationJSONConfig, type DashboardSectionConfig, type ControlConfig, type Dashboard, type Frequency, type RegistrationConfig, type PatientSearchConfig, type PatientSearchField, type PatientInformationConfig, type SearchActionConfig, type AppExtensionConfig, type ExtensionPoint, } from './models';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/configService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/configService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,MAAM,UAAU,CAAC"}
|
|
@@ -3,9 +3,13 @@ export interface DashboardSectionConfig {
|
|
|
3
3
|
name: string;
|
|
4
4
|
translationKey?: string;
|
|
5
5
|
icon: string;
|
|
6
|
-
controls: [];
|
|
6
|
+
controls: ControlConfig[];
|
|
7
7
|
}
|
|
8
8
|
export interface DashboardConfig {
|
|
9
9
|
sections: DashboardSectionConfig[];
|
|
10
10
|
}
|
|
11
|
+
export interface ControlConfig {
|
|
12
|
+
type: string;
|
|
13
|
+
config: Record<string, unknown>;
|
|
14
|
+
}
|
|
11
15
|
//# sourceMappingURL=dashboardConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboardConfig.d.ts","sourceRoot":"","sources":["../../../src/configService/models/dashboardConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"dashboardConfig.d.ts","sourceRoot":"","sources":["../../../src/configService/models/dashboardConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,sBAAsB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC"}
|
|
@@ -33,8 +33,77 @@ export interface PatientSearchConfig {
|
|
|
33
33
|
customAttributes: PatientSearchField[];
|
|
34
34
|
appointment: AppointmentSearchField[];
|
|
35
35
|
}
|
|
36
|
+
export interface PatientInformationConfig {
|
|
37
|
+
defaultIdentifierPrefix?: string;
|
|
38
|
+
autoCompleteFields?: string[];
|
|
39
|
+
showMiddleName?: boolean;
|
|
40
|
+
showLastName?: boolean;
|
|
41
|
+
isFirstNameMandatory?: boolean;
|
|
42
|
+
isMiddleNameMandatory?: boolean;
|
|
43
|
+
isLastNameMandatory?: boolean;
|
|
44
|
+
isGenderMandatory?: boolean;
|
|
45
|
+
isDateOfBirthMandatory?: boolean;
|
|
46
|
+
patientNameDisplayOrder?: string[];
|
|
47
|
+
showBirthTime?: boolean;
|
|
48
|
+
showCasteSameAsLastNameCheckbox?: boolean;
|
|
49
|
+
showDOBEstimated?: boolean;
|
|
50
|
+
showEnterManually?: boolean;
|
|
51
|
+
contactInformation?: {
|
|
52
|
+
translationKey?: string;
|
|
53
|
+
attributes?: Array<{
|
|
54
|
+
field: string;
|
|
55
|
+
translationKey: string;
|
|
56
|
+
}>;
|
|
57
|
+
};
|
|
58
|
+
additionalPatientInformation?: {
|
|
59
|
+
translationKey?: string;
|
|
60
|
+
attributes?: Array<{
|
|
61
|
+
field: string;
|
|
62
|
+
translationKey: string;
|
|
63
|
+
}>;
|
|
64
|
+
};
|
|
65
|
+
hiddenAttributes?: string[];
|
|
66
|
+
defaults?: Record<string, unknown>;
|
|
67
|
+
addressHierarchy?: {
|
|
68
|
+
showAddressFieldsTopDown?: boolean;
|
|
69
|
+
strictAutocompleteFromLevel?: string;
|
|
70
|
+
requiredFields?: string[];
|
|
71
|
+
expectedFields?: Array<{
|
|
72
|
+
addressField: string;
|
|
73
|
+
translationKey: string;
|
|
74
|
+
}>;
|
|
75
|
+
};
|
|
76
|
+
showExtraPatientIdentifiersSection?: boolean;
|
|
77
|
+
}
|
|
78
|
+
export interface FieldValidationRule {
|
|
79
|
+
pattern: string;
|
|
80
|
+
errorMessage: string;
|
|
81
|
+
}
|
|
82
|
+
export interface FieldValidationConfig {
|
|
83
|
+
[fieldName: string]: FieldValidationRule;
|
|
84
|
+
}
|
|
85
|
+
export interface AppExtensionConfig {
|
|
86
|
+
id: string;
|
|
87
|
+
extensionPointId: string;
|
|
88
|
+
type: 'link' | 'startVisit';
|
|
89
|
+
translationKey: string;
|
|
90
|
+
url: string;
|
|
91
|
+
shortcutKey?: string;
|
|
92
|
+
icon?: string;
|
|
93
|
+
order?: number;
|
|
94
|
+
kind?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'danger';
|
|
95
|
+
requiredPrivilege?: string;
|
|
96
|
+
}
|
|
36
97
|
export interface RegistrationConfig {
|
|
37
98
|
patientSearch: PatientSearchConfig;
|
|
38
99
|
defaultVisitType?: string;
|
|
100
|
+
patientInformation?: PatientInformationConfig;
|
|
101
|
+
fieldValidation?: FieldValidationConfig;
|
|
102
|
+
extensionPoints?: ExtensionPoint[];
|
|
103
|
+
registrationAppExtensions?: AppExtensionConfig[];
|
|
104
|
+
}
|
|
105
|
+
export interface ExtensionPoint {
|
|
106
|
+
id: string;
|
|
107
|
+
description?: string;
|
|
39
108
|
}
|
|
40
109
|
//# sourceMappingURL=registrationConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registrationConfig.d.ts","sourceRoot":"","sources":["../../../src/configService/models/registrationConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,UAAU,GAAG,cAAc,CAAC;IAClC,WAAW,CAAC,EAAE,KAAK,CAAC;QAClB,IAAI,EAAE,gBAAgB,GAAG,aAAa,GAAG,cAAc,CAAC;QACxD,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC,CAAC;IACH,QAAQ,EAAE;QACR,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,SAAS,CAAC,EAAE;QACV,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;CACH;AACD,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC/B,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACvC,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;CACxD;AAED,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB;IAChE,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,EAAE,kBAAkB,EAAE,CAAC;IACvC,WAAW,EAAE,sBAAsB,EAAE,CAAC;CACvC;AAED,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,mBAAmB,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"registrationConfig.d.ts","sourceRoot":"","sources":["../../../src/configService/models/registrationConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,UAAU,GAAG,cAAc,CAAC;IAClC,WAAW,CAAC,EAAE,KAAK,CAAC;QAClB,IAAI,EAAE,gBAAgB,GAAG,aAAa,GAAG,cAAc,CAAC;QACxD,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC,CAAC;IACH,QAAQ,EAAE;QAC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KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;IACjE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,mBAAmB,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,wBAAwB,CAAC;IAC9C,eAAe,CAAC,EAAE,qBAAqB,CAAC;IACxC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC,yBAAyB,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAClD;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { type ClinicalConfig, type Dashboard } from './models/config';
|
|
2
|
-
export { type DashboardConfig, type DashboardSectionConfig, } from './models/dashboardConfig';
|
|
2
|
+
export { type DashboardConfig, type DashboardSectionConfig, type ControlConfig, } from './models/dashboardConfig';
|
|
3
3
|
export { type MedicationJSONConfig, type Frequency, } from './models/medicationConfig';
|
|
4
|
-
export { type RegistrationConfig, type PatientSearchConfig, type PatientSearchField, type SearchActionConfig, } from './models/registrationConfig';
|
|
4
|
+
export { type RegistrationConfig, type PatientSearchConfig, type PatientSearchField, type PatientInformationConfig, type SearchActionConfig, type AppExtensionConfig, type ExtensionPoint, } from './models/registrationConfig';
|
|
5
5
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/configService/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,sBAAsB,
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/configService/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,aAAa,GACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,SAAS,GACf,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,MAAM,6BAA6B,CAAC"}
|
|
@@ -28,7 +28,24 @@ declare const _default: {
|
|
|
28
28
|
},
|
|
29
29
|
"controls": {
|
|
30
30
|
"type": "array",
|
|
31
|
-
"description": "List of controls in the section"
|
|
31
|
+
"description": "List of controls in the section",
|
|
32
|
+
"items":[
|
|
33
|
+
{
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": ["type"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"type": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Type of the control"
|
|
41
|
+
},
|
|
42
|
+
"config": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"description": "Configuration for the control"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
32
49
|
}
|
|
33
50
|
}
|
|
34
51
|
}
|
|
@@ -192,6 +192,212 @@ declare const _default: {
|
|
|
192
192
|
"defaultVisitType": {
|
|
193
193
|
"type": "string",
|
|
194
194
|
"description": "Default visit type for patient registration"
|
|
195
|
+
},
|
|
196
|
+
"patientInformation": {
|
|
197
|
+
"type": "object",
|
|
198
|
+
"description": "Patient name related fields configuration",
|
|
199
|
+
"additionalProperties": true,
|
|
200
|
+
"properties": {
|
|
201
|
+
"defaultIdentifierPrefix": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"description": "Default prefix for patient identifiers"
|
|
204
|
+
},
|
|
205
|
+
"showEnterManually": { "type": "boolean" },
|
|
206
|
+
"showMiddleName": { "type": "boolean" },
|
|
207
|
+
"showLastName": { "type": "boolean" },
|
|
208
|
+
"isFirstNameMandatory": { "type": "boolean" },
|
|
209
|
+
"isMiddleNameMandatory": { "type": "boolean" },
|
|
210
|
+
"isGenderMandatory": { "type": "boolean" },
|
|
211
|
+
"isDateOfBirthMandatory": { "type": "boolean" },
|
|
212
|
+
"isLastNameMandatory": { "type": "boolean" },
|
|
213
|
+
"patientNameDisplayOrder": {
|
|
214
|
+
"type": "array",
|
|
215
|
+
"description": "Order in which patient name fields should be displayed",
|
|
216
|
+
"items": { "type": "string" }
|
|
217
|
+
},
|
|
218
|
+
"showBirthTime": { "type": "boolean" },
|
|
219
|
+
"showDOBEstimated": { "type": "boolean" },
|
|
220
|
+
"addressHierarchy": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"description": "Address hierarchy levels to be displayed",
|
|
223
|
+
"additionalProperties": false,
|
|
224
|
+
"properties": {
|
|
225
|
+
"showAddressFieldsTopDown": { "type": "boolean" },
|
|
226
|
+
"strictAutocompleteFromLevel": { "type": "string" },
|
|
227
|
+
"expectedFields": {
|
|
228
|
+
"type": "array",
|
|
229
|
+
"description": "Array of expected fields with translation keys",
|
|
230
|
+
"items": {
|
|
231
|
+
"type": "object",
|
|
232
|
+
"properties": {
|
|
233
|
+
"addressField": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"description": "Field name"
|
|
236
|
+
},
|
|
237
|
+
"translationKey": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"description": "Translation key for the field label"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"additionalPatientInformation": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"description": "Additional patient information configuration",
|
|
249
|
+
"additionalProperties": true,
|
|
250
|
+
"properties": {
|
|
251
|
+
"translationKey": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"description": "Translation key for the section title"
|
|
254
|
+
},
|
|
255
|
+
"attributes": {
|
|
256
|
+
"type": "array",
|
|
257
|
+
"description": "Array of attribute fields with translation keys",
|
|
258
|
+
"items": {
|
|
259
|
+
"type": "object",
|
|
260
|
+
"required": ["field", "translationKey"],
|
|
261
|
+
"properties": {
|
|
262
|
+
"field": {
|
|
263
|
+
"type": "string",
|
|
264
|
+
"description": "Field name"
|
|
265
|
+
},
|
|
266
|
+
"translationKey": {
|
|
267
|
+
"type": "string",
|
|
268
|
+
"description": "Translation key for the field label"
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"contactInformation": {
|
|
276
|
+
"type": "object",
|
|
277
|
+
"additionalProperties": true,
|
|
278
|
+
"properties": {
|
|
279
|
+
"translationKey": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"description": "Translation key for the section title"
|
|
282
|
+
},
|
|
283
|
+
"attributes": {
|
|
284
|
+
"type": "array",
|
|
285
|
+
"description": "Array of attribute fields with translation keys",
|
|
286
|
+
"items": {
|
|
287
|
+
"type": "object",
|
|
288
|
+
"required": ["field", "translationKey"],
|
|
289
|
+
"properties": {
|
|
290
|
+
"field": {
|
|
291
|
+
"type": "string",
|
|
292
|
+
"description": "Field name"
|
|
293
|
+
},
|
|
294
|
+
"translationKey": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"description": "Translation key for the field label"
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"showExtraPatientIdentifiersSection": {
|
|
304
|
+
"type": "boolean",
|
|
305
|
+
"description": "Whether to show extra patient identifiers section"
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"fieldValidation": {
|
|
310
|
+
"type": "object",
|
|
311
|
+
"description": "Field validation rules with regex patterns and error messages",
|
|
312
|
+
"additionalProperties": true,
|
|
313
|
+
"patternProperties": {
|
|
314
|
+
"^.*$": {
|
|
315
|
+
"type": "object",
|
|
316
|
+
"properties": {
|
|
317
|
+
"pattern": {
|
|
318
|
+
"type": "string",
|
|
319
|
+
"description": "Regular expression pattern for field validation"
|
|
320
|
+
},
|
|
321
|
+
"errorMessage": {
|
|
322
|
+
"type": "string",
|
|
323
|
+
"description": "Error message to display when validation fails"
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"extensionPoints": {
|
|
330
|
+
"type": "array",
|
|
331
|
+
"description": "Array of extension point definitions that extensions can attach to",
|
|
332
|
+
"items": {
|
|
333
|
+
"type": "object",
|
|
334
|
+
"required": ["id"],
|
|
335
|
+
"additionalProperties": false,
|
|
336
|
+
"properties": {
|
|
337
|
+
"id": {
|
|
338
|
+
"type": "string",
|
|
339
|
+
"description": "Unique identifier for the extension point (e.g., 'org.bahmni.registration.navigation')"
|
|
340
|
+
},
|
|
341
|
+
"description": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
"description": "Human-readable description of what this extension point is for"
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"registrationAppExtensions": {
|
|
349
|
+
"type": "array",
|
|
350
|
+
"description": "Array of app extension configurations for registration",
|
|
351
|
+
"items": {
|
|
352
|
+
"type": "object",
|
|
353
|
+
"description": "Extension configuration",
|
|
354
|
+
"additionalProperties": false,
|
|
355
|
+
"required": ["id", "extensionPointId", "type", "requiredPrivilege"],
|
|
356
|
+
"properties": {
|
|
357
|
+
"id": {
|
|
358
|
+
"type": "string",
|
|
359
|
+
"description": "Unique identifier for the extension"
|
|
360
|
+
},
|
|
361
|
+
"extensionPointId": {
|
|
362
|
+
"type": "string",
|
|
363
|
+
"description": "Extension point identifier this extension attaches to"
|
|
364
|
+
},
|
|
365
|
+
"type": {
|
|
366
|
+
"type": "string",
|
|
367
|
+
"enum": ["link", "startVisit"],
|
|
368
|
+
"description": "Type of extension (e.g., 'link', 'startVisit')"
|
|
369
|
+
},
|
|
370
|
+
"translationKey": {
|
|
371
|
+
"type": "string",
|
|
372
|
+
"description": "Translation key for the extension label"
|
|
373
|
+
},
|
|
374
|
+
"url": {
|
|
375
|
+
"type": "string",
|
|
376
|
+
"description": "URL path for the extension"
|
|
377
|
+
},
|
|
378
|
+
"shortcutKey": {
|
|
379
|
+
"type": "string",
|
|
380
|
+
"description": "Keyboard shortcut key for the extension"
|
|
381
|
+
},
|
|
382
|
+
"icon": {
|
|
383
|
+
"type": "string",
|
|
384
|
+
"description": "Icon class name (e.g., FontAwesome class like 'fa-search')"
|
|
385
|
+
},
|
|
386
|
+
"order": {
|
|
387
|
+
"type": "number",
|
|
388
|
+
"description": "Display order of the extension"
|
|
389
|
+
},
|
|
390
|
+
"kind": {
|
|
391
|
+
"type": "string",
|
|
392
|
+
"enum": ["primary", "secondary", "tertiary", "ghost", "danger"],
|
|
393
|
+
"description": "Button kind/variant (defaults to 'primary' if not specified)"
|
|
394
|
+
},
|
|
395
|
+
"requiredPrivilege": {
|
|
396
|
+
"type": "string",
|
|
397
|
+
"description": "Required privilege to access this extension"
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
195
401
|
}
|
|
196
402
|
}
|
|
197
403
|
}
|
package/dist/constants/app.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export declare const BASE_PATH: string;
|
|
2
2
|
export declare const OPENMRS_FHIR_R4 = "/openmrs/ws/fhir2/R4";
|
|
3
3
|
export declare const OPENMRS_REST_V1 = "/openmrs/ws/rest/v1";
|
|
4
|
+
export declare const OPENMRS_REST_V2 = "/openmrs/ws/rest/v2";
|
|
4
5
|
export declare const BAHMNI_USER_COOKIE_NAME = "bahmni.user";
|
|
5
6
|
export declare const BAHMNI_HOME_PATH = "/bahmni/home/index.html";
|
|
6
7
|
export declare const USER_PRIVILEGES_URL: string;
|
|
7
|
-
export declare const OBSERVATION_FORMS_URL: string;
|
|
8
|
-
export declare const USER_PINNED_PREFERENCE_URL: (userUuid: string) => string;
|
|
9
8
|
export declare const VISIT_LOCATION_UUID: string;
|
|
10
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,
|
|
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/date/constants.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const DATE_FORMAT = "dd/MM/yyyy";
|
|
2
2
|
export declare const FULL_MONTH_DATE_FORMAT = "MMMM dd, yyyy";
|
|
3
|
+
export declare const REGISTRATION_DATE_FORMAT = "do MMM, yyyy";
|
|
3
4
|
export declare const DATE_TIME_FORMAT = "dd/MM/yyyy HH:mm";
|
|
4
5
|
export declare const ISO_DATE_FORMAT = "yyyy-MM-dd";
|
|
5
6
|
export declare const DATE_PICKER_INPUT_FORMAT = "d/m/Y";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/date/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,eAAe,CAAC;AACxC,eAAO,MAAM,sBAAsB,kBAAkB,CAAC;AACtD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,eAAe,eAAe,CAAC;AAC5C,eAAO,MAAM,wBAAwB,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/date/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,eAAe,CAAC;AACxC,eAAO,MAAM,sBAAsB,kBAAkB,CAAC;AACtD,eAAO,MAAM,wBAAwB,iBAAiB,CAAC;AACvD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,eAAe,eAAe,CAAC;AAC5C,eAAO,MAAM,wBAAwB,UAAU,CAAC"}
|