patient_flag object format:

Key Type Always presents Notes
id integer Yes Identifier of patient flag
doctor integer Yes Identifier of doctor who owns this patient flag
color string Yes Color of patient flag
priority integer Yes
name string Yes
created_at timestamp Yes
updated_at timestamp Yes
archived boolean Yes

patient_flags_attched object format:

Key Type POST requests Notes
flag_text string optional Description of this patient flag
flag_type integer required ID of the associated /api/patient_flag_types object