FHIR Chat · Primitive Ordering on DataTypes page · fhir/infrastructure-wg

Stream: fhir/infrastructure-wg

Topic: Primitive Ordering on DataTypes page


view this post on Zulip Gino Canessa (Dec 10 2019 at 17:41):

In the context of the new int64 type I was reminded of a periodic niggle...
Created J#25294 to ask that the primitive types be sorted on the DataTypes page - right now they are unsorted and it is awkward to use (e.g., comparing the various integer types for ranges, etc.).
Thanks!

view this post on Zulip Vadim Peretokin (Dec 11 2019 at 10:53):

It would also make it less error-prone to scan the list :)

view this post on Zulip Grahame Grieve (Dec 11 2019 at 22:11):

I am not in favor of this principally because it will make comparison between versions hard

view this post on Zulip Josh Mandel (Dec 11 2019 at 22:22):

Whose comparisons ?

view this post on Zulip Josh Mandel (Dec 11 2019 at 22:22):

Like, people running W3C diff tools?

view this post on Zulip Grahame Grieve (Dec 11 2019 at 22:22):

yes

view this post on Zulip Josh Mandel (Dec 11 2019 at 22:22):

OK. Does anyone besides you use this (and on something as long as the datatypes page)?

view this post on Zulip Grahame Grieve (Dec 11 2019 at 22:25):

well, people don't have to ask me for permission before using it, so I'm not sure. But I think it's a very important thing. say, https://services.w3.org/htmldiff?doc1=http%3A%2F%2Fhl7.org%2Ffhir%2FR4%2Fdatatypes.html&doc2=http%3A%2F%2Fbuild.fhir.org%2F%2Fdatatypes.html - I think people would be nuts to make good use of that

view this post on Zulip Lloyd McKenzie (Dec 11 2019 at 22:43):

Making the current spec easy to read is more important than making interversion comparisons pretty. The former will impact 1-2 orders of magnitude more people - and impact them more frequently

view this post on Zulip Grahame Grieve (Dec 11 2019 at 22:48):

I also object to alphabetical order because there's some logic to the groupings - e.g. dates together. The grouping is not as coherent as it should be

view this post on Zulip Grahame Grieve (Dec 11 2019 at 22:50):

a better order would be

boolean
integer | unsignedInt | positiveInt | integer64 | decimal
instant | date | dateTime | time
string | code | id
uri | url | canonical | oid | uuid
base64Binary
markdown

view this post on Zulip Josh Mandel (Dec 11 2019 at 22:51):

Agreed that groupings would help!

view this post on Zulip Josh Mandel (Dec 11 2019 at 22:51):

Ordering across them is harder ;-)


Last updated: Apr 12 2022 at 19:14 UTC