@bahmni/registration-app 0.0.1-dev.247 → 0.0.1-dev.256

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { av as s, at as t, au as E } from "./index-BrajMZw_.js";
1
+ import { av as s, at as t, au as E } from "./index-BuWaqG5L.js";
2
2
  export {
3
3
  s as IDENTIFIER_TYPES_QUERY_KEY,
4
4
  t as RegistrationApp,
@@ -1 +1 @@
1
- {"version":3,"file":"PatientRegister.d.ts","sourceRoot":"","sources":["../../../src/pages/PatientRegister/PatientRegister.tsx"],"names":[],"mappings":"AAyCA,QAAA,MAAM,eAAe,+CA2VpB,CAAC;AACF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"PatientRegister.d.ts","sourceRoot":"","sources":["../../../src/pages/PatientRegister/PatientRegister.tsx"],"names":[],"mappings":"AAwCA,QAAA,MAAM,eAAe,+CA4VpB,CAAC;AACF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const convertTimeToISODateTime: (dateString: string, timeString: string | null) => string | null;
2
+ //# sourceMappingURL=dateTimeUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateTimeUtils.d.ts","sourceRoot":"","sources":["../../src/utils/dateTimeUtils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,GACnC,YAAY,MAAM,EAClB,YAAY,MAAM,GAAG,IAAI,KACxB,MAAM,GAAG,IAWX,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { PatientAddress, PatientIdentifier, PersonAttributeType } from '@bahmni/services';
2
+ import { Patient } from 'fhir/r4';
3
+ import { BasicInfoData, PersonAttributesData, AdditionalIdentifiersData } from '../models/patient';
4
+ interface MapperInput {
5
+ profile: BasicInfoData & {
6
+ dobEstimated: boolean;
7
+ patientIdentifier: PatientIdentifier;
8
+ };
9
+ address: PatientAddress;
10
+ contact: PersonAttributesData;
11
+ additional: PersonAttributesData;
12
+ additionalIdentifiers: AdditionalIdentifiersData;
13
+ additionalIdentifiersInitialData?: AdditionalIdentifiersData;
14
+ identifierTypeNames?: Record<string, string>;
15
+ loginLocationUuid?: string;
16
+ personAttributes: PersonAttributeType[];
17
+ patientUuid?: string;
18
+ }
19
+ export declare function buildFhirPatient(input: MapperInput): Patient;
20
+ export {};
21
+ //# sourceMappingURL=fhirPatientMapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fhirPatientMapper.d.ts","sourceRoot":"","sources":["../../src/utils/fhirPatientMapper.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,OAAO,EAAkC,MAAM,SAAS,CAAC;AACvE,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;AA4C3B,UAAU,WAAW;IACnB,OAAO,EAAE,aAAa,GAAG;QACvB,YAAY,EAAE,OAAO,CAAC;QACtB,iBAAiB,EAAE,iBAAiB,CAAC;KACtC,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,UAAU,EAAE,oBAAoB,CAAC;IACjC,qBAAqB,EAAE,yBAAyB,CAAC;IACjD,gCAAgC,CAAC,EAAE,yBAAyB,CAAC;IAC7D,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,mBAAmB,EAAE,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CA4J5D"}
@@ -2,6 +2,7 @@ export declare const useIdentifierData: () => {
2
2
  identifierPrefixes: string[];
3
3
  identifierSources: Map<string, string> | undefined;
4
4
  primaryIdentifierType: string | null | undefined;
5
+ primaryIdentifierTypeName: string | null | undefined;
5
6
  };
6
7
  export declare const useGenderData: (t: (key: string) => string) => {
7
8
  genders: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"identifierGenderUtils.d.ts","sourceRoot":"","sources":["../../src/utils/identifierGenderUtils.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;CA8B7B,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM;;6BAiBtB,MAAM,KAAG,MAAM;CAShD,CAAC"}
1
+ {"version":3,"file":"identifierGenderUtils.d.ts","sourceRoot":"","sources":["../../src/utils/identifierGenderUtils.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;CAoC7B,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM;;6BAiBtB,MAAM,KAAG,MAAM;CAShD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/registration-app",
3
- "version": "0.0.1-dev.247",
3
+ "version": "0.0.1-dev.256",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",