@bahmni/clinical-app 0.0.1-dev.197 → 0.0.1-dev.199
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/{DocumentsTable-CR9lBUHD-NgCU3Wuh.js → DocumentsTable-CFwrptgn-TDnDKeKH.js} +1 -1
- package/dist/{FormsTable-szi7kPyc-BSubINnc.js → FormsTable-CB5_nrlS-BmQiefyY.js} +18 -18
- package/dist/{LNWAZHJI-C6C0V89h.js → LNWAZHJI-GXdLzMXB.js} +2 -2
- package/dist/{MWZ6AO7Z-7-fUNaP8.js → MWZ6AO7Z-DrXNSDFZ.js} +2 -2
- package/dist/{Observations-BYTVkUwc-BfBLTvD6.js → Observations-C7BBw4Hj-f41gVIcA.js} +14 -14
- package/dist/{YPM2AS64-CNv2J2kx.js → YPM2AS64-DJYy_evY.js} +1 -1
- package/dist/components/consultationPad/ConsultationPad.d.ts.map +1 -1
- package/dist/components/forms/medications/MedicationsForm.d.ts.map +1 -1
- package/dist/components/forms/vaccinations/VaccinationForm.d.ts +1 -1
- package/dist/components/forms/vaccinations/VaccinationForm.d.ts.map +1 -1
- package/dist/{index-avcEfTxb.js → index-BHZuYHVS.js} +10496 -10739
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/services/medicationService.d.ts +1 -10
- package/dist/services/medicationService.d.ts.map +1 -1
- package/dist/stores/medicationsStore.d.ts +0 -3
- package/dist/stores/medicationsStore.d.ts.map +1 -1
- package/dist/stores/vaccinationsStore.d.ts.map +1 -1
- package/dist/utils/fhir/medicationRequestResourceCreator.d.ts.map +1 -1
- package/dist/utils/fhir/medicationUtilities.d.ts +0 -5
- package/dist/utils/fhir/medicationUtilities.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import { Bundle, Medication
|
|
1
|
+
import { Bundle, Medication } from 'fhir/r4';
|
|
2
2
|
export declare function getMedicationsFromBundle(bundle: Bundle<Medication>): Medication[];
|
|
3
|
-
export interface ActiveMedicationBundleResult {
|
|
4
|
-
activeMedications: FhirMedicationRequest[];
|
|
5
|
-
medicationMap: Record<string, Medication>;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Extract active/on-hold MedicationRequest entries and build a Medication
|
|
9
|
-
* lookup map from a FHIR Bundle that uses _include to embed Medication resources.
|
|
10
|
-
*/
|
|
11
|
-
export declare function getActiveMedicationsFromBundle(bundle: Bundle | undefined): ActiveMedicationBundleResult;
|
|
12
3
|
export declare function getMedicationDisplay(medication: Medication): string;
|
|
13
4
|
//# sourceMappingURL=medicationService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"medicationService.d.ts","sourceRoot":"","sources":["../../src/services/medicationService.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"medicationService.d.ts","sourceRoot":"","sources":["../../src/services/medicationService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAM7C,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,GACzB,UAAU,EAAE,CAQd;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAenE"}
|
|
@@ -4,7 +4,6 @@ import { DurationUnitOption, MedicationInputEntry } from '../models/medication';
|
|
|
4
4
|
import { Frequency } from '../models/medicationConfig';
|
|
5
5
|
export interface MedicationState {
|
|
6
6
|
selectedMedications: MedicationInputEntry[];
|
|
7
|
-
hasOverlapDuplicates: boolean;
|
|
8
7
|
addMedication: (medication: Medication, displayName: string) => void;
|
|
9
8
|
removeMedication: (medicationId: string) => void;
|
|
10
9
|
updateDosage: (medicationId: string, dosage: number) => void;
|
|
@@ -21,8 +20,6 @@ export interface MedicationState {
|
|
|
21
20
|
updateDispenseUnit: (medicationId: string, unit: Concept) => void;
|
|
22
21
|
updateNote: (medicationId: string, note: string) => void;
|
|
23
22
|
validateAllMedications: () => boolean;
|
|
24
|
-
validateMedicationsForOverlaps: (activeMedications: import('fhir/r4').MedicationRequest[], medicationMap: Record<string, import('fhir/r4').Medication>) => boolean;
|
|
25
|
-
setOverlapDuplicates: (hasOverlaps: boolean) => void;
|
|
26
23
|
reset: () => void;
|
|
27
24
|
getState: () => MedicationState;
|
|
28
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"medicationsStore.d.ts","sourceRoot":"","sources":["../../src/stores/medicationsStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"medicationsStore.d.ts","sourceRoot":"","sources":["../../src/stores/medicationsStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAGvD,MAAM,WAAW,eAAe;IAC9B,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;IAE5C,aAAa,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,gBAAgB,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,YAAY,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D,gBAAgB,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAChE,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7E,WAAW,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D,cAAc,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACjE,kBAAkB,EAAE,CAClB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,kBAAkB,GAAG,IAAI,KAC5B,IAAI,CAAC;IACV,iBAAiB,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IACxE,WAAW,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D,YAAY,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9D,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC5D,sBAAsB,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzE,kBAAkB,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAClE,UAAU,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD,sBAAsB,EAAE,MAAM,OAAO,CAAC;IAEtC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,eAAe,CAAC;CACjC;AACD,eAAO,MAAM,kBAAkB,8EA2V5B,CAAC;AAEJ,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaccinationsStore.d.ts","sourceRoot":"","sources":["../../src/stores/vaccinationsStore.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vaccinationsStore.d.ts","sourceRoot":"","sources":["../../src/stores/vaccinationsStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE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a,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC7D,sBAAsB,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1E,kBAAkB,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACnE,UAAU,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,uBAAuB,EAAE,MAAM,OAAO,CAAC;IAEvC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,gBAAgB,CAAC;CAClC;AACD,eAAO,MAAM,mBAAmB,+EA2U7B,CAAC;AAEJ,eAAe,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"medicationRequestResourceCreator.d.ts","sourceRoot":"","sources":["../../../src/utils/fhir/medicationRequestResourceCreator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAkB,MAAM,SAAS,CAAC;AAEvE,OAAO,EAEL,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AASjC;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,GAC1C,iBAAiB,oBAAoB,EACrC,kBAAkB,SAAS,EAC3B,oBAAoB,SAAS,EAC7B,oBAAoB,SAAS,EAC7B,6BAA6B,MAAM,KAClC,
|
|
1
|
+
{"version":3,"file":"medicationRequestResourceCreator.d.ts","sourceRoot":"","sources":["../../../src/utils/fhir/medicationRequestResourceCreator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAkB,MAAM,SAAS,CAAC;AAEvE,OAAO,EAEL,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AASjC;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,GAC1C,iBAAiB,oBAAoB,EACrC,kBAAkB,SAAS,EAC3B,oBAAoB,SAAS,EAC7B,oBAAoB,SAAS,EAC7B,6BAA6B,MAAM,KAClC,iBA4BF,CAAC;AA6HF;;;;;;;GAOG;AACH,eAAO,MAAM,gCAAgC,GAC3C,mBAAmB,oBAAoB,EAAE,EACzC,kBAAkB,SAAS,EAC3B,oBAAoB,SAAS,EAC7B,oBAAoB,SAAS,EAC7B,6BAA6B,MAAM,KAClC,iBAAiB,EAUnB,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Medication, MedicationRequest as FhirMedicationRequest } from 'fhir/r4';
|
|
2
|
-
import { MedicationInputEntry } from '../../models/medication';
|
|
3
1
|
import { FHIRCode } from './codeUtilities';
|
|
4
2
|
export declare const makeEndDateExclusive: (endDate: Date) => Date;
|
|
5
3
|
export declare const isDateToday: (startDate: Date | string | undefined) => boolean;
|
|
@@ -23,8 +21,5 @@ export declare const extractMedicationCodes: (medication: CodeableResource | unk
|
|
|
23
21
|
export declare const medicationsMatchByCode: (medication1: CodeableResource | unknown, medication2: CodeableResource | unknown) => boolean;
|
|
24
22
|
export declare const extractMedicationRefId: (reference: string | undefined) => string | undefined;
|
|
25
23
|
export declare const extractDoseForm: (medication: Record<string, unknown>, displayName: string) => string | undefined;
|
|
26
|
-
export declare const checkMedicationsOverlap: (selectedMedications: MedicationInputEntry[], activeMedications: FhirMedicationRequest[], medicationMap: Record<string, Medication>) => boolean;
|
|
27
|
-
export declare const isDuplicateMedication: (newMedication: Medication, newStartDate: Date, newDuration: number, newDurationUnit: string, activeMedications: FhirMedicationRequest[], selectedMedications: MedicationInputEntry[], medicationMap: Record<string, Medication>) => boolean;
|
|
28
|
-
export declare const validateMedicationsForOverlaps: (selectedMedications: MedicationInputEntry[], activeMedications: FhirMedicationRequest[], medicationMap: Record<string, Medication>) => boolean;
|
|
29
24
|
export {};
|
|
30
25
|
//# sourceMappingURL=medicationUtilities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"medicationUtilities.d.ts","sourceRoot":"","sources":["../../../src/utils/fhir/medicationUtilities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"medicationUtilities.d.ts","sourceRoot":"","sources":["../../../src/utils/fhir/medicationUtilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA2B,MAAM,iBAAiB,CAAC;AAEpE,eAAO,MAAM,oBAAoB,GAAI,SAAS,IAAI,KAAG,IAIpD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,WAAW,IAAI,GAAG,MAAM,GAAG,SAAS,KAAG,OAUlE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,WAAW,IAAI,GAAG,MAAM,GAAG,SAAS,KACnC,OAUF,CAAC;AAEF,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE;QACL,MAAM,CAAC,EAAE,KAAK,CAAC;YACb,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,IAAI,CAAC,EAAE,MAAM,CAAC;SACf,CAAC,CAAC;KACJ,CAAC;IACF,yBAAyB,CAAC,EAAE;QAC1B,MAAM,CAAC,EAAE,KAAK,CAAC;YACb,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,IAAI,CAAC,EAAE,MAAM,CAAC;SACf,CAAC,CAAC;KACJ,CAAC;IAEF,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,eAAO,MAAM,sBAAsB,GACjC,YAAY,gBAAgB,GAAG,OAAO,KACrC,QAAQ,EAaV,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,aAAa,gBAAgB,GAAG,OAAO,EACvC,aAAa,gBAAgB,GAAG,OAAO,KACtC,OA4BF,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,WAAW,MAAM,GAAG,SAAS,KAC5B,MAAM,GAAG,SAMX,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,YAAY,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,aAAa,MAAM,KAClB,MAAM,GAAG,SAmBX,CAAC"}
|