5 kg) for 4 weeks." } } ], "note": [ { "text": "Dietary advice: Low salt (<5g/day), low fat diet. Avoid smoking and alcohol. Take all medications regularly. Report immediately if chest pain, breathlessness, or palpitations recur. Keep follow-up appointments without fail." } ] } } ] } JSON; file_put_contents('d:/Workplace/HMS_CI4_OLD/scratch/fhir_1.json', $f1_str); echo "Saved fhir_1.json\n";