Scope
This page summarizes the implementation of an Expression Extension using the HL7 FHIR Terminology Services API.
This approach is in the process of being implemented and supported by the Snowstorm FHIR Terminology Services API.
Under development
This section is still under active development, and the API examples will change as reference implementations mature and this is discussed with the community of practice.
Solution Overview
To represent an expression repository using FHIR terminology services, the required solution will depend on what approach is taken to uniquely refer to the expressions:
- The expressions themselves may be used as an identifier
- With this approach, a CodeSystem Supplement will be created and function as the expression repository
- This supplements the applied SNOMED CT CodeSystem
- With this approach, a CodeSystem Supplement will be created and function as the expression repository
- A separate identifier is created for each expression
- With this approach, the following FHIR terminology resources are required
- a CodeSystem Supplement to function as the expression repository
- This supplements the applied SNOMED CT CodeSystem
- a CodeSystem to hold the expression identifiers
- a ConceptMap to hold the association between the expression identifiers and the expressions
- a CodeSystem Supplement to function as the expression repository
- With this approach, the following FHIR terminology resources are required
Services
With this implementation, the defined operations for CodeSystems and ConceptMaps can be utilized to support the services required for an expression repository. Please refer to the HL7 FHIR documentation for further details:
- CodeSystem
Create expression repository
Creating an expression repository using a FHIR Terminology Server involves the creation of the following structures:
- A CodeSystem supplement (expRep): This functions as the actual expression repository and is used to hold the expressions
- A CodeSystem (expId): This code system is used to hold the unique expression identifiers
- A ConceptMap: This is used to map between the expressions in the expRep CodeSystem supplement and the expId CodeSystem. The ConceptMap enables the translation of expressions to (and from) shorter codes for systems with restricted code lengths
Service | Description | Input |
---|---|---|
Create Code System Supplement POST /CodeSystem | Create the CodeSystem supplement. This operation must specify a version URI that uses the snomed.info xsct URI with a specific module but no version. This resource must supplement a specific version of a SNOMED CT edition. The example supplements the International Edition of SNOMED CT (900000000000207008), version Jan 2023 (20230131). | {"resourceType": "CodeSystem", |
Create SNOMED Exp IDs Code System POST /CodeSystem (Only needed if EHR cannot store expressions) | If needed, create a CodeSystem for expression identifiers. |
"resourceType": "CodeSystem",
|
Create Concept Map for Exp Ids POST /ConceptMap (Only needed if EHR cannot store expressions) | Create the ConceptMap to map expressions in the code system supplement to expression identifiers in the Exp. Ids code system. This will be populated manually. |
"resourceType": "ConceptMap",
|
Get repository details
Service | Description | Input |
---|---|---|
GET /CodeSystem/{id} | Get the details of the Code System using the provided ID; it is the same operation for the supplement or the Exp. IDs code system. | Code System ID, provided in the response of the code system creation |
Add expression
Service | Description | Input |
---|---|---|
PATCH /CodeSystem/{id} | Adds an expression in the Code System Supplement using a patch operation. The display value can be generated from the expression, or the expression itself could be used in this field. This operation should run validation on the expression being inserted into the supplement. | [ |
(Source: https://fhirblog.com/2019/08/13/updating-a-resource-using-patch/)
Lookup expression
Service | Description | Input | Output |
---|---|---|---|
GET /CodeSystem/{supplementId}/$lookup?code={ GET /CodeSystem//$lookup? | Lookup Expression in the supplement |
| |
GET /ConceptMap/{
GET /ConceptMap/ | Lookup Expression Identifier from Expression |
| |
GET /ConceptMap/{
GET /ConceptMap/ | Lookup Expression from Expression Identifier |
|
Search for expression
Use an implicit value set with ECL.
Get display term
A display term should be returned in the response of the lookup operation. The display term may be generated in a very simple way by just concatenating.
Create Classifiable Form
This should happen when the expression is inserted into the code system.
Create Necessary Normal Form
This should happen when the expression is inserted into the code system.
Subsumption
Service | Description | Input |
---|---|---|
Expression subsumption test GET /CodeSystem/$subsumes | Test the subsumption between a pair of expressions or an expression and a code. | {"resourceType": "CodeSystem",
|
ECL
Service | Input | Output |
---|---|---|
|
|
Example
A hospital department would like to report on the number of closed reduction procedures performed. All codes representing this type of procedure must be fetched so that they can be matched against the EHR records.
- Expand an intentional ValueSet using the expression library (and the Code System it supplements) with ECL "< 86052008 |Closed reduction of fracture (procedure)|"
- GET /ValueSet/$expand?url=
http://snomed.info/xsct/1234007?fhir_vs=ecl/<86052008
- GET /ValueSet/$expand?url=
- Expand an intentional ValueSet using the expression library, the Code System it supplements and a derivative (module 98763002)
- GET /ValueSet/$expand?url=
http://snomed.info/xsct/1234007;module/98763002?fhir_vs=ecl/<86052008
- GET /ValueSet/$expand?url=
Feedback