[OpenVPMS Developers] [JIRA] Created: (OVPMS-937) Change aging syntax

Change aging syntax --------------------

Key: OVPMS-937 URL: https://openvpms.atlassian.net/browse/OVPMS-937 Project: VPMS Web Application Issue Type: Improvement Components: Patient Affects Versions: 1.5 Reporter: Matt Costa Assignee: Tony De Keizer

An adjustment to the way age is represented when calculating from DOB.

a) Change the age function so that if the difference between current date and birth date is < 180 days then display in Days or Weeks. Currently it is set at 90 days as of version 1.4.

b) Add the age of the animal as of the visit date to the visit description.

c) (Optional) Is it possible to have the months remainder expressed as part of the function if the age is greater then 1 year and the remainder is > 30 days? ie. 1 year and 10 days = 1 year old. 1 year and 32 days = 1 year 1 month.

-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://openvpms.atlassian.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

[OpenVPMS Developers] [JIRA] Commented: (OVPMS-937) Change aging

[ https://openvpms.atlassian.net/browse/OVPMS-937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11914#action_11914 ]

Matt Costa commented on OVPMS-937: ----------------------------------

Hi Tim, Costing on this one ta :) Matt C

> Change aging syntax > -------------------- > > Key: OVPMS-937 > URL: https://openvpms.atlassian.net/browse/OVPMS-937 > Project: VPMS Web Application > Issue Type: Improvement > Components: Patient > Affects Versions: 1.5 > Reporter: Matt Costa > Assignee: Tony De Keizer > > An adjustment to the way age is represented when calculating from DOB. > a) Change the age function so that if the difference between current date and birth date is < 180 days then display in Days or Weeks. Currently it is set at 90 days as of version 1.4. > b) Add the age of the animal as of the visit date to the visit description. > c) (Optional) Is it possible to have the months remainder expressed as part of the function if the age is greater then 1 year and the remainder is > 30 days? ie. 1 year and 10 days = 1 year old. 1 year and 32 days = 1 year 1 month.

-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://openvpms.atlassian.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf

[OpenVPMS Developers] [JIRA] Commented: (OVPMS-937) Change aging

[ https://openvpms.atlassian.net/browse/OVPMS-937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11915#action_11915 ]

Tim Anderson commented on OVPMS-937: ------------------------------------

a) 1 hour b) 2 hour c) 1 hour

Is a) something that may be different across species or practices? Should it be customisable?

> Change aging syntax > -------------------- > > Key: OVPMS-937 > URL: https://openvpms.atlassian.net/browse/OVPMS-937 > Project: VPMS Web Application > Issue Type: Improvement > Components: Patient > Affects Versions: 1.5 > Reporter: Matt Costa > Assignee: Tony De Keizer > > An adjustment to the way age is represented when calculating from DOB. > a) Change the age function so that if the difference between current date and birth date is < 180 days then display in Days or Weeks. Currently it is set at 90 days as of version 1.4. > b) Add the age of the animal as of the visit date to the visit description. > c) (Optional) Is it possible to have the months remainder expressed as part of the function if the age is greater then 1 year and the remainder is > 30 days? ie. 1 year and 10 days = 1 year old. 1 year and 32 days = 1 year 1 month.

-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://openvpms.atlassian.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf

[OpenVPMS Developers] [JIRA] Commented: (OVPMS-937) Change aging

[ https://openvpms.atlassian.net/browse/OVPMS-937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11916#action_11916 ]

Matt Costa commented on OVPMS-937: ----------------------------------

Hmmm, I don't think it needs to be different across species. As for practices, I think you may be right. The fact that the spec says "Days or Weeks" indicates there may be different requirements. I wonder if being able to set the limits at which it changes from days or weeks per practice would be good? ie. <90 express as days <180 express as weeks

If the user set the first limit at 0 then it would express as weeks from 0 - 180 days and then months, then years and months.

> Change aging syntax > -------------------- > > Key: OVPMS-937 > URL: https://openvpms.atlassian.net/browse/OVPMS-937 > Project: VPMS Web Application > Issue Type: Improvement > Components: Patient > Affects Versions: 1.5 > Reporter: Matt Costa > Assignee: Tony De Keizer > > An adjustment to the way age is represented when calculating from DOB. > a) Change the age function so that if the difference between current date and birth date is < 180 days then display in Days or Weeks. Currently it is set at 90 days as of version 1.4. > b) Add the age of the animal as of the visit date to the visit description. > c) (Optional) Is it possible to have the months remainder expressed as part of the function if the age is greater then 1 year and the remainder is > 30 days? ie. 1 year and 10 days = 1 year old. 1 year and 32 days = 1 year 1 month.

-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://openvpms.atlassian.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf

[OpenVPMS Developers] [JIRA] Commented: (OVPMS-937) Change aging

[ https://openvpms.atlassian.net/browse/OVPMS-937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11919#action_11919 ]

Tim Anderson commented on OVPMS-937: ------------------------------------

A customisable solution would involve the creation of rules which would be stored as lookups so they can be edited using standard editors. This lookup would be associated with the practice. E.g lookup.ageformats contains 1..N lookup.ageformat Each lookup.ageformat would contain: * fromAge - the age that this format applies from * toAge - the age that this format applies to * boolean showMonths - if true show age in months * boolean showDays - if true show age in days

A lookup.ageformat of: * fromAge = 0 DAYS * toAge = 90 DAYS * showMonths = false * showDays = true

States that the format applies if the patient is between 0 and 90 days old inclusive and formats the age as "N days old"

A lookup.ageformat of: * fromAge = 1 YEAR * toAge = unset * showMonths = true * showDays = false

States that the format applies if the patient is >= 1 year old and formats the age as "N year M months"

Estimate this would take 8 hours.

> Change aging syntax > -------------------- > > Key: OVPMS-937 > URL: https://openvpms.atlassian.net/browse/OVPMS-937 > Project: VPMS Web Application > Issue Type: Improvement > Components: Patient > Affects Versions: 1.5 > Reporter: Matt Costa > Assignee: Tony De Keizer > > An adjustment to the way age is represented when calculating from DOB. > a) Change the age function so that if the difference between current date and birth date is < 180 days then display in Days or Weeks. Currently it is set at 90 days as of version 1.4. > b) Add the age of the animal as of the visit date to the visit description. > c) (Optional) Is it possible to have the months remainder expressed as part of the function if the age is greater then 1 year and the remainder is > 30 days? ie. 1 year and 10 days = 1 year old. 1 year and 32 days = 1 year 1 month.

-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://openvpms.atlassian.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf

[OpenVPMS Developers] [JIRA] Commented: (OVPMS-937) Change aging

[ https://openvpms.atlassian.net/browse/OVPMS-937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11927#action_11927 ]

Matt Costa commented on OVPMS-937: ----------------------------------

Do we need to have showWeeks as well? It would have to be an OR option for showDays tho ie.Cant show both.

> Change aging syntax > -------------------- > > Key: OVPMS-937 > URL: https://openvpms.atlassian.net/browse/OVPMS-937 > Project: VPMS Web Application > Issue Type: Improvement > Components: Patient > Affects Versions: 1.5 > Reporter: Matt Costa > Assignee: Tony De Keizer > > An adjustment to the way age is represented when calculating from DOB. > a) Change the age function so that if the difference between current date and birth date is < 180 days then display in Days or Weeks. Currently it is set at 90 days as of version 1.4. > b) Add the age of the animal as of the visit date to the visit description. > c) (Optional) Is it possible to have the months remainder expressed as part of the function if the age is greater then 1 year and the remainder is > 30 days? ie. 1 year and 10 days = 1 year old. 1 year and 32 days = 1 year 1 month.

-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://openvpms.atlassian.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf

[OpenVPMS Developers] [JIRA] Commented: (OVPMS-937) Change aging

[ https://openvpms.atlassian.net/browse/OVPMS-937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11928#action_11928 ]

Tim Anderson commented on OVPMS-937: ------------------------------------

Yes - showWeeks would be required. The algorithm to format would look something like: {code} function formatAge(age: integer) result = "" If showYears and age >= 365 then result = result + (age / 365) + " Years " age = age mod 365 end if if showMonths and age >= 30 then result = result + (age / 30) + " Months " age = age mod 30 end if if showWeeks and age >= 7 then result = result + (age / 7) + " Weeks " age = age mod 7 end if if showDays and age > 0 then result = result + age + " Days " end if return result {code}

> Change aging syntax > -------------------- > > Key: OVPMS-937 > URL: https://openvpms.atlassian.net/browse/OVPMS-937 > Project: VPMS Web Application > Issue Type: Improvement > Components: Patient > Affects Versions: 1.5 > Reporter: Matt Costa > Assignee: Tony De Keizer > > An adjustment to the way age is represented when calculating from DOB. > a) Change the age function so that if the difference between current date and birth date is < 180 days then display in Days or Weeks. Currently it is set at 90 days as of version 1.4. > b) Add the age of the animal as of the visit date to the visit description. > c) (Optional) Is it possible to have the months remainder expressed as part of the function if the age is greater then 1 year and the remainder is > 30 days? ie. 1 year and 10 days = 1 year old. 1 year and 32 days = 1 year 1 month.

-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://openvpms.atlassian.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf

[OpenVPMS Developers] [JIRA] Commented: (OVPMS-937) Change aging

[ https://openvpms.atlassian.net/browse/OVPMS-937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11929#action_11929 ]

Matt Costa commented on OVPMS-937: ----------------------------------

Thanks Tim. Have listed for fund raising!

> Change aging syntax > -------------------- > > Key: OVPMS-937 > URL: https://openvpms.atlassian.net/browse/OVPMS-937 > Project: VPMS Web Application > Issue Type: Improvement > Components: Patient > Affects Versions: 1.5 > Reporter: Matt Costa > Assignee: Tony De Keizer > > An adjustment to the way age is represented when calculating from DOB. > a) Change the age function so that if the difference between current date and birth date is < 180 days then display in Days or Weeks. Currently it is set at 90 days as of version 1.4. > b) Add the age of the animal as of the visit date to the visit description. > c) (Optional) Is it possible to have the months remainder expressed as part of the function if the age is greater then 1 year and the remainder is > 30 days? ie. 1 year and 10 days = 1 year old. 1 year and 32 days = 1 year 1 month.

-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://openvpms.atlassian.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira

_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf

Syndicate content