This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "printPatientSticker": { | |
| "pageSize": "70mm 50mm", | |
| "header": { | |
| "showBarcode": true, | |
| "showLogo": false | |
| }, | |
| "printStickerFields": { | |
| "fields": [ | |
| "identifier", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //lastn is an operational type | |
| @Operation(name="$lastn", idempotent=true) | |
| public Bundle getLastnObservation( @OptionalParam(name=Observation.SP_SUBJECT) ReferenceParam reference, | |
| Intenger max){ | |
| //this is what I think is to be done | |
| return getCurrentSession().createCriteria(Obs.class).createAlias("obs.person_id", "oi") | |
| .add(Restrictions.eq("oi", reference.getValue()) //restiction to get patient with entered ID | |
| .setMaxResults(max); | |
| .list() | |
| } |