HealthKit: HKUnit should include a "ratio" unit

Originator:rsfinn
Number:rdar://28193056 Date Originated:07-Sep-2016
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 10
Classification:Enhancement Reproducible:Always
 
The HKUnit class should include a class function "ratio()" to return a unit suitable for recording measurements where the value is a unitless ratio that may be greater or less than one.  The documentation for "percent()" implies that the value may range only between 0 and 1, but this would not be appropriate for (e.g.) INR measurements, where a therapeutic range might be 1.9–3.1 but a normal range is 0.8–1.2.

Steps to Reproduce:
Examine the HealthKit SDK docs for a "ratio" unit type.

Expected Results:
HKUnit should contain a "ratio" unit.

Actual Results:
HKUnit does not contain a "ratio" unit.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!