Skip to content

Instantly share code, notes, and snippets.

@vagnerzampieri
Created November 21, 2012 17:47
Show Gist options
  • Save vagnerzampieri/4126429 to your computer and use it in GitHub Desktop.
Save vagnerzampieri/4126429 to your computer and use it in GitHub Desktop.
Patient
json.patients @patients do |patient|
json.id patient.id
json.name patient.name
json.anamnese patient.anamnese.id
json.cpf patient.cpf
json.cep patient.cep
json.address patient.address
json.number patient.number
json.complement patient.complement
json.neighborhood patient.neighborhood
json.city patient.city
json.state patient.state
json.country patient.country
json.rg patient.rg
json.birth_certificate patient.birth_certificate
json.ric patient.ric
json.age patient.age
json.birth patient.birth
json.mother_name patient.mother_name
json.place_of_birth patient.place_of_birth
json.civil_status patient.civil_status
json.cover_image_uid patient.cover_image_uid
json.cover_image_name patient.cover_image_name
json.url_image patient.cover_image.url
json.telephones patient.telephones do |phone|
json.id phone.id
json.ddd phone.ddd
json.tel phone.tel
json.branch_line phone.branch_line
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment