Hi! I have the following concrete case:
Entity Patient
Entity Addresses (that stores all the addresses the Patient have/had - needed due to patient living in an area of high migratory activity)
Entity Prescription (of medicines)
Entity Prescription has a receipt template that needs Patient.name and Patient.Addresses.LATEST-RECORD.
When editing the Prescription template I can see listed the attributes Patient.AddressesNames and Patient.AddressesIds, but they are 'empty' and I can't iterate over them with {{#each}} (nothing is shown).
Is it possible to access the latest record on Patient.Addresses in any way within the Prescription template? I'm not sure templates can handle Entity->LinkedEntitity->LinkedEntity.attribute. Am I right
If so, is it possible to create an address field in Patient entity to always store the latest Addresses record related to this Patient? This way Prescription template could only retrieve Patient.addressfield directly.
Thanks,
Arthur
Entity Patient
Entity Addresses (that stores all the addresses the Patient have/had - needed due to patient living in an area of high migratory activity)
Entity Prescription (of medicines)
Entity Prescription has a receipt template that needs Patient.name and Patient.Addresses.LATEST-RECORD.
When editing the Prescription template I can see listed the attributes Patient.AddressesNames and Patient.AddressesIds, but they are 'empty' and I can't iterate over them with {{#each}} (nothing is shown).
Is it possible to access the latest record on Patient.Addresses in any way within the Prescription template? I'm not sure templates can handle Entity->LinkedEntitity->LinkedEntity.attribute. Am I right
If so, is it possible to create an address field in Patient entity to always store the latest Addresses record related to this Patient? This way Prescription template could only retrieve Patient.addressfield directly.
Thanks,
Arthur
Comment