Difference between revisions of "Binding Syntax"
Line 83: | Line 83: | ||
===SHALL specify one of the following [[Extensibilities]] to describe expected behaviors for Sending/originating data Receiving/consuming data regarding allowance of “Exception codes”=== | ===SHALL specify one of the following [[Extensibilities]] to describe expected behaviors for Sending/originating data Receiving/consuming data regarding allowance of “Exception codes”=== | ||
− | + | '''Exception codes''' are: | |
− | + | *Codes that are not in the bound value set expansion, but are considered appropriate for use and therefore may be sent and must be accepted by a receiver even if the code is not recognized. An '''Exception Code''' SHALL not represent a concept that is already represented in the expansion set of the bound value set. | |
− | |||
Extensibility defines constraints that can be used to clarify how to support conformance testing | Extensibility defines constraints that can be used to clarify how to support conformance testing |
Revision as of 18:25, 6 June 2017
Contents
- 1 Binding Syntax
- 2 Current Working Material
- 2.1 A Value Set Binding To A Data Element
- 2.2 A Value Set Binding must specify, and only need specify the following three (four?) items
- 2.2.1 SHALL specify the information necessary to determine a specific Expansion Set
- 2.2.2 SHALL specify one of the following Extensibilities to describe expected behaviors for Sending/originating data Receiving/consuming data regarding allowance of “Exception codes”
- 2.2.3 SHALL specify Guidance on
- 2.2.4 UNDER CONSIDERATION: 4th characteristic -> Binding Strength that declares if the value set identified must be used or can be changed
- 2.3 The following were moved from a prior version of this and are kept here for historical reference:
- 3 Working Example to be rendered using the semantics described
- 4 Minutes
- 5 Use Cases
- 6 Prior Binding Syntax Material Page
Binding Syntax
This project is a joint effort between CGIT and Vocabulary.
- Project now chaired by Rob McClure, building on work from Wendy, Ted, Frank O., Rob H. and Rob S.
- Current project document with minutes (latest work at the bottom) HERE
Scope
Define the human readable expression of the vocabulary constraints in implementation guides (Model Bindings) and by Realms as published sets of Context Bindings. Define the expression of the Value Set Assertion, a Model Binding, a Context Binding, and a Context Domain constraint. Information expressed in the syntax should be isomorphic to the normative definition of the data items comprising vocabulary constraints in Core Principles and the MIF ballots.
General meeting Agenda
Added extra meeting to occur April 4 12noon EDT
Next meeting - after Jan 2017 WGM - will be January 31st and then every other week after that
Remember USA is now on DAYLIGHT SAVINGS TIME EDT is UTC -4
Meetings occur every other week - Tuesdays @ 2pm EDT for 60 min. - alternating with VBE call
Telephone uses standard HL7 Vocab number: 1 (770) 657-9270,,,598745# - NOT THE SHARED SCREEN NUMBER FOR MIKOGO OR OTHERS
Mikogo session
https://go.mikogo.com/?sp=&sid=368206475 If the above link does not work, you can follow these steps instead to join a session: # Go to http://go.mikogo.com # Enter the Session ID: 368-206-475 # Enter your name # Click "Join Session"
Join.Me session
https://join.me/tedsnewsessions
The above link works with any browser. Once there:
# Click on "Knock To Enter"
The September 15, 2016 meeting will use the join.me session above
The March 29, 2016 meeting will use the join.me session above
Current Working Material
Terminology Binding intends to specify a set of rules to control the use of coded concepts within a specification. These rules are typically used in a particular implementation to support a specific use case (which can be quite broad.) This document describes these rules segmented into three categories:
- Information required to identify specific codes that are to be used for each of the coded data elements in the specification
- Information required to specify expected behaviors in the exchange of coded information by conformant applications
- Requirements for allowed constraints in derived specifications
These rules are accomplished by specifying a value set binding for each of the coded data elements in a specification to be implemented.
A Value Set Binding describes an implementable terminology binding that has two flavors:
- A Direct Value Set Binding is a declaration that binds a value set directly to a model element and when this is done, all jurisdictions must remain conformant to the binding which can still allow change as noted in our binding semantics. [V3 Model Binding]
- An Indirect Value Set Binding is a declaration that binds a value set to a Concept Domain that exists to describe the intended model element scope. This Concept Domain will be (usually) tied to one or more model elements via a previously specified Domain Binding. In this case the Indirect Value Set Binding is essentially transferred through the Concept Domain to the associated model elements. [V3 Context Binding]
A Domain Binding is an unimplementable terminology binding that is a declaration that binds a Concept Domain to (usually) one or more model elements. As such a Domain Binding simply describes a scope that characterizes a value set binding (specified elsewhere or in future) for the associated model elements.
Incomplete Glossary
Concept Domain: A uniquely identified named description of the ideas intended to be used to express the semantics of a coded model element. This uniquely named description may be represented by a concept drawn from a code system, but in all cases it is not intended to specify the allowed instance values that may be exchanged or recorded in the noted model element.
Coded Data Element: A model element (also referred to as a data element) that is intended to convey a specific type of information using concepts drawn from a controlled vocabulary.
Terminology Binding Diagram
A Value Set Binding To A Data Element
- SHALL describe a Content Value Set Binding and,
- we need to review and discuss the Core Principles notion of a priority sequence of different bindings on the same data element
- MAY describe a NULL Value Set Binding.
The allowed content to be exchanged for the model element will be determined by the union of value set expansions specified by the Content Value Set Binding plus the NULL Value Set Binding.
- A Content Value Set Binding describes coded values that represent expected content for the data element.
- A NULL Value Set Binding describes allowed NULL values for the data element
- This NULL value set applies only to coded "nulls" and not numeric null situations (infinity, real vs. integer.)
- The set of allowed values for the value set SHALL be drawn from the Null Code System (OID: 2.16.840.1.113883.1.11.10609, FHIR)
- It is expected that if the model element supports NULLs then either each model element will define a specific NULL Value Set Binding or there will be overall NULL Value Set Binding that applies to all of the data elements that do not have an individual NULL Value Set Binding in the entire model specification
- This Binding Semantic Specification does not specify how to implement a NULL Value Set Binding. For example it may be implemented so that both the expected values and the allowed nulls are all sent in the value slot, or the nulls might be sent in a separate property or component of the coded data type.
- Note that the NULL Value Set Binding can have a strength of either NEA or CEA (below) because it is acceptable to specify a null set with strength CEA that would allow a user to choose a null from the null code system that better matches their specific Use Case and send that as an exception value that happens to be a null.
- A NULL Value Set Binding may NOT specify a binding guidance verb of OPEN, but can specify any of FIXED, CLOSED, EXTEND, or RESTRICT.
- Taken together, the UNION of all value set bindings represent the full binding for the data element
- If you do not specify a NULL Value Set Binding for the data element (or overall in the model specification) then the default is a binding which permits (an implied value set) any value from the NullFlavor code system for the data element without restriction as required by the Use Case.
A Value Set Binding must specify, and only need specify the following three (four?) items
SHALL specify the information necessary to determine a specific Expansion Set
It may be that more than one specific expansion to accommodate the identification of all the coded content needed, but no matter what, when a value set is specified it will be fully specified so that a single expansion is clearly identified. The intention is that the specification of the value set expansion will follow the approach noted in the Value Set Definition project. This means that every binding will always be pointing to an actual value set and guidance indicating if all implementers are to use that value set or can do something different.
- The exact syntax to be used for the binding statement is to be described here (TBD) and will be fully aligned with the Value Set Definition project and Core Principles.
- A binding statement is specified with the following three pieces of information. A single instance of a statement has the following requirements noting that if an attribute is not included, the noted default will apply:
- SHALL include a value set identifier that will resolve to a full value set definition,
- MAY include a value set version identifier or a date that will constrain to a single value set version. The default when not specified in the binding or a further constraint is the most currently available.
- MAY specify the version of each needed code system, or a date that will constrain to a single code system version. The default when not specified in the binding or a further constraint is the most currently available.
- In specifying a specific value set in a binding the IG is communicating that an implementation can be created using the specified value set and be conformant. In addition, the binding semantics described in item #2 below convey in what way (if any) subsequent IGs can change the value set specified or send additional codes (if allowed) and remain conformant.
- Alternatively, binding of the coded data element can be fully deferred to a downstream specification. To do this the coded data element is associated with a semantic category, such as a HL7 V3 concept domain. This association is not a value set binding, it is a Domain Binding as noted above. This approach is intended to provide strict guidance on the scope of the value set that will eventually be bound via an Indirect Value Set Binding to the explict set of codes needed to support the identified use case. This association states that value set scope eventually bound MUST be consistent with the scope of the semantic category used to describe the association.
SHALL specify one of the following Extensibilities to describe expected behaviors for Sending/originating data Receiving/consuming data regarding allowance of “Exception codes”
Exception codes are:
- Codes that are not in the bound value set expansion, but are considered appropriate for use and therefore may be sent and must be accepted by a receiver even if the code is not recognized. An Exception Code SHALL not represent a concept that is already represented in the expansion set of the bound value set.
Extensibility defines constraints that can be used to clarify how to support conformance testing
Binding Strength is separate and defines whether an implementer can change to a different value set
- Extensibility NEA: Coding No Exception codes Allowed (This is similar to V3 CNE)
- Sending/Creating perspective
- SHALL only employ values that exist in the expansion
- Receiving/Consuming perspective
- SHALL accept without asserting an error any value that exists in the expansion
- SHALL assert an error for any other value in the data element that does not exist in the expansion.
- Sending/Creating perspective
- Extensibility CEA: Coding with Exception codes Allowed
- This means any coded value that is consistent with the value set scope can be sent. Not all codes sent, or received, will be in the deterministic value set expansion. This is like V3 CWE. The expansion set for the bound value set will function as a MIN value set – all implementers are intended to support the set.
- Conformance testing of this Extensibility is up to the implementer - some characteristics of the concepts in the value set may be computably conformance testable (perhaps through the use of code system inferencing, but not all.
- Sending perspective:
- SHALL send from expansion if idea is in the expansion
- MAY send a valid extended "exception code" if idea is not in the expansion
- Send a code and an identification of code system (can be local)
- Send text and no code
- FHIR discussion: Consider making three flavors of CEA - Allow Exception that can be:
- Either code or text
- Only allow codes. No text.
- Only allow Text. No codes.
- FHIR discussion: Consider making three flavors of CEA - Allow Exception that can be:
- Receiving Perspective
- SHALL be able to identify when received code is in the expansion and not report an error
- MAY Identify when a data instance contains content not in the expansion but is a valid exception code
Under consideration is to allow constraint of CEA by specifying a CEA-MAX. This would be expressed by a value set CLD that defines a maximum set of potential "exception" codes.
SHALL specify Guidance on
The further constraints may be applied in a downstream use of the specified binding and yet still be considered conformant with the original binding: Binding needs to specify how to allow a change in the defined expansion. The binding syntax will describe the value set expansion specification and also state if subsequent implementation guides can use a different value set or must only use the specified value set.
- For the specified value set binding, the following five Binding guidance verbs provide guidance on how a subsequent IG can change the specified expansion and remain conformant. Based on 2016-03-29 and 2016-09-13 discussions.
- FIXED The value set defined SHALL be fully implemented with "no more" additional concepts, and "no less" concepts than those included in the defined value set expansion.
- Note that a FIXED binding MAY specify only a value set identifier and so be quite dynamic in the specified expansion set to which the implementers are tied at a given time.
- A "downstream" conformant IG based on this binding SHALL be FIXED.
- CLOSED A conformant implementation SHALL use 1..N concepts from the expansion as defined by the bound value set but MAY create a new value set that defines an expansion that is a formal subset.
- Again, a CLOSED binding can allow dynamic expansions.
- A "downstream" conformant IG based on this binding MUST be CLOSED or FIXED.
- EXTEND A conformant implementation must use all concepts from the expansion as defined by the bound value set but may add additional concepts for exchange
- This binding is essentially a combination of FIXED + the current idea of Coded With Extensions (V3 CWE)
- The intention is that the new concepts introduced do not represent the same ideas as those already available as long as the implementer has access to the code system used.
- A "downstream" conformant IG based on this binding MUST be either EXTEND, CLOSED or FIXED.
- Additional concepts can be exchanged in one of two ways. The allowed approach needs a syntax TDB so it's clear which way is allowed
- If the binding is CEA then the additional concept can be sent as an "Exception value" to the existing defined value set. This means a new value set identifier is not needed but the except code is clearly identified as not in the value set.
- Define a new value set is defined in the IG that includes all the concepts in the original EXTEND binding (perhaps by referencing that value set in the new definition) plus adds additional concepts.
- RESTRICT A conformant implementation SHALL use 0..N concepts from the expansion as defined by the bound value set but may add additional concepts for exchange
- This binding is essentially a combination of CLOSED + EXTEND. This is computably similar to an OPEN binding but is intended to be more restrictive to communicate - essentially to a human that is interpreting the binding - that this binding does not give the freedom of OPEN, but instead requires use of the concepts already defined in the expansion set if possible, and very tight alignment to the particular concepts noted in the original binding.
- The intention is that the new concepts introduced can not represent the same ideas as those already available as long as the implementer has access to the code system used.
- A "downstream" conformant IG based on this binding MUST be either RESTRICT, CLOSED or FIXED.
- Additional concepts can be exchanged in one of two ways. The allowed approach needs a syntax TDB so it's clear which way is allowed
- If the binding is CEA then the additional concept can be sent as an "Exception value" to the existing defined value set. This means a new value set identifier is not needed but the except code is clearly identified as not in the value set.
- Define a new value set is defined in the IG that includes all the concepts in the original RESTRICT binding (perhaps by referencing that value set in the new definition) plus adds additional concepts.
- OPEN A conformant implementation may use 0..N concepts from the expansion as defined by the bound value set (i.e.; the implementation does not have to use all the concepts in the defined expansion) and may also add additional concepts for exchange.
- This binding is essentially a combination of CLOSED + the current idea of Coded With Extensions (V3 CWE)
- This is the most permissive Binding
- The intention is that the new concepts introduced do not represent the same ideas as those already available as long as the implementer has access to the code system used.
- A "downstream" conformant IG based on this binding can be of any type.
- Additional concepts can be exchanged in one of two ways. The allowed approach needs a syntax TDB so it's clear which way is allowed
- If the binding is CEA then the additional concept can be sent as an "Exception value" to the existing defined value set. This means a new value set identifier is not needed but the except code is clearly identified as not in the value set.
- A new value set is defined in the IG that includes the concepts desired from the original CLOSED binding (perhaps by referencing that value set in the new definition with additional functions to remove the concepts not wanted) plus adds additional concepts.
- FIXED The value set defined SHALL be fully implemented with "no more" additional concepts, and "no less" concepts than those included in the defined value set expansion.
- In addition to the value set binding guidance verbs above, a MAX Content Value Set Guidance MAY be specified.
- A MAX Content Value Set Guidance describes a value set of concepts from which the Content Value Set MUST be a subset. This value set will be technically "implementable" in that is describes a defined expansion set of concepts, but it is not intended to be the functional expansion set of implemented exchangeable concepts, i.e. it IS NOT the Content Value Set Binding. The MAX Value Set Guidance is only guidance to a subsequent Content Value Set Binding.
- A MAX Content Value Set Guidance SHALL be specified in one of the following two ways:
- Specify one or more code system(s). This SHALL mean that the current, and any subsequent conformant Content Value Set Binding will be drawn from the specified code systems.
- Specify an implementable value set as noted above. Note: when a MAX Content Value Set Guidance specifies an actual "implementable value set," that value set is not the Content Value set Binding, which must be specified separately.
UNDER CONSIDERATION: 4th characteristic -> Binding Strength that declares if the value set identified must be used or can be changed
This characteristic is commonly found in bindings but is distinct from Extensibility and may overlap some with the Guidance section above. For example, Can REQUIRED be something other than FIXED, like CLOSED or EXTEND?
Binding Strength is typically described as No change allowed or Change is allowed but also carries some evidence of confidence that the bound value set is useful. The Binding strength verbs are:
- REQUIRED Where the bound value set must be used and no other can be substituted. In this case NO value set Change is allowed
- Sending perspective
- Receiving perspective
- PREFERRED Where the bound value set SHOULD be used unless a different value set with the same scope must be used to meet additional requirements. In this case value set Change Is Allowed.
- Sending perspective
- Receiving perspective
- EXAMPLE Where the bound value set is not promoted as complete or definitive. In this case value set Change Is Expected.
- Sending perspective
- Receiving perspective
The following were moved from a prior version of this and are kept here for historical reference:
Moved after 2017-01-19 after Jan WG
- CEA: Coding with Exceptions Allowed - "Exception value" to the existing defined value set is alowed. This means a new value set identifier is not needed but the exceptional code is clearly identified as not in the value set. This is like V3 CWE.
- Sending perspective:
- SHALL send from expansion if idea is in the expansion
- MAY send something not in expansion if idea is not in the expansion
- SHALL Flag the instance in some way to clearly identify that the concept sent is not in the expansion set
- Send a code and an identification of code system (can be local)
- Send text and no code
- FHIR discussion: Consider making three flavors of CEA - Allow Exception that can be:
- Either code or text
- Only allow codes. No text.
- Only allow Text. No codes.
- SHALL Flag the instance in some way to clearly identify that the concept sent is not in the expansion set
- Receiving Perspective
- SHALL be able to identify when received code is in the expansion and not report an error
- Identify when a data instance contains content not in the expansion but is sent appropriately
- Sending perspective:
Moved 2016-11-22:
An additional item for discussion that could be added:
Many times people want to identify a known set of codes, say from SCT, and then allow more codes (EXTEND or OPEN) but they want the additional codes in a subsequent implementation to be drawn from SCT - either with no exceptions, or simply preferentially. Right now we would say that would just be a MAX binding to a value set with all of SCT in it.
Perhaps this can be made simpler: can we avoid requiring two bindings to the same element (MIN and MAX) since no one ever does that and I suspect few modeling systems can easily support it? Can we devise something that we add to one of our binding types that would allow stating the required or preferred code system for any additional concepts?
Perhaps we could use the word “TIGHT” or “LOOSE” to indicate that any additional concepts are to be obtained from the identified code system. TIGHT means MUST come from the code system, LOOSE means, in essence if possible.
- If "downstream" changes in the value set to be used are allowed, then such a specification must clarify if
- A different value set may be used (therefore control and responsibility is ceded to the downstream steward.) This is similar to Preferred/example that provide an expansion that may be changed. In V3 this is similar to representative, in CDA it is similar to SHOULD, wherein the binding may be further fully constrained and then used in an implementable guide, but a completely different value set my be bound as an alternative as long as the value set meets the required scope.
- Only the value set identified (by the parameters noted) can be used therefore any change in the value set to be used MUST be managed by the original value set steward because they would be creating a new value set definition version. In current CDA IGs, this is a MUST binding.
- Restriction to only values that are within the expansion - CLOSED
- This approach is expected to be the vast majority. This approach supports the notion described in #1 wherein a subsequent implementation guide can create a new value set that replaces the one noted in the current specification. The guidance provided can also state the behavior subsequent value set authors must follow when creating the value set to be implemented. For example, noting that any subsequent value set created MUST include all codes in the value set in the base specification.
- It is noted that there are circumstances where a CLOSED binding may not be further constrained, and thus can be thought of as "FIXED".
- We can think of "FIXED" as "no more, no less"; "CLOSED" is "no more, but may constrain to be less"; "OPEN" is "more, or less - do what you like"
- Sender perspective
- Must only send values in the expansion
- Receiver perspective
- Must receive without error values in the expansion
- Error for any other value
- Binding allows use of values that are not in the expansion - OPEN
- Sender perspective:
- Must send from expansion if idea is in the expansion
- May send something not in expansion if idea is not in the expansion
- Must Flag the instance – “OTHR” (Flavour Of Null yet is really not a null)
- Send a code and an identification of code system (can be local)
- Send text and no code
- Send a “reason that expansion code can not be sent” – This is a true flavour of null
- Must Flag the instance – “OTHR” (Flavour Of Null yet is really not a null)
- Receiver Perspective
- Must be able to identify when received code is in the expansion and not report an error
- Identify when a data instance contains content not in the expansion but is sent appropriately
- Sender perspective:
- Presently an Element Binding may optionally include that the stated binding is a MIN or a MAX binding. When used, both a MIN and MAX binding MUST both be defined. If MIN/MAX is not stated then the binding is to function as a MIN binding.
- MIN binding describe the concepts that an implementation MUST fully support
- MAX binding MUST include all the MIN concepts with all additional concepts noted as those that SHOULD be supported.
- Concepts not included in the MAX binding but from the same code system are EXCLUDED from use. This is consistent with the expectation that even with an OPEN value set as defined below, no concept that falls outside a MAX binding should be sent.
- Any constraint on the binding MUST result in a new MAX value set that is a proper subset of the upstreambinding MAX value set.
- Any constraint on the binding MUST result in a set of concepts that are within the semantic range of any defined concept domain.
- How to implement based on the specified binding without any further constraint, i.e.; How to generate the value set expansion based on the currently specified binding.
- Some of this should be defined as default behavior.
- V2 Binding strength is in this bucket
- Can we clarify that a code may be sent as if the binding was OPEN even when CLOSED (e.g. New lab code for new test when set of allowed known tests are in the existing deterministic expansion and want strict adherence to the existing expansion set.
Working Example to be rendered using the semantics described
Example
Data element used to report drug resistance in a culture.
The value set would be drugs to which the organism (known or unknown) is resistant. The degree of resistance is communicated via a different element. The value set initially could be used to describe any drug that could be assessed for resistance but then would be constrained for specific uses in subsequent guides. Need to address situation where a drug that was constrained out "upstream" is now needed again, and when a new drug appears to which resistance needs to be assessed.
From the Current Working Material section.
1.2.1.1: If "downstream" changes in the value set to be used are allowed, then such a specification must clarify 1) if a different value set can be used instead (SHOULD), 2) or you must use the same value set (MUST).
In which of those choices does Allowance for a subsequent use of this element binding where in the use is a subset of the original value set. Does this require a new value set?
We currently allow FHIR in the $Expand function to obtain only a subset of the expansion set and use that as the functional value set expansion set for the value set.
- The question we must address
- is if this is a conformant expansion of the value set as defined?
- if we do allow this, must we identify that the "sub-expansion" is being used? We did say that was required in FHIR. Not sure how they did this.
Minutes
Minutes now on separate page
Use Cases
This section is where we will list use cases that are to be described using the approach noted
- Emerging disease tracking registry
- Data transmission where successive implementation guides can add additional codes to those specified in the specification being constrained
- National value set -> state value set -> local value set
- Start from typical base standard value set with no needed change to implement
- Same as above but initial VS was an example and must be made implementable
- V2 Lab (LRI) examples with the use of national to state to implemented specifications all using binding identifiers.