pub fn to_writer<T: FHIRJSONSerializer>( writer: &mut dyn Write, value: &T, ) -> Result<bool, SerializeError>