Change to Patient Details Archetype
Submitted by Ben_Charlton on Tue, 06/08/2024 - 10:21
I have a proposal to adjust the patient archetype to include a new field
Existing Field
Breed
Change
Primary Breed
Add
Secondary Breed
The Breed field would become a derived field temporarily making sure we maintain backward consistency
The derivation would be
"Primary Breed" x "Secondary Breed
or
Primary Breed
if econdary breed was none
or
Primary Breed x
if 2nd breed was unknown.
This would significantly reduce the number of Breed lookups we need and create a far more flexible system going forward.
Re: Change to Patient Details Archetype
I don't think changing the breed to a derived field would work.
It would break:
That said, a secondary breed field could still be added, and the existing breed field treated as the primary one.
It would mean that reports need to be updated:
$F{patient.entity.breed} + ($F{patient.entity.secondaryBreed} == null ? "" : " x " + $F{patient.entity.secondaryBreed})
It may also affect plugins that map breeds. This may be less of an issue as while breed mapping is supported, its not used in practice as far as I know.