@bahmni/services 0.0.1-dev.52 → 0.0.1-dev.54
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/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/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/models/registrationConfig.d.ts +1 -0
- package/dist/configService/models/registrationConfig.d.ts.map +1 -1
- package/dist/configService/schemas/registrationConfig.schema.json.d.ts +4 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1604 -1593
- package/dist/patientService/index.d.ts +1 -1
- package/dist/patientService/index.d.ts.map +1 -1
- package/dist/patientService/patientService.d.ts +6 -1
- package/dist/patientService/patientService.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { getPatientById, getFormattedPatientById, searchPatientByNameOrId, searchPatientByCustomAttribute, getPrimaryIdentifierType, createPatient, updatePatient, createVisit, getActiveVisitByPatient, getIdentifierData, getGenders, getAddressHierarchyEntries, getVisitTypes, getVisitLocationUUID, getOrderedAddressHierarchyLevels, getPersonAttributeTypes, } from './patientService';
|
|
1
|
+
export { getPatientById, getFormattedPatientById, searchPatientByNameOrId, searchPatientByCustomAttribute, getIdentifierTypes, getPrimaryIdentifierType, createPatient, updatePatient, createVisit, getActiveVisitByPatient, getIdentifierData, getGenders, getAddressHierarchyEntries, getVisitTypes, getVisitLocationUUID, getOrderedAddressHierarchyLevels, getPersonAttributeTypes, } from './patientService';
|
|
2
2
|
export { type FormattedPatientData, type PatientSearchResultBundle, type PatientSearchResult, type IdentifierSource, type IdentifierType, type IdentifierTypesResponse, type CreatePatientRequest, type CreatePatientResponse, type VisitData, type PatientName, type PatientAddress, type PatientIdentifier, type PatientAttribute, type AddressHierarchyEntry, type VisitType, type VisitLocationResponse, type ActiveVisit, type OrderedAddressHierarchyLevel, type OrderedAddressHierarchyLevels, type PersonAttributeType, type PersonAttributeTypesResponse, type ConceptAnswer, type PersonAttributeConcept, } from './models';
|
|
3
3
|
export { AttributeFormat, AttributeInputType, getInputTypeForFormat, isBooleanFormat, isConceptFormat, isNumberFormat, isDateFormat, isTextFormat, } from './attributeFormatMapper';
|
|
4
4
|
export { MAX_PATIENT_AGE_YEARS, MAX_NAME_LENGTH, MAX_PHONE_NUMBER_LENGTH, } from './constants';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/patientService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,8BAA8B,EAC9B,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,WAAW,EACX,uBAAuB,EACvB,iBAAiB,EACjB,UAAU,EACV,0BAA0B,EAC1B,aAAa,EACb,oBAAoB,EACpB,gCAAgC,EAChC,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,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,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,KAAK,aAAa,EAClB,KAAK,sBAAsB,GAC5B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,cAAc,EACd,YAAY,EACZ,YAAY,GACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,uBAAuB,GACxB,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/patientService/index.ts"],"names":[],"mappings":"AAAA,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,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,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,SAAS,EACd,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,KAAK,aAAa,EAClB,KAAK,sBAAsB,GAC5B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,cAAc,EACd,YAAY,EACZ,YAAY,GACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,uBAAuB,GACxB,MAAM,aAAa,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Patient } from 'fhir/r4';
|
|
2
2
|
import { PatientSearchField } from '../configService/models/registrationConfig';
|
|
3
|
-
import { FormattedPatientData, PatientSearchResultBundle, CreatePatientRequest, CreatePatientResponse, AddressHierarchyEntry, VisitLocationResponse, ActiveVisit, VisitData, VisitType, OrderedAddressHierarchyLevels, PersonAttributeTypesResponse } from './models';
|
|
3
|
+
import { FormattedPatientData, PatientSearchResultBundle, IdentifierTypesResponse, CreatePatientRequest, CreatePatientResponse, AddressHierarchyEntry, VisitLocationResponse, ActiveVisit, VisitData, VisitType, OrderedAddressHierarchyLevels, PersonAttributeTypesResponse } from './models';
|
|
4
4
|
export declare const getPatientById: (patientUUID: string) => Promise<Patient>;
|
|
5
5
|
/**
|
|
6
6
|
* Format patient's full name from FHIR patient data
|
|
@@ -50,6 +50,11 @@ export declare const searchPatientByNameOrId: (searchTerm: string) => Promise<Pa
|
|
|
50
50
|
* @returns A formatted patient search bundle object
|
|
51
51
|
*/
|
|
52
52
|
export declare const searchPatientByCustomAttribute: (searchTerm: string, fieldType: string, fieldsToSearch: string[], allSearchFields: PatientSearchField[], t: (key: string) => string) => Promise<PatientSearchResultBundle>;
|
|
53
|
+
/**
|
|
54
|
+
* Get all identifier types from idgen
|
|
55
|
+
* @returns Promise<IdentifierTypesResponse> - Array of all identifier types with their sources
|
|
56
|
+
*/
|
|
57
|
+
export declare const getIdentifierTypes: () => Promise<IdentifierTypesResponse>;
|
|
53
58
|
/**
|
|
54
59
|
* Get primary identifier type from Bahmni app settings
|
|
55
60
|
* @returns Promise<string | null> - The primary identifier type UUID or null if not found
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patientService.d.ts","sourceRoot":"","sources":["../../src/patientService/patientService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGlC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAuBhF,OAAO,EACL,oBAAoB,EACpB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"patientService.d.ts","sourceRoot":"","sources":["../../src/patientService/patientService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGlC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAuBhF,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,EAEvB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,WAAW,EACX,SAAS,EACT,SAAS,EACT,6BAA6B,EAC7B,4BAA4B,EAC7B,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,cAAc,GAAU,aAAa,MAAM,KAAG,OAAO,CAAC,OAAO,CAUzE,CAAC;AAuBF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,OAAO,KAAG,MAAM,GAAG,IAc7D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,WAAW,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAC3C,MAAM,GAAG,IAkBX,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,WAAW,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAC3C,MAAM,GAAG,IAMX,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,OAAO,KAAG,oBAmCpD,CAAC;AAEF;;;;G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