Closed ATHULKNAIR closed 1 year ago
Hey @ATHULKNAIR This seems to be an issue when using the multiple elements with a prefix and suffix - since all of those values get populated under path:0/diagnosis_name.
Can you also post the internal .data property of the mb-form element before and after submitting for reference?
@sidharthramesh
data before submiting :
{ "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/eye_lid:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/eye_lid:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/conjuctiva:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/conjuctiva:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/cornea:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/cornea:0/cornea": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/anterior_chamber:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/anterior_chamber:0/anterior_chamber": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/iris:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/iris:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/pupil:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/pupil:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/lens:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/lens:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/nucleus:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/nucleus:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/ocular_movement:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/ocular_movement:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/adnexa:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/adnexa:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/angle:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/angle:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/fundus:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/fundus:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/tropy_fundus:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/tropy_fundus:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/disc_optic_nerve:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/disc_optic_nerve:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/vitreous:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/vitreous:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/others:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/others:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/ducts:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/ducts:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/gonio:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/gonio:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/problem_diagnosis_name": [], "aarthy.clinicalnotes.v1/diagnosis_of_left_eye:0/problem_diagnosis_name": [], "aarthy.clinicalnotes.v1/medical_advice/current_activity:0/service_name": [], "aarthy.clinicalnotes.v1/schedule_an_appointment/current_activity:0/service_name": [] }
data after submiting :
{ "aarthy.clinicalnotes.v1/category": { "code": "433", "value": "event", "terminology": "openehr" }, "aarthy.clinicalnotes.v1/context/start_time": "2022-07-19T09:18:28.118Z", "aarthy.clinicalnotes.v1/context/setting": { "code": "238", "value": "other care", "terminology": "openehr" }, "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/eye_lid:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/eye_lid:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/conjuctiva:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/conjuctiva:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/cornea:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/cornea:0/cornea": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/anterior_chamber:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/anterior_chamber:0/anterior_chamber": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/iris:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/iris:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/pupil:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/pupil:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/lens:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/lens:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/nucleus:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/nucleus:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/ocular_movement:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/ocular_movement:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/adnexa:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/adnexa:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/angle:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/angle:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/fundus:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/fundus:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/tropy_fundus:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/tropy_fundus:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/disc_optic_nerve:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/disc_optic_nerve:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/vitreous:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/vitreous:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/others:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/others:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/ducts:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/ducts:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_right_eye/gonio:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/physical_examination_findings/any_event:0/examination_of_left_eye/gonio:0/symptom_sign_name": [], "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/problem_diagnosis_name": [ "asdads", "asdasd" ], "aarthy.clinicalnotes.v1/diagnosis_of_left_eye:0/problem_diagnosis_name": [ "asdasd", "asdasdasd" ], "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/language": { "code": "en", "terminology": "ISO_639-1" }, "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/encoding": { "code": "UTF-8", "terminology": "IANA_character-sets" }, "aarthy.clinicalnotes.v1/diagnosis_of_left_eye:0/language": { "code": "en", "terminology": "ISO_639-1" }, "aarthy.clinicalnotes.v1/diagnosis_of_left_eye:0/encoding": { "code": "UTF-8", "terminology": "IANA_character-sets" }, "aarthy.clinicalnotes.v1/medical_advice/current_activity:0/service_name": [], "aarthy.clinicalnotes.v1/schedule_an_appointment/current_activity:0/service_name": [], "aarthy.clinicalnotes.v1/composer": { "name": "Sidharth" }, "aarthy.clinicalnotes.v1/language": { "code": "en", "terminology": "ISO_639-1" }, "aarthy.clinicalnotes.v1/territory": { "code": "IN", "terminology": "ISO_3166-1" } }
The composition made from this :
{ "aarthy.clinicalnotes.v1/category|code": "433", "aarthy.clinicalnotes.v1/category|value": "event", "aarthy.clinicalnotes.v1/category|terminology": "openehr", "aarthy.clinicalnotes.v1/context/start_time": "2022-07-19T09:18:28.118Z", "aarthy.clinicalnotes.v1/context/setting|code": "238", "aarthy.clinicalnotes.v1/context/setting|value": "other care", "aarthy.clinicalnotes.v1/context/setting|terminology": "openehr", "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/problem_diagnosis_name": "asdads", "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:1/problem_diagnosis_name": "asdasd", "aarthy.clinicalnotes.v1/diagnosis_of_left_eye:0/problem_diagnosis_name": "asdasd", "aarthy.clinicalnotes.v1/diagnosis_of_left_eye:1/problem_diagnosis_name": "asdasdasd", "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/language|code": "en", "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/language|terminology": "ISO_639-1", "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/encoding|code": "UTF-8", "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/encoding|terminology": "IANA_character-sets", "aarthy.clinicalnotes.v1/diagnosis_of_left_eye:0/language|code": "en", "aarthy.clinicalnotes.v1/diagnosis_of_left_eye:0/language|terminology": "ISO_639-1", "aarthy.clinicalnotes.v1/diagnosis_of_left_eye:0/encoding|code": "UTF-8", "aarthy.clinicalnotes.v1/diagnosis_of_left_eye:0/encoding|terminology": "IANA_character-sets", "aarthy.clinicalnotes.v1/composer|name": "Sidharth", "aarthy.clinicalnotes.v1/language|code": "en", "aarthy.clinicalnotes.v1/language|terminology": "ISO_639-1", "aarthy.clinicalnotes.v1/territory|code": "IN", "aarthy.clinicalnotes.v1/territory|terminology": "ISO_3166-1" }
@ATHULKNAIR I'm assuming this issue is now resolved? Should we close?
Medblocks UI components :
<mb-input-multiple repeatsuffix="problem_diagnosis_name" repeatprefix="aarthy.clinicalnotes.v1/diagnosis_of_right_eye" path="aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/problem_diagnosis_name" />
Composition samples :
{ "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/problem_diagnosis_name":"xxxxx", "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/language|code":"en", "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/language|terminology":"ISO_639-1" "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/encoding|code":"IN", "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/encoding|terminology":"ISO_3166-1" }
when there is only single input, the context elements are getting populated. But when there are multiple inputs,
{ "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/problem_diagnosis_name":"xxxxx", "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:1/problem_diagnosis_name":"yyyyy", "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/language|code":"en", "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/language|terminology":"ISO_639-1" "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/encoding|code":"IN", "aarthy.clinicalnotes.v1/diagnosis_of_right_eye:0/encoding|terminology":"ISO_3166-1" }
missing context elements :