I have a json data like
[
{
"id": "sample-0",
"body_part": "Neck",
"pain_type": "Burning Pain",
"pain_scale": 5,
"activity_trigger": "Typing",
"recommended_exercises_tools": [
{
"exercise": "Lunges",
"tools": "Foam Roller"
},
{
"exercise": "Squats",
"tools": "Hot Compress"
}
]
},
{
"id": "sample-1",
"body_part": "Knee",
"pain_type": "Sharp Pain",
"pain_scale": 10,
"activity_trigger": "Typing",
"recommended_exercises_tools": [
{
"exercise": "Neck Stretches",
"tools": "Massage Ball"
},
{
"exercise": "Head Tilts",
"tools": "Cold Compress"
}
]
}]}
I need to create a module when I pass the body_part, the module would give the ecommended_exercises_tools associated to the body part.
I tried using chatGpt but didn’t get too far, the main goal is to use the model on a Swift application on Iphones.
Thanks