ball
(Ellen Ball)
February 7, 2020, 2:25pm
2
We don’t record the number of visits. Each visit is recorded as an encounter, so no need to record the number of visits. The only situation where we record multiple occurrences of an event – collecting the chemotherapy cycle number (question/numeric).
Immunizations:
UI:
Concepts:
Code:
angular.module("vaccinations", [ "constants", "ngDialog", "obsService", "encounterTransaction", "filters", "pascalprecht.translate" ])
.config(function ($translateProvider) {
$translateProvider
.useUrlLoader('/' + OPENMRS_CONTEXT_PATH + '/module/uicommons/messages/messages.json', {
queryParameter : 'localeKey'
})
.useSanitizeValueStrategy('escape'); // TODO is this the correct one to use http://angular-translate.github.io/docs/#/guide/19_security
})
.factory("VaccinationService", [ "Obs", "Concepts", "EncounterTransaction",
function(Obs, Concepts, EncounterTransaction) {
return {
getHistory: function(patient) {
// raw REST query, will return { results: [...] }
return Obs.query({ v:"default", patient: patient.uuid, concept: Concepts.vaccinationHistoryConstruct.uuid });
},
deleteDose: function(obsGroup) {
return Obs.delete({uuid: obsGroup.uuid});
This file has been truncated. show original
2 Likes