fixing SOP code systme mapping, adding medication details to medication order, handling insurance provider directly in patient_data template (not working through data criteria)