@bahmni/services 0.0.1-dev.246 → 0.0.1-dev.247
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/api/api.d.ts +3 -1
- package/dist/api/api.d.ts.map +1 -1
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/constants.d.ts +1 -0
- package/dist/api/constants.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1097 -1097
- package/dist/patientService/index.d.ts +1 -1
- package/dist/patientService/index.d.ts.map +1 -1
- package/dist/patientService/patientService.d.ts +5 -4
- package/dist/patientService/patientService.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { getPatientById, getFormattedPatientById, searchPatientByNameOrId, searchPatientByCustomAttribute, getIdentifierTypes, getPrimaryIdentifierType, createPatient, updatePatient, getIdentifierData, getGenders, getAddressHierarchyEntries, getOrderedAddressHierarchyLevels,
|
|
1
|
+
export { getPatientById, getFormattedPatientById, searchPatientByNameOrId, searchPatientByCustomAttribute, getIdentifierTypes, getPrimaryIdentifierType, createPatient, updatePatient, getIdentifierData, getGenders, getAddressHierarchyEntries, getOrderedAddressHierarchyLevels, getPatientPhotoDataUrl, getPatientProfile, getRelationshipTypes, getPersonAttributeTypes, } from './patientService';
|
|
2
2
|
export { type FormattedPatientData, type PatientSearchResultBundle, type PatientSearchResult, type IdentifierSource, type IdentifierType, type IdentifierTypesResponse, type CreatePatientRequest, type CreatePatientResponse, type PatientName, type PatientAddress, type PatientIdentifier, type PatientAttribute, type AddressHierarchyEntry, type OrderedAddressHierarchyLevel, type OrderedAddressHierarchyLevels, type PatientProfileResponse, type PersonAttributeType, type PersonAttributeTypesResponse, type ConceptAnswer, type PersonAttributeConcept, type PatientSearchField, type AppointmentSearchField, type AppointmentSearchResult, type ExpectedFieldConfig, type SearchActionConfig, } 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,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,0BAA0B,EAC1B,gCAAgC,EAChC,
|
|
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,iBAAiB,EACjB,UAAU,EACV,0BAA0B,EAC1B,gCAAgC,EAChC,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,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,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,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,GACxB,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"}
|
|
@@ -35,11 +35,12 @@ export declare const formatPatientData: (patient: Patient) => FormattedPatientDa
|
|
|
35
35
|
*/
|
|
36
36
|
export declare const getFormattedPatientById: (patientUUID: string) => Promise<FormattedPatientData>;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* @
|
|
38
|
+
* Fetches a patient's photo from OpenMRS as a Blob and converts it to a base64 data URL
|
|
39
|
+
* suitable for use as an img src attribute
|
|
40
|
+
* @param patientUUID - The UUID of the patient whose photo to fetch
|
|
41
|
+
* @returns A base64 data URL string for the patient photo
|
|
41
42
|
*/
|
|
42
|
-
export declare const
|
|
43
|
+
export declare const getPatientPhotoDataUrl: (patientUUID: string) => Promise<string>;
|
|
43
44
|
/**
|
|
44
45
|
* Search patient by Name / Identifier
|
|
45
46
|
* @param searchTerm - The Name / Identifier of the patient
|
|
@@ -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;AAwBlC,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,EAEvB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,6BAA6B,EAC7B,sBAAsB,EACtB,4BAA4B,EAE7B,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,cAAc,GAAU,aAAa,MAAM,KAAG,OA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