updated streamline-setup v2

This commit is contained in:
2025-01-15 08:53:49 -08:00
committed by alec.turner
parent a2ce9248f0
commit 4b569f81b0
20228 changed files with 2932048 additions and 63204 deletions
+18
View File
@@ -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');