Sha256: 862cc9f9a5b2b578ab80262b87f470b5579b3d84dd2df8511aa19a7e111540b5

Contents?: true

Size: 1.3 KB

Versions: 123

Compression:

Stored size: 1.3 KB

Contents

# frozen_string_literal: true

json.id patient.id
json.secure_id patient.secure_id
json.nhs_number patient.nhs_number
json.local_patient_id patient.local_patient_id
json.local_patient_id_2 patient.local_patient_id_2
json.local_patient_id_3 patient.local_patient_id_3
json.local_patient_id_4 patient.local_patient_id_4
json.local_patient_id_5 patient.local_patient_id_5
json.title patient.title
json.given_name patient.given_name
json.family_name patient.family_name
json.born_on patient.born_on&.to_s
json.died_on patient.died_on&.to_s
json.sex patient.sex&.code
json.ethnicity patient.ethnicity&.name
json.current_address do
  json.street_1 patient.current_address&.street_1
  json.street_2 patient.current_address&.street_2
  json.street_3 patient.current_address&.street_3
  json.town patient.current_address&.town
  json.county patient.current_address&.county
  json.region patient.current_address&.region
  json.postcode patient.current_address&.postcode
  json.country patient.current_address&.country&.name
  json.telephone patient.current_address&.telephone
  json.email patient.current_address&.email
end
json.prescriptions_url api_v1_patient_prescriptions_url(patient_id: patient)
json.hd_profile_url api_v1_patient_hd_current_profile_url(patient_id: patient)
# TODO: HD Profile link to have at least site and schedule

Version data entries

123 entries across 123 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.1.0 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.167 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.166 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.165 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.164 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.163 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.162 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.161 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.160 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.159 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.158 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.157 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.156 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.155 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.153 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.152 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.151 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.149 app/views/renalware/api/v1/patients/patients/show.json.jbuilder
renalware-core-2.0.148 app/views/renalware/api/v1/patients/patients/show.json.jbuilder