Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
d4377e0
Printing Patient Identifier template should use backend API
jnsereko May 6, 2025
c835d2a
allow printing sticker without download to local machine
jnsereko May 8, 2025
fe11571
Move Patient Identifier Sticker logic to a new esm
jnsereko May 13, 2025
9aa7b96
add translations
jnsereko May 13, 2025
5cafc05
Fix CI
jnsereko May 13, 2025
91a2998
Update packages/esm-patient-label-printing-app/README.md
jnsereko May 13, 2025
ceae307
clean code
jnsereko May 13, 2025
0bae418
use patient documents backend module
jnsereko May 20, 2025
82d8b6f
Add ability to enable Sticker by default
jnsereko Aug 4, 2025
226065c
add lock file
jnsereko Aug 4, 2025
776c6d1
Update packages/esm-patient-label-printing-app/src/hooks/useStickerPd…
jnsereko Oct 14, 2025
0363a19
Update packages/esm-patient-label-printing-app/src/print-identifier-s…
jnsereko Oct 14, 2025
6073038
(chore) Bump OpenMRS dependencies and fix tests
denniskigen Oct 6, 2025
b666b4e
rebase, update the Patient Id Sticker rest API and remove feature flag
jnsereko Oct 14, 2025
65f200a
rebase, remove feature flag and update API
jnsereko Oct 15, 2025
3b75a6b
Update packages/esm-patient-printing-app/src/print-identifier-sticker…
jnsereko Oct 16, 2025
38ca6d0
update webpack, printing hook and rename app
jnsereko Oct 23, 2025
9529c25
update lock file
jnsereko Oct 23, 2025
fc30c63
update lock file
jnsereko Oct 23, 2025
25308f0
Update packages/esm-patient-label-printing-app/src/print-identifier-s…
jnsereko Oct 24, 2025
be62675
Update packages/esm-patient-label-printing-app/package.json
jnsereko Oct 24, 2025
af1c81c
Update packages/esm-patient-label-printing-app/package.json
jnsereko Oct 24, 2025
68acde3
Update packages/esm-patient-label-printing-app/package.json
jnsereko Oct 24, 2025
02601c6
Update packages/esm-patient-label-printing-app/package.json
jnsereko Oct 24, 2025
b10f8e8
Update packages/esm-patient-label-printing-app/package.json
jnsereko Oct 24, 2025
7c0a5d7
Update packages/esm-patient-label-printing-app/package.json
jnsereko Oct 24, 2025
06a14f4
remove translation changes in non-en files
jnsereko Oct 27, 2025
247d708
Trigger CI/CD pipeline
jnsereko Oct 27, 2025
f7f67d6
reset form entry webpack to 5.94 to fix CI
jnsereko Oct 27, 2025
11b726e
add lock file
jnsereko Oct 27, 2025
dbf688c
Update packages/esm-patient-label-printing-app/src/config-schema.ts
jnsereko Oct 29, 2025
97d46fb
simplify PDF printer hook logic and cleanup
jnsereko Oct 29, 2025
5649405
Trigger CI/CD pipeline
jnsereko Oct 27, 2025
612f063
Trigger CI/CD pipeline
jnsereko Oct 27, 2025
8f383aa
Improve label printing test coverage
denniskigen Nov 20, 2025
7390b9a
Merge branch 'main' into LIME2-718
denniskigen Nov 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 0 additions & 65 deletions packages/esm-patient-banner-app/src/config-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,79 +12,14 @@ export const configSchema = {
'14d4f066-15f5-102d-96e4-000c29c2a5d7',
],
},
printPatientSticker: {
header: {
_type: Type.Object,
_description: 'Configuration properties for patient identifier stickers',
showBarcode: {
_type: Type.Boolean,
_description: 'Whether to display a barcode on the patient sticker',
},
showLogo: {
_type: Type.Boolean,
_description: 'Whether to display a logo on the patient sticker',
},
logo: {
_type: Type.String,
_description: 'The URL of the logo to display in the patient sticker',
},
_default: {
showBarcode: true,
showLogo: true,
logo: '',
},
},
fields: {
_type: Type.Array,
_elements: {
_type: Type.String,
},
_description: 'Patient demographics to include in the patient sticker printout',
_default: ['name', 'dob', 'gender', 'identifier', 'age', 'contact', 'address'],
},
pageSize: {
_type: Type.String,
_description:
'Specifies the paper size for printing the sticker. You can define the size using units (e.g., mm, in) or named sizes (e.g., "148mm 210mm", "A1", "A2", "A4", "A5").',
_default: 'A4',
},
printScale: {
_type: Type.String,
_description:
'Set the scale for the printed content. A value between 0 and 1 shrinks the content, while a value greater than 1 enlarges it. The scale must be greater than 0.',
_default: '1',
},
identifiersToDisplay: {
_type: Type.Array,
_elements: {
_type: Type.UUID,
},
_description:
'List of UUIDs of patient identifier types to include on the patient sticker. If empty, all identifiers will be displayed.',
_default: [],
},
},
useRelationshipNameLink: {
_type: Type.Boolean,
_description: "Whether to use the relationship name as a link to the associated person's patient chart.",
_default: false,
},
};

export type AllowedPatientFields = 'address' | 'age' | 'contact' | 'dob' | 'gender' | 'identifier' | 'name';

export interface ConfigObject {
contactAttributeTypes: Array<string>;
printPatientSticker: {
header: {
showBarcode: boolean;
showLogo: boolean;
logo: string;
};
fields: Array<AllowedPatientFields>;
pageSize: string;
printScale: string;
identifiersToDisplay: Array<string>;
};
useRelationshipNameLink: boolean;
}
21 changes: 1 addition & 20 deletions packages/esm-patient-banner-app/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
defineConfigSchema,
getAsyncLifecycle,
getSyncLifecycle,
messageOmrsServiceWorker,
restBaseUrl,
} from '@openmrs/esm-framework';
import { defineConfigSchema, getSyncLifecycle, messageOmrsServiceWorker, restBaseUrl } from '@openmrs/esm-framework';
import { configSchema } from './config-schema';
import deceasedPatientTagComponent from './banner-tags/deceased-patient-tag.extension';
import patientBannerComponent from './banner/patient-banner.component';
Expand Down Expand Up @@ -34,19 +28,6 @@ export const deceasedPatientTag = getSyncLifecycle(deceasedPatientTagComponent,

export const patientBanner = getSyncLifecycle(patientBannerComponent, options);

export const printIdentifierStickerModal = getAsyncLifecycle(
() => import('./print-identifier-sticker/print-identifier-sticker.modal'),
options,
);

export const printIdentifierStickerActionButton = getAsyncLifecycle(
() => import('./print-identifier-sticker/print-identifier-sticker-action-button.component'),
{
featureName: 'patient-actions-slot-print-identifier-sticker-button',
moduleName,
},
);

/*
The translations for built-in address fields are kept here in patient-banner.
This comment ensures that they are included in the translations files.
Expand Down

This file was deleted.

This file was deleted.

Loading