mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -13,6 +13,24 @@ $('#primary_diagnosis').on('change', function () {
|
||||
});
|
||||
});
|
||||
|
||||
$('#wrapper').on( 'change', '[id^=left_eye_diagnosis_id_]', function () {
|
||||
var data = 'diagnosis_id=' + $(this).val();
|
||||
var other_diagnosis_id = $(this).attr('id');
|
||||
var nth = other_diagnosis_id.substring(22); //remove "other_diagnosis_id_" from strg to remain with the no e.g 1003
|
||||
var prompt_id = parseInt(nth) - 1000;
|
||||
var reference_id = prompt_id + 100;
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: "/diagnoses/get_diagnosis_categories",
|
||||
data: data,
|
||||
cache: false,
|
||||
success: function (result) { console.log(result)
|
||||
$('#right_diagnosis_category_'+prompt_id).html("<select class='form-control select'>"+ result +"</select>");
|
||||
$('#other_diagnosis_id_'+reference_id).html("<select class='form-control select'></select>");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#wrapper').on( 'change', '[id^=other_diagnosis_id_]', function () {
|
||||
var data = 'diagnosis_id=' + $(this).val();
|
||||
var other_diagnosis_id = $(this).attr('id');
|
||||
|
||||
Reference in New Issue
Block a user