Hello,
I was wondering if anyone knows how I can update the translation of the new HTML version Family Hx form. I'm actually wanting to turn off the translation on the HTML form, because I already have another form with the encounter translating the Family Hx information the way the providers want.
Thanks.
Have you tried removing the HTML form from the encounter after performing all of your family Hx updates? It is an extra step that your providers would have to take, but that may be the safest option. The other option would require some coding experience. Specifically, you would need to modify the code in the familyhistory-controller.js file which is where the text translation function is being called when certain events occur. I have not tried this, but in theory, commenting out the calls to the text translation function should accomplish this. If you went this route, you would need to deploy your own custom HTML family history form.
In many cases a text component serves up the text translation for the HTML form. If so, you could modify the text component directly. Using the symbol GET_FORM_LIST( ) you could suppress desired text if the second form appears in the update.
Thanks. That was the code I was looking for. I ended up just commenting out the 2 lines below, and so far it is working like I need.
I appreciate the information.
$scope.updateTextTranslation = function () {
if ($scope.updatingTextTranslation != null) {
$timeout.cancel($scope.updatingTextTranslation);
}
$scope.updatingTextTranslation = $timeout(function () {
$scope.updatingTextTranslation = null;
var text = $scope.getChangesForCurrentUpdate();
if (text != null && text != "") {
//emrApiAccessService.setTextTranslation(text, true);
}
else {
//alert("Nothing to update");
}
}, 1000);
}