# Is the proportion kind "integer fraction" correct?

**URL:** <https://discourse.openehr.org/t/is-the-proportion-kind-integer-fraction-correct/15525>\
**Category:** Technical (archive)\
**Created:** [2 July 2018 23:19 UTC](https://discourse.openehr.org/t/is-the-proportion-kind-integer-fraction-correct/15525 "2018-07-02T23:19:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [2 July 2018 23:19 UTC](https://discourse.openehr.org/t/is-the-proportion-kind-integer-fraction-correct/15525/1 "2018-07-02T23:19:07Z")

</div>

Hi, I’m checking the datatypes specs doing some modeling tests on the archetype editor.

In the specs, the “integer fraction” proportion kind means the representation of the fraction 3/2 should be 1 1/2.

[http://www.openehr.org/releases/RM/Release-1.0.3/docs/data\_types/data\_types.html#\_proportion\_kind\_class](http://www.openehr.org/releases/RM/Release-1.0.3/docs/data_types/data_types.html#_proportion_kind_class)

Semantically I think this is not on the same level as the other “proportion kinds”, since it doesn’t represent a kind, but a format, where the same values can be recorded as numerator (3) and denominator (2) with proportion kind “fraction” and will mean the same thing. IMO “integer fraction” doesn’t even change the meaning or interpretation of the fraction, while other “proportion kinds” do.

My question is if the “integer fraction” really belongs to a “proportion kind” or should be somewhere else on the specs? I guess this tried to solve a use case and it was a shorthand to represent this format as a proportion kind.

Thanks,  
Pablo.

---

<div class="post-metadata">

**Author:** ![yampeku](https://discourse.openehr.org/user_avatar/discourse.openehr.org/yampeku/32/25_2.png) [@yampeku](https://discourse.openehr.org/u/yampeku)\
**Post date:** [2 July 2018 23:50 UTC](https://discourse.openehr.org/t/is-the-proportion-kind-integer-fraction-correct/15525/2 "2018-07-02T23:50:57Z")

</div>

both that and fraction seem to be intended for visualization purposes more than real constraints.

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [3 July 2018 00:00 UTC](https://discourse.openehr.org/t/is-the-proportion-kind-integer-fraction-correct/15525/3 "2018-07-03T00:00:49Z")

</div>

But I think “fraction” makes the values of the DV\_PROPORTION (numerator, denominator) to be interpreted differently from other proportion kinds (percent, unary, ratio). My point is “fraction” and “integer fraction” have no real semantic differences, and “integer fraction” is just for visual representation.

---

<div class="post-metadata">

**Author:** ![yampeku](https://discourse.openehr.org/user_avatar/discourse.openehr.org/yampeku/32/25_2.png) [@yampeku](https://discourse.openehr.org/u/yampeku)\
**Post date:** [3 July 2018 10:04 UTC](https://discourse.openehr.org/t/is-the-proportion-kind-integer-fraction-correct/15525/4 "2018-07-03T10:04:38Z")

</div>

But following the same reasoning you could say that “integer fraction” makes the values to be interpreted differently from percert, unary or ratio, and has no real semantic difference, thus “fraction” being only a visual representation of “integer fraction” 😉

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [3 July 2018 20:50 UTC](https://discourse.openehr.org/t/is-the-proportion-kind-integer-fraction-correct/15525/5 "2018-07-03T20:50:31Z")

</div>

Exactly, “fraction” and “integer fraction” are the same thing semantically, but in the specs, the “integer fraction” the only one that defines a specific format, “fraction” does not specifies a format, just the fraction semantics for the DV\_PROPORTION. That is the only difference.
