Menu

#38 Order of multiple elements

Corrigendum
closed
2024-03-01
2018-09-25
No

Does our XML schema somehow ensure that multiple elements of the same type have an order? For example: middle name has the cardinality 0..n - do we make sure the names are always in the correct order?

Related

11073-10207 Revision: #251
PoCSpec: 10721 HF Device Content Gathering: #30

Discussion

  • Stefan Schlichting

    Our XML Schema assures the order of elements of different kinds, but not the order within the set of elements of the same kind is given.

    For Containment Tree Elements like Channels, Metrics asf. we added a statement for clinical relevance. For your example regarding middle names, the order would need to be maintained by the provider resp. consumer.

     
  • Martin

    Martin - 2020-01-07

    To hock in this discussion: I suggest to define the order of AllowedValue elements to be fixed by the provider. I do not see any reason to force the order by and clinical relevance. However, I see the necessity of a fixed order at least in the following cases:

    If there are active operation to switch through the list of values of the enum string (= list of allowed values), the order of this list has to be fix to ensure that n times triggered "next" operation and n times triggered "previous" operation will end at the same value; as well as starting from any particular value, m times triggering of any activate operation changing the value leads to the same result value.

     
    • Martin

      Martin - 2020-01-07

      Another dimension of the order of AllowedValue order and activate operations: Is the value list defined to be a "ring", i.e., triggering "next" operation at the last value will lead to the first value and vise versa?

      Or is this simple a matter of device logic and runtime behavior? Semantically, I do not see any possibility to give any clue to the client what behavior it can expect.

       
    • Martin

      Martin - 2020-03-26

      As BICEPS defines a xsd:sequence of pm:AllowedValue the elements are ordered and every participant can rely on this unless descriptor changes. --> nothing to do

       
      • Stefan Schlichting

        Add information to xc spec that a change in the order of the allowed values results in either a descriptor version change or a state version change depending on where the allowed values are used

         
  • Martin

    Martin - 2020-01-07
    • assigned_to: Björn Andersen --> Stefan Schlichting
     
  • Stefan Schlichting

    Add a note R0034:

    The change of the order of ELEMENTs with a multiplicity of more than 1 is considered a change of the content of the ELEMENT.

     
  • Stefan Schlichting

    • labels: --> R0034, Order of Elements
    • status: unread --> accepted
    • Milestone: Amendments --> Corrigenda
     
  • Björn Andersen

    Björn Andersen - 2022-03-25
    • Milestone: Corrigenda --> Revision
     
  • Björn Andersen

    Björn Andersen - 2022-11-21
    • Milestone: Revision Draft 1 --> untriaged
     
  • Björn Andersen

    Björn Andersen - 2023-01-16
    • status: accepted --> open
    • assigned_to: Stefan Schlichting --> nobody
    • Milestone: untriaged --> Corrigendum
     
  • Björn Andersen

    Björn Andersen - 2023-05-15
    • status: open --> accepted
     
  • Björn Andersen

    Björn Andersen - 2024-01-15
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1 @@
    -Does our XML schema somehow ensure that multipe elements of the same type have an order? For example: middle name has the cardinality 0..n - do we make sure the names are always in the correct order?
    +Does our XML schema somehow ensure that multiple elements of the same type have an order? For example: middle name has the cardinality 0..n - do we make sure the names are always in the correct order?
    
    • status: accepted --> needs-review
    • assigned_to: David
     
  • Björn Andersen

    Björn Andersen - 2024-02-12
    • status: needs-review --> solved
    • assigned_to: David --> Lukas Deichmann
     
  • Björn Andersen

    Björn Andersen - 2024-02-12

    Solved in [#251].

     

    Related

    11073-10207 Revision: #251

  • Lukas Deichmann

    Lukas Deichmann - 2024-03-01
    • status: solved --> closed
     

Log in to post a comment.