ValueSet Profile

This ValueSet profile is part of the set of resource profiles supported by the API Server used with the athenaPractice 12.3 and athenaFlow 9.12 products. It further describes read and search capabilities of these products. Note: The create and update operations are NOT supported for this resource.

Overview

This resource represents a collection of vocabulary valuesused within various resources created or used by the API Server

Scope and Usage

This profile is used to define the content that will be returned by the API Server in response to requests to access ValueSet resources. All elements listed in the differential profile view are Supported, which means that the API Server is capable of supplying these fields from the product database when they have been populated via the product or its APIs.

Source

The ValueSet resource provides information about code systems used by the API Server, and athenaPractice, athenaFlow and site specific coding systems used in the products. The content is derived from an external file created during system installation.

Supported Operations

The operations supported by this resource are listed below.

Read Operation

Read operations are executed as specified in the HL7 FHIR RESTful API implementation definition. To read a ValueSet, an application shall perform an HTTP GET, specifying the identifier of the resources being retrieved.

GET [base]/fhir/ValueSet/[id]{?_format=[json|xml]&_summary=[true|data]}

Read Operation Parameters

ParameterDescription
[base]Specifies the base URL of the FHIR Server, e.g., https://cpsapisandbox.virenceaz.com:9443/demoAPIServer
[id]Specifies the identifier of the ValueSet resource to retrieve
[_format]Specifies the format of the output and may be xml or json. When present, the _format value overrides the value of the Accept header in the request.
[_summary]Filters the output to include only summary elements (_summary=true) or to omit the generated narrative (_summary=data). Note: If the generated html narrative for the resource is not going to be used by the call, using _summary=data provides slightly improved API response times.

Read Operation HTTP Response Codes

Response CodeDescription
200 OKThe requested resource was found and is contained within the body of the HTTP response.
401 UnauthorizedAuthorization is required for this request, and either the Authorization header is missing or the supplied user credentials in the Authorization header are not valid or have expired. The body of the HTTP response will contain an OperationOutcome resource that indicates that Authorization is required.
404 Not FoundThe requested resource does not exist. The body of the HTTP response will contain an OperationOutcome resource that indicates that the resource could not be found.
500 Server ErrorThe server may return other error codes to indicate other error conditions. The body of the HTTP response will contain an OperationOutcome resource that indicates the nature of the error.

Search Operation

ValueSet resources can be enumerated by retrieving the fhir/List resource with an id of ValueSet

GET [base]/fhir/List/ValueSet?{_format=[json|xml]&_summary=[true|text|data]}

Search Operation Parameters

ParameterDescription
[base]Specifies the base URL of the FHIR Server, e.g., https://cpsapisandbox.virenceaz.com:9443/demoAPIServer
[_count]Specifies the maximum number of search results to return in a single query. Note: The count of results does not limit the number of additional resources returned via the _include parameter. No more than max-results ValueSet resources which match the search criteria will be returned. The API Server has default and maximum limits for the value that can be specified for this parameter. These limits may vary depending upon the client application vendors participation level in the AthenaHealth Partner program. Note: The API Server support the HL7 FHIR Paging capability.
[_format]Specifies the format of the output and may be xml or json. When present, the _format value overrides the value of the Accept header in the request.
[_summary]Filters the output to include only narrative elements (_summary=text), summary elements (_summary=true) or to omit the generated narrative (_summary=data). Note: If the generated html narrative for the resource is not going to be used by the call, using _summary=data provides improved API response times, especially when returning larger result sets.

Search Operation HTTP Response Codes

Response CodeDescription
200 OKThe query was performed and any results found are contained within the body of the HTTP response. Note: The search API will return 200 OK when the query itself is successful, regardless of whether or not any matching results were found.
401 UnauthorizedAuthorization is required for this request, and either the Authorization header is missing or the supplied user credentials in the Authorization header are not valid or have expired. The body of the HTTP response will contain an OperationOutcome resource that indicates that Authorization is required.
500 Server ErrorThe server may return other error codes to indicate other error conditions. The body of the HTTP response will contain an OperationOutcome resource that indicates the nature of the error.

Other Operations

This Implementation guide defines 3 operations:

$expand Value Set Expansion
$lookup Concept Look Up
$validate-code Value Set based Validation

For more information about operations, including how they are invoked, see Operations .

Value Set Expansion

The definition of a value set is used to create a simple collection of codes suitable for use for data entry or validation. If the operation is not called at the instance level, one of the in parameters identifier, context or valueset must be provided. An expanded value set will be returned, or an OperationOutcome with an error message.

GET [base]/$expand?{operation-parameters}
GET [base]/$expand?{operation-parameters}
In Parameters:
NameCardinalityTypeBindingProfileDocumentation
filter0..1string

A text filter that is applied to restrict the codes that are returned (this is useful in a UI context). The interpretation of this is delegated to the server in order to allow to determine the most optimal search approach for the context

count0..1integer

Paging support - how many codes should be provided in a partial view. Paging only applies to flat expansions - servers ignore paging if the expansion is not flat. If count = 0, the client is asking how large the expansion is. Servers SHOULD honor this request for hierarchical expansions as well, and simply return the overall count

Out Parameters:
NameCardinalityTypeBindingProfileDocumentation
return1..1ValueSet

The result of the expansion

Note: as this the only out parameter, it is a resource, and it has the name 'return', the result of this operation is returned directly as a resource

The value set expansion returned by this query should be treated as a transient result that will change over time (whether it does or not depends on how the value set is specified), so applications should repeat the operation each time the value set is used. Clients can work through large flat expansions in a set of pages (partial views of the full expansion) instead of just getting the full expansion in a single exchange by using offset and count parameters. Servers are not obliged to support paging, but if they do, SHALL support both the offset and count parameters. Hierarchical expansions are not subject to paging and servers simply return the entire expansion. Different servers may return different results from expanding a value set for the following reasons: * The underlying code systems are different (e.g. different versions, possibly with different defined behavior) * The server optimizes filter includes differently, such as sorting by code frequency * Servers introduce arbitrary groups to assist a user to navigate the lists based either on extensions in the definition, or additional knowledge available to the server

 

Concept Look Up

Given a code/system, or a Coding, get additional details about the concept

GET [base]/$lookup?{operation-parameters}
In Parameters:
NameCardinalityTypeBindingProfileDocumentation
code0..1code

The code that is to be validated. If a code is provided, a system must be provided

system0..1uri

The system for the code that is to be validated

Out Parameters:
NameCardinalityTypeBindingProfileDocumentation
name1..1string

A display name for the code system

display1..1string

The preferred display for this concept

Note that the $lookup operation is more than just a value set search - the server finds the concept, and gathers the return information from the value set and the underlying code system definitions.

 

Value Set based Validation

Validate that a coded value is in the set of codes allowed by a value set. If the operation is not called at the instance level, one of the in parameters "identifier" or "valueset" must be provided. One (and only one) of the in parameters (code, coding, codeableConcept) must be provided. The operation returns a result (true / false), an error message, and the recommended display for the code

GET [base]/$validate-code?{operation-parameters}
GET [base]/$validate-code?{operation-parameters}
In Parameters:
NameCardinalityTypeBindingProfileDocumentation
code0..1code

The code that is to be validated. If a code is provided, a system must be provided

system1..1uri

The system for the code that is to be validated

Out Parameters:
NameCardinalityTypeBindingProfileDocumentation
result1..1boolean

True if the concept details supplied are valid

display0..1string

A valid display for the concept if the system wishes to display this to a user

 

Profile Content

The official URL for this profile is:

http://hl7.org/fhir/StructureDefinition/valueset-profile

A set of codes drawn from one or more code systems

Name Flags Card. Type Description & Constraints
.. ValueSetI0..*ValueSet A set of codes drawn from one or more code systems

vsd-7: A defined code system (if present) SHALL have a different url than the value set url

vsd-2: A value set with only one import SHALL also have an include and/or an exclude unless the value set includes and inline code system

vsd-5: Value set SHALL contain at least one of a codeSystem, a compose, or an expansion element
... meta0..1Meta Metadata about the resource
... implicitRules?! 0..1uri A set of rules under which this content was created
... language0..1code Language of the resource content

Binding: IETF BCP-47 (required )
... textI0..1Narrative Text summary of the resource, for human interpretation
... contained0..*Resource Contained, inline Resources
... extension0..*Extension Additional Content defined by implementations
... modifierExtension?!0..*Extension Extensions that cannot be ignored
... url0..1uri Globally unique logical identifier for value set
... identifier0..1Identifier Additional identifier for the value set (e.g. HL7 v2 / CDA)
... version0..1string Logical identifier for this version of the value set
... name0..1string Informal name for this value set
... status?! S1..1code draft | active | retired

Binding: ConformanceResourceStatus (required )
... experimental0..1boolean If for testing purposes, not real usage
... publisher0..1string Name of the publisher (organization or individual)
... contact0..*BackboneElement Contact details of the publisher
.... extension0..*Extension Additional Content defined by implementations
.... modifierExtension?!0..*Extension Extensions that cannot be ignored
.... name0..1string Name of an individual to contact
.... telecom0..*ContactPoint Contact details for individual or publisher
... date0..1dateTime Date for given status
... lockedDate0..1date Fixed date for all referenced code systems and value sets
... description0..1string Human language description of the value set
... useContext0..*CodeableConcept Content intends to support these contexts

Binding: Context of Use ValueSet (extensible )
... immutable0..1boolean Indicates whether or not any change to the content logical definition may occur
... requirements0..1string Why needed
... copyright0..1string Use and/or publishing restrictions
... extensible0..1boolean Whether this is intended to be used with an extensible binding
... codeSystemI0..1BackboneElement An inline code system, which is part of this value set

vsd-8: Codes must be unique

vsd-3: Within a code system definition, all the codes SHALL be unique
.... extension0..*Extension Additional Content defined by implementations
.... modifierExtension?!0..*Extension Extensions that cannot be ignored
.... system1..1uri URI to identify the code system (e.g. in Coding.system)
.... version0..1string Version (for use in Coding.version)
.... caseSensitive0..1boolean If code comparison is case sensitive
.... concept1..*BackboneElement Concepts in the code system
..... extension0..*Extension Additional Content defined by implementations
..... modifierExtension?!0..*Extension Extensions that cannot be ignored
..... code1..1code Code that identifies concept
..... abstract0..1boolean If this code is not for use as a real concept
..... display0..1string Text to display to the user
..... definition0..1string Formal definition
..... designation0..*BackboneElement Additional representations for the concept
...... extension0..*Extension Additional Content defined by implementations
...... modifierExtension?!0..*Extension Extensions that cannot be ignored
...... language0..1code Human language of the designation

Binding: IETF BCP-47 (required )
...... use0..1Coding Details how this designation would be used

Binding: Designation Use (extensible )
...... value1..1string The text value for this designation
..... concept0..*Child Concepts (is-a/contains/categorizes)
... composeI0..1BackboneElement When value set includes codes from elsewhere

vsd-1: A value set composition SHALL have an include or an import
.... extension0..*Extension Additional Content defined by implementations
.... modifierExtension?!0..*Extension Extensions that cannot be ignored
.... importI0..*uri Import the contents of another value set
.... includeI0..*BackboneElement Include one or more codes from a code system

vsd-11: Cannot have both concept and filter
..... extension0..*Extension Additional Content defined by implementations
..... modifierExtension?!0..*Extension Extensions that cannot be ignored
..... system1..1uri The system the codes come from
..... version0..1string Specific version of the code system referred to
..... conceptI0..*BackboneElement A concept defined in the system
...... extension0..*Extension Additional Content defined by implementations
...... modifierExtension?!0..*Extension Extensions that cannot be ignored
...... code1..1code Code or expression from system
...... display0..1string Test to display for this code for this value set
...... designation0..*Additional representations for this valueset
..... filterI0..*BackboneElement Select codes/concepts by their properties (including relationships)
...... extension0..*Extension Additional Content defined by implementations
...... modifierExtension?!0..*Extension Extensions that cannot be ignored
...... property1..1code A property defined by the code system
...... op1..1code = | is-a | is-not-a | regex | in | not-in

Binding: FilterOperator (required )
...... value1..1code Code from the system, or regex criteria
.... excludeI0..*Explicitly exclude codes
... expansionI0..1BackboneElement Used when the value set is "expanded"
.... extension0..*Extension Additional Content defined by implementations
.... modifierExtension?!0..*Extension Extensions that cannot be ignored
.... identifier1..1uri Uniquely identifies this expansion
.... timestamp1..1dateTime Time ValueSet expansion happened
.... total0..1integer Total number of codes in the expansion
.... offset0..1integer Offset at which this resource starts
.... parameter0..*BackboneElement Parameter that controlled the expansion process
..... extension0..*Extension Additional Content defined by implementations
..... modifierExtension?!0..*Extension Extensions that cannot be ignored
..... name1..1string Name as assigned by the server
..... value[x]0..1string , boolean , integer , decimal , uri , code Value of the named parameter
.... containsI0..*BackboneElement Codes in the value set

vsd-6: SHALL have a code or a display

vsd-9: Must have a code if not abstract

vsd-10: Must have a system if a code is present
..... extension0..*Extension Additional Content defined by implementations
..... modifierExtension?!0..*Extension Extensions that cannot be ignored
..... system0..1uri System value for the code
..... abstract0..1boolean If user cannot select this entry
..... version0..1string Version in which this code/display is defined
..... codeI0..1code Code - if blank, this is not a selectable code
..... displayI0..1string User display for the concept
..... contains0..*Codes contained under this entry