Repository: FHIR/sushi
Pull request #189 (2020-02-03 20:10:18)

Valueset Escape Syntax
This fixes https://standardhealthrecord.atlassian.net/browse/CIMPL-218.

This adds the ability to use the `^` syntax on ValueSets. The `^` syntax can be used to set metadata attributes on the ValueSet such as "publisher". Unlike on StructureDefinitions, this syntax can only be applied at the root level of the ValueSet, so the rules follow the form:
`* ^caretPath = value`.


Patch:
diff --git a/antlr/src/main/antlr/FSH.g4 b/antlr/src/main/antlr/FSH.g4
index 11fc6cc..4fbffc6 100644
--- a/antlr/src/main/antlr/FSH.g4
+++ b/antlr/src/main/antlr/FSH.g4
@@ -16,7 +16,7 @@ instanceMetadata:   instanceOf | title;
 invariant:          KW_INVARIANT SEQUENCE invariantMetadata+;
 invariantMetadata:  description | expression | xpath | severity;
 
-valueSet:           KW_VALUESET SEQUENCE vsMetadata* vsComponent*;
+valueSet:           KW_VALUESET SEQUENCE vsMetadata* (caretValueRule | vsComponent)*;
 vsMetadata:         id | title | description;
 codeSystem:         KW_CODESYSTEM SEQUENCE csMetadata* concept*;
 csMetadata:         id | title | description;
diff --git a/src/export/ValueSetExporter.ts b/src/export/ValueSetExporter.ts
index 8616e58..07e5e00 100644
--- a/src/export/ValueSetExporter.ts
+++ b/src/export/ValueSetExporter.ts
@@ -1,4 +1,9 @@
-import { ValueSet, ValueSetComposeIncludeOrExclude, ValueSetComposeConcept } from '../fhirtypes';
+import {
+  ValueSet,
+  ValueSetComposeIncludeOrExclude,
+  ValueSetComposeConcept,
+  StructureDefinition
+} from '../fhirtypes';
 import { FSHTank } from '../import/FSHTank';
 import {
   FshValueSet,
@@ -12,6 +17,8 @@ import { logger } from '../utils/FSHLogger';
 import { ValueSetComposeError } from '../errors';
 import { Package } from '.';
 import { MasterFisher, Type } from '../utils';
+import { CaretValueRule } from '../fshtypes/rules';
+import { setPropertyOnInstance } from '../fhirtypes/common';
 
 export class ValueSetExporter {
   constructor(private readonly tank: FSHTank, private pkg: Package, private fisher: MasterFisher) {}
@@ -79,6 +86,26 @@ export class ValueSetExporter {
     }
   }
 
+  private setCaretRules(valueSet: ValueSet, rules: CaretValueRule[]) {
+    const vsStructureDefinition = StructureDefinition.fromJSON(
+      this.fisher.fishForFHIR('ValueSet', Type.Resource)
+    );
+    for (const rule of rules) {
+      try {
+        if (rule instanceof CaretValueRule) {
+          const { fixedValue, pathParts } = vsStructureDefinition.validateValueAtPath(
+            rule.caretPath,
+            rule.value,
+            this.fisher
+          );
+          setPropertyOnInstance(valueSet, pathParts, fixedValue);
+        }
+      } catch (e) {
+        logger.error(e.message, rule.sourceInfo);
+      }
+    }
+  }
+
   private filterValueToString(value: ValueSetFilterValue): string {
     if (value instanceof RegExp) {
       return value.source;
@@ -106,6 +133,7 @@ export class ValueSetExporter {
     }
     const vs = new ValueSet();
     this.setMetadata(vs, fshDefinition);
+    this.setCaretRules(vs, fshDefinition.rules);
     this.setCompose(vs, fshDefinition.components);
     if (vs.compose && vs.compose.include.length == 0) {
       throw new ValueSetComposeError(fshDefinition.name);
diff --git a/src/fhirtypes/common.ts b/src/fhirtypes/common.ts
index 4a415a3..20e93cd 100644
--- a/src/fhirtypes/common.ts
+++ b/src/fhirtypes/common.ts
@@ -1,4 +1,4 @@
-import { StructureDefinition, PathPart, ElementDefinition, InstanceDefinition } from '.';
+import { StructureDefinition, PathPart, ElementDefinition, InstanceDefinition, ValueSet } from '.';
 import { FixedValueRule } from '../fshtypes/rules';
 import { FshReference, Instance, SourceInfo, FshCode } from '../fshtypes';
 import { FSHTank } from '../import';
@@ -20,17 +20,13 @@ export function setPropertyOnDefinitionInstance(
   value: any,
   fisher: Fishable
 ): void {
-  const structureDefinitionStructureDefinition = instance.getOwnStructureDefinition(fisher);
-  const { fixedValue, pathParts } = structureDefinitionStructureDefinition.validateValueAtPath(
-    path,
-    value,
-    fisher
-  );
+  const instanceSD = instance.getOwnStructureDefinition(fisher);
+  const { fixedValue, pathParts } = instanceSD.validateValueAtPath(path, value, fisher);
   setPropertyOnInstance(instance, pathParts, fixedValue);
 }
 
 export function setPropertyOnInstance(
-  instance: StructureDefinition | ElementDefinition | InstanceDefinition,
+  instance: StructureDefinition | ElementDefinition | InstanceDefinition | ValueSet,
   pathParts: PathPart[],
   fixedValue: any
 ): void {
diff --git a/src/fshtypes/FshValueSet.ts b/src/fshtypes/FshValueSet.ts
index 0f136f3..711b92e 100644
--- a/src/fshtypes/FshValueSet.ts
+++ b/src/fshtypes/FshValueSet.ts
@@ -1,5 +1,6 @@
 import { FshEntity } from './FshEntity';
 import { ValueSetComponent } from './ValueSetComponent';
+import { CaretValueRule } from './rules';
 
 /**
  * For more information about the composition of a ValueSet,
@@ -10,10 +11,12 @@ export class FshValueSet extends FshEntity {
   title?: string;
   description?: string;
   components: ValueSetComponent[];
+  rules: CaretValueRule[];
 
   constructor(public name: string) {
     super();
     this.id = name;
     this.components = [];
+    this.rules = [];
   }
 }
diff --git a/src/import/FSHImporter.ts b/src/import/FSHImporter.ts
index a78f5f8..88b0235 100644
--- a/src/import/FSHImporter.ts
+++ b/src/import/FSHImporter.ts
@@ -285,14 +285,15 @@ export class FSHImporter extends FSHVisitor {
     const valueSet = new FshValueSet(ctx.SEQUENCE().getText())
       .withLocation(this.extractStartStop(ctx))
       .withFile(this.currentFile);
-    this.parseValueSet(valueSet, ctx.vsMetadata(), ctx.vsComponent());
+    this.parseValueSet(valueSet, ctx.vsMetadata(), ctx.vsComponent(), ctx.caretValueRule());
     this.currentDoc.valueSets.set(valueSet.name, valueSet);
   }
 
   private parseValueSet(
     valueSet: FshValueSet,
     metaCtx: pc.VsMetadataContext[] = [],
-    componentCtx: pc.VsComponentContext[] = []
+    componentCtx: pc.VsComponentContext[] = [],
+    caretValueRuleCtx: pc.CaretValueRuleContext[] = []
   ) {
     const seenPairs: Map<VsMetadataKey, string> = new Map();
     metaCtx
@@ -342,6 +343,17 @@ export class FSHImporter extends FSHVisitor {
           valueSet.components.push(vsComponent);
         }
       });
+    caretValueRuleCtx.forEach(caretValueRule => {
+      const rule = this.visitCaretValueRule(caretValueRule);
+      if (rule.path) {
+        logger.error(
+          'Caret rule on ValueSet cannot contain path before ^, skipping rule.',
+          rule.sourceInfo
+        );
+      } else {
+        valueSet.rules.push(this.visitCaretValueRule(caretValueRule));
+      }
+    });
   }
 
   visitCodeSystem(ctx: pc.CodeSystemContext) {
diff --git a/src/import/generated/FSH.interp b/src/import/generated/FSH.interp
index c7674cf..8191093 100644
--- a/src/import/generated/FSH.interp
+++ b/src/import/generated/FSH.interp
@@ -178,4 +178,4 @@ targetType
 
 
 atn:
-[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 59, 472, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 4, 29, 9, 29, 4, 30, 9, 30, 4, 31, 9, 31, 4, 32, 9, 32, 4, 33, 9, 33, 4, 34, 9, 34, 4, 35, 9, 35, 4, 36, 9, 36, 4, 37, 9, 37, 4, 38, 9, 38, 4, 39, 9, 39, 4, 40, 9, 40, 4, 41, 9, 41, 4, 42, 9, 42, 4, 43, 9, 43, 4, 44, 9, 44, 4, 45, 9, 45, 4, 46, 9, 46, 4, 47, 9, 47, 4, 48, 9, 48, 4, 49, 9, 49, 4, 50, 9, 50, 4, 51, 9, 51, 4, 52, 9, 52, 4, 53, 9, 53, 4, 54, 9, 54, 4, 55, 9, 55, 4, 56, 9, 56, 4, 57, 9, 57, 3, 2, 7, 2, 116, 10, 2, 12, 2, 14, 2, 119, 11, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 3, 130, 10, 3, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 6, 5, 140, 10, 5, 13, 5, 14, 5, 141, 3, 5, 7, 5, 145, 10, 5, 12, 5, 14, 5, 148, 11, 5, 3, 6, 3, 6, 3, 6, 7, 6, 153, 10, 6, 12, 6, 14, 6, 156, 11, 6, 3, 6, 7, 6, 159, 10, 6, 12, 6, 14, 6, 162, 11, 6, 3, 7, 3, 7, 3, 7, 3, 7, 5, 7, 168, 10, 7, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 5, 8, 178, 10, 8, 3, 9, 3, 9, 3, 9, 7, 9, 183, 10, 9, 12, 9, 14, 9, 186, 11, 9, 3, 9, 7, 9, 189, 10, 9, 12, 9, 14, 9, 192, 11, 9, 3, 10, 3, 10, 5, 10, 196, 10, 10, 3, 11, 3, 11, 3, 11, 6, 11, 201, 10, 11, 13, 11, 14, 11, 202, 3, 12, 3, 12, 3, 12, 3, 12, 5, 12, 209, 10, 12, 3, 13, 3, 13, 3, 13, 7, 13, 214, 10, 13, 12, 13, 14, 13, 217, 11, 13, 3, 13, 7, 13, 220, 10, 13, 12, 13, 14, 13, 223, 11, 13, 3, 14, 3, 14, 3, 14, 5, 14, 228, 10, 14, 3, 15, 3, 15, 3, 15, 7, 15, 233, 10, 15, 12, 15, 14, 15, 236, 11, 15, 3, 15, 7, 15, 239, 10, 15, 12, 15, 14, 15, 242, 11, 15, 3, 16, 3, 16, 3, 16, 5, 16, 247, 10, 16, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 20, 3, 20, 3, 20, 3, 21, 3, 21, 3, 21, 3, 22, 3, 22, 3, 22, 3, 23, 3, 23, 3, 23, 3, 24, 3, 24, 3, 24, 3, 25, 3, 25, 3, 25, 3, 25, 7, 25, 277, 10, 25, 12, 25, 14, 25, 280, 11, 25, 3, 26, 3, 26, 3, 26, 5, 26, 285, 10, 26, 3, 26, 6, 26, 288, 10, 26, 13, 26, 14, 26, 289, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 5, 27, 297, 10, 27, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 7, 29, 310, 10, 29, 12, 29, 14, 29, 313, 11, 29, 3, 30, 3, 30, 3, 30, 3, 30, 3, 30, 3, 30, 7, 30, 321, 10, 30, 12, 30, 14, 30, 324, 11, 30, 3, 31, 3, 31, 5, 31, 328, 10, 31, 3, 31, 3, 31, 3, 31, 3, 31, 7, 31, 334, 10, 31, 12, 31, 14, 31, 337, 11, 31, 3, 32, 3, 32, 5, 32, 341, 10, 32, 3, 32, 3, 32, 3, 32, 3, 32, 3, 33, 3, 33, 5, 33, 349, 10, 33, 3, 33, 3, 33, 5, 33, 353, 10, 33, 3, 34, 3, 34, 5, 34, 357, 10, 34, 3, 34, 3, 34, 5, 34, 361, 10, 34, 3, 35, 3, 35, 3, 35, 3, 35, 5, 35, 367, 10, 35, 3, 36, 3, 36, 3, 36, 3, 36, 5, 36, 373, 10, 36, 3, 36, 3, 36, 3, 36, 5, 36, 378, 10, 36, 5, 36, 380, 10, 36, 3, 37, 3, 37, 3, 37, 3, 38, 3, 38, 3, 38, 3, 39, 3, 39, 3, 39, 7, 39, 391, 10, 39, 12, 39, 14, 39, 394, 11, 39, 3, 39, 3, 39, 3, 40, 3, 40, 3, 40, 5, 40, 401, 10, 40, 3, 41, 3, 41, 3, 42, 3, 42, 3, 42, 3, 42, 3, 42, 5, 42, 410, 10, 42, 3, 43, 3, 43, 3, 44, 3, 44, 3, 45, 3, 45, 3, 46, 3, 46, 3, 47, 3, 47, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 5, 48, 432, 10, 48, 3, 49, 3, 49, 3, 49, 7, 49, 437, 10, 49, 12, 49, 14, 49, 440, 11, 49, 3, 50, 3, 50, 5, 50, 444, 10, 50, 3, 51, 3, 51, 3, 51, 5, 51, 449, 10, 51, 3, 52, 3, 52, 3, 52, 3, 53, 3, 53, 3, 53, 3, 53, 3, 54, 3, 54, 5, 54, 460, 10, 54, 3, 55, 3, 55, 5, 55, 464, 10, 55, 3, 56, 3, 56, 3, 57, 3, 57, 5, 57, 470, 10, 57, 3, 57, 2, 2, 58, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 2, 8, 3, 2, 42, 43, 3, 2, 55, 56, 4, 2, 38, 38, 56, 56, 3, 2, 18, 20, 3, 2, 22, 25, 3, 2, 31, 32, 2, 489, 2, 117, 3, 2, 2, 2, 4, 129, 3, 2, 2, 2, 6, 131, 3, 2, 2, 2, 8, 136, 3, 2, 2, 2, 10, 149, 3, 2, 2, 2, 12, 167, 3, 2, 2, 2, 14, 177, 3, 2, 2, 2, 16, 179, 3, 2, 2, 2, 18, 195, 3, 2, 2, 2, 20, 197, 3, 2, 2, 2, 22, 208, 3, 2, 2, 2, 24, 210, 3, 2, 2, 2, 26, 227, 3, 2, 2, 2, 28, 229, 3, 2, 2, 2, 30, 246, 3, 2, 2, 2, 32, 248, 3, 2, 2, 2, 34, 251, 3, 2, 2, 2, 36, 254, 3, 2, 2, 2, 38, 257, 3, 2, 2, 2, 40, 260, 3, 2, 2, 2, 42, 263, 3, 2, 2, 2, 44, 266, 3, 2, 2, 2, 46, 269, 3, 2, 2, 2, 48, 272, 3, 2, 2, 2, 50, 281, 3, 2, 2, 2, 52, 291, 3, 2, 2, 2, 54, 298, 3, 2, 2, 2, 56, 303, 3, 2, 2, 2, 58, 314, 3, 2, 2, 2, 60, 325, 3, 2, 2, 2, 62, 338, 3, 2, 2, 2, 64, 346, 3, 2, 2, 2, 66, 360, 3, 2, 2, 2, 68, 362, 3, 2, 2, 2, 70, 368, 3, 2, 2, 2, 72, 381, 3, 2, 2, 2, 74, 384, 3, 2, 2, 2, 76, 392, 3, 2, 2, 2, 78, 397, 3, 2, 2, 2, 80, 402, 3, 2, 2, 2, 82, 409, 3, 2, 2, 2, 84, 411, 3, 2, 2, 2, 86, 413, 3, 2, 2, 2, 88, 415, 3, 2, 2, 2, 90, 417, 3, 2, 2, 2, 92, 419, 3, 2, 2, 2, 94, 431, 3, 2, 2, 2, 96, 433, 3, 2, 2, 2, 98, 441, 3, 2, 2, 2, 100, 445, 3, 2, 2, 2, 102, 450, 3, 2, 2, 2, 104, 453, 3, 2, 2, 2, 106, 457, 3, 2, 2, 2, 108, 463, 3, 2, 2, 2, 110, 465, 3, 2, 2, 2, 112, 469, 3, 2, 2, 2, 114, 116, 5, 4, 3, 2, 115, 114, 3, 2, 2, 2, 116, 119, 3, 2, 2, 2, 117, 115, 3, 2, 2, 2, 117, 118, 3, 2, 2, 2, 118, 120, 3, 2, 2, 2, 119, 117, 3, 2, 2, 2, 120, 121, 7, 2, 2, 3, 121, 3, 3, 2, 2, 2, 122, 130, 5, 6, 4, 2, 123, 130, 5, 8, 5, 2, 124, 130, 5, 10, 6, 2, 125, 130, 5, 20, 11, 2, 126, 130, 5, 16, 9, 2, 127, 130, 5, 24, 13, 2, 128, 130, 5, 28, 15, 2, 129, 122, 3, 2, 2, 2, 129, 123, 3, 2, 2, 2, 129, 124, 3, 2, 2, 2, 129, 125, 3, 2, 2, 2, 129, 126, 3, 2, 2, 2, 129, 127, 3, 2, 2, 2, 129, 128, 3, 2, 2, 2, 130, 5, 3, 2, 2, 2, 131, 132, 7, 3, 2, 2, 132, 133, 7, 56, 2, 2, 133, 134, 7, 38, 2, 2, 134, 135, 7, 56, 2, 2, 135, 7, 3, 2, 2, 2, 136, 137, 7, 4, 2, 2, 137, 139, 7, 56, 2, 2, 138, 140, 5, 12, 7, 2, 139, 138, 3, 2, 2, 2, 140, 141, 3, 2, 2, 2, 141, 139, 3, 2, 2, 2, 141, 142, 3, 2, 2, 2, 142, 146, 3, 2, 2, 2, 143, 145, 5, 14, 8, 2, 144, 143, 3, 2, 2, 2, 145, 148, 3, 2, 2, 2, 146, 144, 3, 2, 2, 2, 146, 147, 3, 2, 2, 2, 147, 9, 3, 2, 2, 2, 148, 146, 3, 2, 2, 2, 149, 150, 7, 5, 2, 2, 150, 154, 7, 56, 2, 2, 151, 153, 5, 12, 7, 2, 152, 151, 3, 2, 2, 2, 153, 156, 3, 2, 2, 2, 154, 152, 3, 2, 2, 2, 154, 155, 3, 2, 2, 2, 155, 160, 3, 2, 2, 2, 156, 154, 3, 2, 2, 2, 157, 159, 5, 14, 8, 2, 158, 157, 3, 2, 2, 2, 159, 162, 3, 2, 2, 2, 160, 158, 3, 2, 2, 2, 160, 161, 3, 2, 2, 2, 161, 11, 3, 2, 2, 2, 162, 160, 3, 2, 2, 2, 163, 168, 5, 32, 17, 2, 164, 168, 5, 34, 18, 2, 165, 168, 5, 36, 19, 2, 166, 168, 5, 38, 20, 2, 167, 163, 3, 2, 2, 2, 167, 164, 3, 2, 2, 2, 167, 165, 3, 2, 2, 2, 167, 166, 3, 2, 2, 2, 168, 13, 3, 2, 2, 2, 169, 178, 5, 48, 25, 2, 170, 178, 5, 50, 26, 2, 171, 178, 5, 52, 27, 2, 172, 178, 5, 54, 28, 2, 173, 178, 5, 56, 29, 2, 174, 178, 5, 58, 30, 2, 175, 178, 5, 60, 31, 2, 176, 178, 5, 62, 32, 2, 177, 169, 3, 2, 2, 2, 177, 170, 3, 2, 2, 2, 177, 171, 3, 2, 2, 2, 177, 172, 3, 2, 2, 2, 177, 173, 3, 2, 2, 2, 177, 174, 3, 2, 2, 2, 177, 175, 3, 2, 2, 2, 177, 176, 3, 2, 2, 2, 178, 15, 3, 2, 2, 2, 179, 180, 7, 6, 2, 2, 180, 184, 7, 56, 2, 2, 181, 183, 5, 18, 10, 2, 182, 181, 3, 2, 2, 2, 183, 186, 3, 2, 2, 2, 184, 182, 3, 2, 2, 2, 184, 185, 3, 2, 2, 2, 185, 190, 3, 2, 2, 2, 186, 184, 3, 2, 2, 2, 187, 189, 5, 54, 28, 2, 188, 187, 3, 2, 2, 2, 189, 192, 3, 2, 2, 2, 190, 188, 3, 2, 2, 2, 190, 191, 3, 2, 2, 2, 191, 17, 3, 2, 2, 2, 192, 190, 3, 2, 2, 2, 193, 196, 5, 46, 24, 2, 194, 196, 5, 36, 19, 2, 195, 193, 3, 2, 2, 2, 195, 194, 3, 2, 2, 2, 196, 19, 3, 2, 2, 2, 197, 198, 7, 8, 2, 2, 198, 200, 7, 56, 2, 2, 199, 201, 5, 22, 12, 2, 200, 199, 3, 2, 2, 2, 201, 202, 3, 2, 2, 2, 202, 200, 3, 2, 2, 2, 202, 203, 3, 2, 2, 2, 203, 21, 3, 2, 2, 2, 204, 209, 5, 38, 20, 2, 205, 209, 5, 40, 21, 2, 206, 209, 5, 42, 22, 2, 207, 209, 5, 44, 23, 2, 208, 204, 3, 2, 2, 2, 208, 205, 3, 2, 2, 2, 208, 206, 3, 2, 2, 2, 208, 207, 3, 2, 2, 2, 209, 23, 3, 2, 2, 2, 210, 211, 7, 9, 2, 2, 211, 215, 7, 56, 2, 2, 212, 214, 5, 26, 14, 2, 213, 212, 3, 2, 2, 2, 214, 217, 3, 2, 2, 2, 215, 213, 3, 2, 2, 2, 215, 216, 3, 2, 2, 2, 216, 221, 3, 2, 2, 2, 217, 215, 3, 2, 2, 2, 218, 220, 5, 64, 33, 2, 219, 218, 3, 2, 2, 2, 220, 223, 3, 2, 2, 2, 221, 219, 3, 2, 2, 2, 221, 222, 3, 2, 2, 2, 222, 25, 3, 2, 2, 2, 223, 221, 3, 2, 2, 2, 224, 228, 5, 34, 18, 2, 225, 228, 5, 36, 19, 2, 226, 228, 5, 38, 20, 2, 227, 224, 3, 2, 2, 2, 227, 225, 3, 2, 2, 2, 227, 226, 3, 2, 2, 2, 228, 27, 3, 2, 2, 2, 229, 230, 7, 10, 2, 2, 230, 234, 7, 56, 2, 2, 231, 233, 5, 30, 16, 2, 232, 231, 3, 2, 2, 2, 233, 236, 3, 2, 2, 2, 234, 232, 3, 2, 2, 2, 234, 235, 3, 2, 2, 2, 235, 240, 3, 2, 2, 2, 236, 234, 3, 2, 2, 2, 237, 239, 5, 100, 51, 2, 238, 237, 3, 2, 2, 2, 239, 242, 3, 2, 2, 2, 240, 238, 3, 2, 2, 2, 240, 241, 3, 2, 2, 2, 241, 29, 3, 2, 2, 2, 242, 240, 3, 2, 2, 2, 243, 247, 5, 34, 18, 2, 244, 247, 5, 36, 19, 2, 245, 247, 5, 38, 20, 2, 246, 243, 3, 2, 2, 2, 246, 244, 3, 2, 2, 2, 246, 245, 3, 2, 2, 2, 247, 31, 3, 2, 2, 2, 248, 249, 7, 11, 2, 2, 249, 250, 7, 56, 2, 2, 250, 33, 3, 2, 2, 2, 251, 252, 7, 12, 2, 2, 252, 253, 7, 56, 2, 2, 253, 35, 3, 2, 2, 2, 254, 255, 7, 13, 2, 2, 255, 256, 7, 42, 2, 2, 256, 37, 3, 2, 2, 2, 257, 258, 7, 14, 2, 2, 258, 259, 9, 2, 2, 2, 259, 39, 3, 2, 2, 2, 260, 261, 7, 15, 2, 2, 261, 262, 7, 42, 2, 2, 262, 41, 3, 2, 2, 2, 263, 264, 7, 16, 2, 2, 264, 265, 7, 42, 2, 2, 265, 43, 3, 2, 2, 2, 266, 267, 7, 17, 2, 2, 267, 268, 7, 46, 2, 2, 268, 45, 3, 2, 2, 2, 269, 270, 7, 7, 2, 2, 270, 271, 7, 56, 2, 2, 271, 47, 3, 2, 2, 2, 272, 273, 7, 39, 2, 2, 273, 274, 5, 84, 43, 2, 274, 278, 7, 50, 2, 2, 275, 277, 5, 90, 46, 2, 276, 275, 3, 2, 2, 2, 277, 280, 3, 2, 2, 2, 278, 276, 3, 2, 2, 2, 278, 279, 3, 2, 2, 2, 279, 49, 3, 2, 2, 2, 280, 278, 3, 2, 2, 2, 281, 284, 7, 39, 2, 2, 282, 285, 5, 84, 43, 2, 283, 285, 5, 86, 44, 2, 284, 282, 3, 2, 2, 2, 284, 283, 3, 2, 2, 2, 285, 287, 3, 2, 2, 2, 286, 288, 5, 90, 46, 2, 287, 286, 3, 2, 2, 2, 288, 289, 3, 2, 2, 2, 289, 287, 3, 2, 2, 2, 289, 290, 3, 2, 2, 2, 290, 51, 3, 2, 2, 2, 291, 292, 7, 39, 2, 2, 292, 293, 5, 84, 43, 2, 293, 294, 7, 21, 2, 2, 294, 296, 7, 56, 2, 2, 295, 297, 5, 92, 47, 2, 296, 295, 3, 2, 2, 2, 296, 297, 3, 2, 2, 2, 297, 53, 3, 2, 2, 2, 298, 299, 7, 39, 2, 2, 299, 300, 5, 84, 43, 2, 300, 301, 7, 38, 2, 2, 301, 302, 5, 94, 48, 2, 302, 55, 3, 2, 2, 2, 303, 304, 7, 39, 2, 2, 304, 305, 5, 84, 43, 2, 305, 306, 7, 26, 2, 2, 306, 311, 5, 96, 49, 2, 307, 308, 7, 27, 2, 2, 308, 310, 5, 96, 49, 2, 309, 307, 3, 2, 2, 2, 310, 313, 3, 2, 2, 2, 311, 309, 3, 2, 2, 2, 311, 312, 3, 2, 2, 2, 312, 57, 3, 2, 2, 2, 313, 311, 3, 2, 2, 2, 314, 315, 7, 39, 2, 2, 315, 316, 5, 84, 43, 2, 316, 317, 7, 28, 2, 2, 317, 322, 5, 112, 57, 2, 318, 319, 7, 29, 2, 2, 319, 321, 5, 112, 57, 2, 320, 318, 3, 2, 2, 2, 321, 324, 3, 2, 2, 2, 322, 320, 3, 2, 2, 2, 322, 323, 3, 2, 2, 2, 323, 59, 3, 2, 2, 2, 324, 322, 3, 2, 2, 2, 325, 327, 7, 39, 2, 2, 326, 328, 5, 84, 43, 2, 327, 326, 3, 2, 2, 2, 327, 328, 3, 2, 2, 2, 328, 329, 3, 2, 2, 2, 329, 330, 7, 30, 2, 2, 330, 335, 7, 56, 2, 2, 331, 332, 7, 27, 2, 2, 332, 334, 7, 56, 2, 2, 333, 331, 3, 2, 2, 2, 334, 337, 3, 2, 2, 2, 335, 333, 3, 2, 2, 2, 335, 336, 3, 2, 2, 2, 336, 61, 3, 2, 2, 2, 337, 335, 3, 2, 2, 2, 338, 340, 7, 39, 2, 2, 339, 341, 5, 84, 43, 2, 340, 339, 3, 2, 2, 2, 340, 341, 3, 2, 2, 2, 341, 342, 3, 2, 2, 2, 342, 343, 5, 88, 45, 2, 343, 344, 7, 38, 2, 2, 344, 345, 5, 94, 48, 2, 345, 63, 3, 2, 2, 2, 346, 348, 7, 39, 2, 2, 347, 349, 7, 33, 2, 2, 348, 347, 3, 2, 2, 2, 348, 349, 3, 2, 2, 2, 349, 352, 3, 2, 2, 2, 350, 353, 5, 66, 34, 2, 351, 353, 5, 68, 35, 2, 352, 350, 3, 2, 2, 2, 352, 351, 3, 2, 2, 2, 353, 65, 3, 2, 2, 2, 354, 356, 5, 98, 50, 2, 355, 357, 5, 70, 36, 2, 356, 355, 3, 2, 2, 2, 356, 357, 3, 2, 2, 2, 357, 361, 3, 2, 2, 2, 358, 359, 7, 54, 2, 2, 359, 361, 5, 70, 36, 2, 360, 354, 3, 2, 2, 2, 360, 358, 3, 2, 2, 2, 361, 67, 3, 2, 2, 2, 362, 363, 7, 34, 2, 2, 363, 366, 5, 70, 36, 2, 364, 365, 7, 35, 2, 2, 365, 367, 5, 76, 39, 2, 366, 364, 3, 2, 2, 2, 366, 367, 3, 2, 2, 2, 367, 69, 3, 2, 2, 2, 368, 379, 7, 21, 2, 2, 369, 372, 5, 72, 37, 2, 370, 371, 7, 27, 2, 2, 371, 373, 5, 74, 38, 2, 372, 370, 3, 2, 2, 2, 372, 373, 3, 2, 2, 2, 373, 380, 3, 2, 2, 2, 374, 377, 5, 74, 38, 2, 375, 376, 7, 27, 2, 2, 376, 378, 5, 72, 37, 2, 377, 375, 3, 2, 2, 2, 377, 378, 3, 2, 2, 2, 378, 380, 3, 2, 2, 2, 379, 369, 3, 2, 2, 2, 379, 374, 3, 2, 2, 2, 380, 71, 3, 2, 2, 2, 381, 382, 7, 37, 2, 2, 382, 383, 7, 56, 2, 2, 383, 73, 3, 2, 2, 2, 384, 385, 7, 36, 2, 2, 385, 386, 9, 3, 2, 2, 386, 75, 3, 2, 2, 2, 387, 388, 5, 78, 40, 2, 388, 389, 7, 27, 2, 2, 389, 391, 3, 2, 2, 2, 390, 387, 3, 2, 2, 2, 391, 394, 3, 2, 2, 2, 392, 390, 3, 2, 2, 2, 392, 393, 3, 2, 2, 2, 393, 395, 3, 2, 2, 2, 394, 392, 3, 2, 2, 2, 395, 396, 5, 78, 40, 2, 396, 77, 3, 2, 2, 2, 397, 398, 7, 56, 2, 2, 398, 400, 5, 80, 41, 2, 399, 401, 5, 82, 42, 2, 400, 399, 3, 2, 2, 2, 400, 401, 3, 2, 2, 2, 401, 79, 3, 2, 2, 2, 402, 403, 9, 4, 2, 2, 403, 81, 3, 2, 2, 2, 404, 410, 5, 98, 50, 2, 405, 410, 7, 31, 2, 2, 406, 410, 7, 32, 2, 2, 407, 410, 7, 53, 2, 2, 408, 410, 7, 42, 2, 2, 409, 404, 3, 2, 2, 2, 409, 405, 3, 2, 2, 2, 409, 406, 3, 2, 2, 2, 409, 407, 3, 2, 2, 2, 409, 408, 3, 2, 2, 2, 410, 83, 3, 2, 2, 2, 411, 412, 7, 56, 2, 2, 412, 85, 3, 2, 2, 2, 413, 414, 7, 55, 2, 2, 414, 87, 3, 2, 2, 2, 415, 416, 7, 52, 2, 2, 416, 89, 3, 2, 2, 2, 417, 418, 9, 5, 2, 2, 418, 91, 3, 2, 2, 2, 419, 420, 9, 6, 2, 2, 420, 93, 3, 2, 2, 2, 421, 432, 7, 42, 2, 2, 422, 432, 7, 43, 2, 2, 423, 432, 7, 44, 2, 2, 424, 432, 7, 48, 2, 2, 425, 432, 7, 49, 2, 2, 426, 432, 5, 106, 54, 2, 427, 432, 5, 98, 50, 2, 428, 432, 5, 102, 52, 2, 429, 432, 5, 104, 53, 2, 430, 432, 5, 110, 56, 2, 431, 421, 3, 2, 2, 2, 431, 422, 3, 2, 2, 2, 431, 423, 3, 2, 2, 2, 431, 424, 3, 2, 2, 2, 431, 425, 3, 2, 2, 2, 431, 426, 3, 2, 2, 2, 431, 427, 3, 2, 2, 2, 431, 428, 3, 2, 2, 2, 431, 429, 3, 2, 2, 2, 431, 430, 3, 2, 2, 2, 432, 95, 3, 2, 2, 2, 433, 434, 7, 56, 2, 2, 434, 438, 7, 50, 2, 2, 435, 437, 5, 90, 46, 2, 436, 435, 3, 2, 2, 2, 437, 440, 3, 2, 2, 2, 438, 436, 3, 2, 2, 2, 438, 439, 3, 2, 2, 2, 439, 97, 3, 2, 2, 2, 440, 438, 3, 2, 2, 2, 441, 443, 7, 46, 2, 2, 442, 444, 7, 42, 2, 2, 443, 442, 3, 2, 2, 2, 443, 444, 3, 2, 2, 2, 444, 99, 3, 2, 2, 2, 445, 446, 7, 39, 2, 2, 446, 448, 5, 98, 50, 2, 447, 449, 7, 42, 2, 2, 448, 447, 3, 2, 2, 2, 448, 449, 3, 2, 2, 2, 449, 101, 3, 2, 2, 2, 450, 451, 7, 44, 2, 2, 451, 452, 7, 45, 2, 2, 452, 103, 3, 2, 2, 2, 453, 454, 5, 108, 55, 2, 454, 455, 7, 40, 2, 2, 455, 456, 5, 108, 55, 2, 456, 105, 3, 2, 2, 2, 457, 459, 7, 51, 2, 2, 458, 460, 7, 42, 2, 2, 459, 458, 3, 2, 2, 2, 459, 460, 3, 2, 2, 2, 460, 107, 3, 2, 2, 2, 461, 464, 7, 44, 2, 2, 462, 464, 5, 102, 52, 2, 463, 461, 3, 2, 2, 2, 463, 462, 3, 2, 2, 2, 464, 109, 3, 2, 2, 2, 465, 466, 9, 7, 2, 2, 466, 111, 3, 2, 2, 2, 467, 470, 7, 56, 2, 2, 468, 470, 5, 106, 54, 2, 469, 467, 3, 2, 2, 2, 469, 468, 3, 2, 2, 2, 470, 113, 3, 2, 2, 2, 48, 117, 129, 141, 146, 154, 160, 167, 177, 184, 190, 195, 202, 208, 215, 221, 227, 234, 240, 246, 278, 284, 289, 296, 311, 322, 327, 335, 340, 348, 352, 356, 360, 366, 372, 377, 379, 392, 400, 409, 431, 438, 443, 448, 459, 463, 469]
\ No newline at end of file
+[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 59, 473, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 4, 29, 9, 29, 4, 30, 9, 30, 4, 31, 9, 31, 4, 32, 9, 32, 4, 33, 9, 33, 4, 34, 9, 34, 4, 35, 9, 35, 4, 36, 9, 36, 4, 37, 9, 37, 4, 38, 9, 38, 4, 39, 9, 39, 4, 40, 9, 40, 4, 41, 9, 41, 4, 42, 9, 42, 4, 43, 9, 43, 4, 44, 9, 44, 4, 45, 9, 45, 4, 46, 9, 46, 4, 47, 9, 47, 4, 48, 9, 48, 4, 49, 9, 49, 4, 50, 9, 50, 4, 51, 9, 51, 4, 52, 9, 52, 4, 53, 9, 53, 4, 54, 9, 54, 4, 55, 9, 55, 4, 56, 9, 56, 4, 57, 9, 57, 3, 2, 7, 2, 116, 10, 2, 12, 2, 14, 2, 119, 11, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 3, 130, 10, 3, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 6, 5, 140, 10, 5, 13, 5, 14, 5, 141, 3, 5, 7, 5, 145, 10, 5, 12, 5, 14, 5, 148, 11, 5, 3, 6, 3, 6, 3, 6, 7, 6, 153, 10, 6, 12, 6, 14, 6, 156, 11, 6, 3, 6, 7, 6, 159, 10, 6, 12, 6, 14, 6, 162, 11, 6, 3, 7, 3, 7, 3, 7, 3, 7, 5, 7, 168, 10, 7, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 5, 8, 178, 10, 8, 3, 9, 3, 9, 3, 9, 7, 9, 183, 10, 9, 12, 9, 14, 9, 186, 11, 9, 3, 9, 7, 9, 189, 10, 9, 12, 9, 14, 9, 192, 11, 9, 3, 10, 3, 10, 5, 10, 196, 10, 10, 3, 11, 3, 11, 3, 11, 6, 11, 201, 10, 11, 13, 11, 14, 11, 202, 3, 12, 3, 12, 3, 12, 3, 12, 5, 12, 209, 10, 12, 3, 13, 3, 13, 3, 13, 7, 13, 214, 10, 13, 12, 13, 14, 13, 217, 11, 13, 3, 13, 3, 13, 7, 13, 221, 10, 13, 12, 13, 14, 13, 224, 11, 13, 3, 14, 3, 14, 3, 14, 5, 14, 229, 10, 14, 3, 15, 3, 15, 3, 15, 7, 15, 234, 10, 15, 12, 15, 14, 15, 237, 11, 15, 3, 15, 7, 15, 240, 10, 15, 12, 15, 14, 15, 243, 11, 15, 3, 16, 3, 16, 3, 16, 5, 16, 248, 10, 16, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 20, 3, 20, 3, 20, 3, 21, 3, 21, 3, 21, 3, 22, 3, 22, 3, 22, 3, 23, 3, 23, 3, 23, 3, 24, 3, 24, 3, 24, 3, 25, 3, 25, 3, 25, 3, 25, 7, 25, 278, 10, 25, 12, 25, 14, 25, 281, 11, 25, 3, 26, 3, 26, 3, 26, 5, 26, 286, 10, 26, 3, 26, 6, 26, 289, 10, 26, 13, 26, 14, 26, 290, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 5, 27, 298, 10, 27, 3, 28, 3, 28, 3, 28, 3, 28, 3, 28, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 3, 29, 7, 29, 311, 10, 29, 12, 29, 14, 29, 314, 11, 29, 3, 30, 3, 30, 3, 30, 3, 30, 3, 30, 3, 30, 7, 30, 322, 10, 30, 12, 30, 14, 30, 325, 11, 30, 3, 31, 3, 31, 5, 31, 329, 10, 31, 3, 31, 3, 31, 3, 31, 3, 31, 7, 31, 335, 10, 31, 12, 31, 14, 31, 338, 11, 31, 3, 32, 3, 32, 5, 32, 342, 10, 32, 3, 32, 3, 32, 3, 32, 3, 32, 3, 33, 3, 33, 5, 33, 350, 10, 33, 3, 33, 3, 33, 5, 33, 354, 10, 33, 3, 34, 3, 34, 5, 34, 358, 10, 34, 3, 34, 3, 34, 5, 34, 362, 10, 34, 3, 35, 3, 35, 3, 35, 3, 35, 5, 35, 368, 10, 35, 3, 36, 3, 36, 3, 36, 3, 36, 5, 36, 374, 10, 36, 3, 36, 3, 36, 3, 36, 5, 36, 379, 10, 36, 5, 36, 381, 10, 36, 3, 37, 3, 37, 3, 37, 3, 38, 3, 38, 3, 38, 3, 39, 3, 39, 3, 39, 7, 39, 392, 10, 39, 12, 39, 14, 39, 395, 11, 39, 3, 39, 3, 39, 3, 40, 3, 40, 3, 40, 5, 40, 402, 10, 40, 3, 41, 3, 41, 3, 42, 3, 42, 3, 42, 3, 42, 3, 42, 5, 42, 411, 10, 42, 3, 43, 3, 43, 3, 44, 3, 44, 3, 45, 3, 45, 3, 46, 3, 46, 3, 47, 3, 47, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 3, 48, 5, 48, 433, 10, 48, 3, 49, 3, 49, 3, 49, 7, 49, 438, 10, 49, 12, 49, 14, 49, 441, 11, 49, 3, 50, 3, 50, 5, 50, 445, 10, 50, 3, 51, 3, 51, 3, 51, 5, 51, 450, 10, 51, 3, 52, 3, 52, 3, 52, 3, 53, 3, 53, 3, 53, 3, 53, 3, 54, 3, 54, 5, 54, 461, 10, 54, 3, 55, 3, 55, 5, 55, 465, 10, 55, 3, 56, 3, 56, 3, 57, 3, 57, 5, 57, 471, 10, 57, 3, 57, 2, 2, 58, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 2, 8, 3, 2, 42, 43, 3, 2, 55, 56, 4, 2, 38, 38, 56, 56, 3, 2, 18, 20, 3, 2, 22, 25, 3, 2, 31, 32, 2, 491, 2, 117, 3, 2, 2, 2, 4, 129, 3, 2, 2, 2, 6, 131, 3, 2, 2, 2, 8, 136, 3, 2, 2, 2, 10, 149, 3, 2, 2, 2, 12, 167, 3, 2, 2, 2, 14, 177, 3, 2, 2, 2, 16, 179, 3, 2, 2, 2, 18, 195, 3, 2, 2, 2, 20, 197, 3, 2, 2, 2, 22, 208, 3, 2, 2, 2, 24, 210, 3, 2, 2, 2, 26, 228, 3, 2, 2, 2, 28, 230, 3, 2, 2, 2, 30, 247, 3, 2, 2, 2, 32, 249, 3, 2, 2, 2, 34, 252, 3, 2, 2, 2, 36, 255, 3, 2, 2, 2, 38, 258, 3, 2, 2, 2, 40, 261, 3, 2, 2, 2, 42, 264, 3, 2, 2, 2, 44, 267, 3, 2, 2, 2, 46, 270, 3, 2, 2, 2, 48, 273, 3, 2, 2, 2, 50, 282, 3, 2, 2, 2, 52, 292, 3, 2, 2, 2, 54, 299, 3, 2, 2, 2, 56, 304, 3, 2, 2, 2, 58, 315, 3, 2, 2, 2, 60, 326, 3, 2, 2, 2, 62, 339, 3, 2, 2, 2, 64, 347, 3, 2, 2, 2, 66, 361, 3, 2, 2, 2, 68, 363, 3, 2, 2, 2, 70, 369, 3, 2, 2, 2, 72, 382, 3, 2, 2, 2, 74, 385, 3, 2, 2, 2, 76, 393, 3, 2, 2, 2, 78, 398, 3, 2, 2, 2, 80, 403, 3, 2, 2, 2, 82, 410, 3, 2, 2, 2, 84, 412, 3, 2, 2, 2, 86, 414, 3, 2, 2, 2, 88, 416, 3, 2, 2, 2, 90, 418, 3, 2, 2, 2, 92, 420, 3, 2, 2, 2, 94, 432, 3, 2, 2, 2, 96, 434, 3, 2, 2, 2, 98, 442, 3, 2, 2, 2, 100, 446, 3, 2, 2, 2, 102, 451, 3, 2, 2, 2, 104, 454, 3, 2, 2, 2, 106, 458, 3, 2, 2, 2, 108, 464, 3, 2, 2, 2, 110, 466, 3, 2, 2, 2, 112, 470, 3, 2, 2, 2, 114, 116, 5, 4, 3, 2, 115, 114, 3, 2, 2, 2, 116, 119, 3, 2, 2, 2, 117, 115, 3, 2, 2, 2, 117, 118, 3, 2, 2, 2, 118, 120, 3, 2, 2, 2, 119, 117, 3, 2, 2, 2, 120, 121, 7, 2, 2, 3, 121, 3, 3, 2, 2, 2, 122, 130, 5, 6, 4, 2, 123, 130, 5, 8, 5, 2, 124, 130, 5, 10, 6, 2, 125, 130, 5, 20, 11, 2, 126, 130, 5, 16, 9, 2, 127, 130, 5, 24, 13, 2, 128, 130, 5, 28, 15, 2, 129, 122, 3, 2, 2, 2, 129, 123, 3, 2, 2, 2, 129, 124, 3, 2, 2, 2, 129, 125, 3, 2, 2, 2, 129, 126, 3, 2, 2, 2, 129, 127, 3, 2, 2, 2, 129, 128, 3, 2, 2, 2, 130, 5, 3, 2, 2, 2, 131, 132, 7, 3, 2, 2, 132, 133, 7, 56, 2, 2, 133, 134, 7, 38, 2, 2, 134, 135, 7, 56, 2, 2, 135, 7, 3, 2, 2, 2, 136, 137, 7, 4, 2, 2, 137, 139, 7, 56, 2, 2, 138, 140, 5, 12, 7, 2, 139, 138, 3, 2, 2, 2, 140, 141, 3, 2, 2, 2, 141, 139, 3, 2, 2, 2, 141, 142, 3, 2, 2, 2, 142, 146, 3, 2, 2, 2, 143, 145, 5, 14, 8, 2, 144, 143, 3, 2, 2, 2, 145, 148, 3, 2, 2, 2, 146, 144, 3, 2, 2, 2, 146, 147, 3, 2, 2, 2, 147, 9, 3, 2, 2, 2, 148, 146, 3, 2, 2, 2, 149, 150, 7, 5, 2, 2, 150, 154, 7, 56, 2, 2, 151, 153, 5, 12, 7, 2, 152, 151, 3, 2, 2, 2, 153, 156, 3, 2, 2, 2, 154, 152, 3, 2, 2, 2, 154, 155, 3, 2, 2, 2, 155, 160, 3, 2, 2, 2, 156, 154, 3, 2, 2, 2, 157, 159, 5, 14, 8, 2, 158, 157, 3, 2, 2, 2, 159, 162, 3, 2, 2, 2, 160, 158, 3, 2, 2, 2, 160, 161, 3, 2, 2, 2, 161, 11, 3, 2, 2, 2, 162, 160, 3, 2, 2, 2, 163, 168, 5, 32, 17, 2, 164, 168, 5, 34, 18, 2, 165, 168, 5, 36, 19, 2, 166, 168, 5, 38, 20, 2, 167, 163, 3, 2, 2, 2, 167, 164, 3, 2, 2, 2, 167, 165, 3, 2, 2, 2, 167, 166, 3, 2, 2, 2, 168, 13, 3, 2, 2, 2, 169, 178, 5, 48, 25, 2, 170, 178, 5, 50, 26, 2, 171, 178, 5, 52, 27, 2, 172, 178, 5, 54, 28, 2, 173, 178, 5, 56, 29, 2, 174, 178, 5, 58, 30, 2, 175, 178, 5, 60, 31, 2, 176, 178, 5, 62, 32, 2, 177, 169, 3, 2, 2, 2, 177, 170, 3, 2, 2, 2, 177, 171, 3, 2, 2, 2, 177, 172, 3, 2, 2, 2, 177, 173, 3, 2, 2, 2, 177, 174, 3, 2, 2, 2, 177, 175, 3, 2, 2, 2, 177, 176, 3, 2, 2, 2, 178, 15, 3, 2, 2, 2, 179, 180, 7, 6, 2, 2, 180, 184, 7, 56, 2, 2, 181, 183, 5, 18, 10, 2, 182, 181, 3, 2, 2, 2, 183, 186, 3, 2, 2, 2, 184, 182, 3, 2, 2, 2, 184, 185, 3, 2, 2, 2, 185, 190, 3, 2, 2, 2, 186, 184, 3, 2, 2, 2, 187, 189, 5, 54, 28, 2, 188, 187, 3, 2, 2, 2, 189, 192, 3, 2, 2, 2, 190, 188, 3, 2, 2, 2, 190, 191, 3, 2, 2, 2, 191, 17, 3, 2, 2, 2, 192, 190, 3, 2, 2, 2, 193, 196, 5, 46, 24, 2, 194, 196, 5, 36, 19, 2, 195, 193, 3, 2, 2, 2, 195, 194, 3, 2, 2, 2, 196, 19, 3, 2, 2, 2, 197, 198, 7, 8, 2, 2, 198, 200, 7, 56, 2, 2, 199, 201, 5, 22, 12, 2, 200, 199, 3, 2, 2, 2, 201, 202, 3, 2, 2, 2, 202, 200, 3, 2, 2, 2, 202, 203, 3, 2, 2, 2, 203, 21, 3, 2, 2, 2, 204, 209, 5, 38, 20, 2, 205, 209, 5, 40, 21, 2, 206, 209, 5, 42, 22, 2, 207, 209, 5, 44, 23, 2, 208, 204, 3, 2, 2, 2, 208, 205, 3, 2, 2, 2, 208, 206, 3, 2, 2, 2, 208, 207, 3, 2, 2, 2, 209, 23, 3, 2, 2, 2, 210, 211, 7, 9, 2, 2, 211, 215, 7, 56, 2, 2, 212, 214, 5, 26, 14, 2, 213, 212, 3, 2, 2, 2, 214, 217, 3, 2, 2, 2, 215, 213, 3, 2, 2, 2, 215, 216, 3, 2, 2, 2, 216, 222, 3, 2, 2, 2, 217, 215, 3, 2, 2, 2, 218, 221, 5, 62, 32, 2, 219, 221, 5, 64, 33, 2, 220, 218, 3, 2, 2, 2, 220, 219, 3, 2, 2, 2, 221, 224, 3, 2, 2, 2, 222, 220, 3, 2, 2, 2, 222, 223, 3, 2, 2, 2, 223, 25, 3, 2, 2, 2, 224, 222, 3, 2, 2, 2, 225, 229, 5, 34, 18, 2, 226, 229, 5, 36, 19, 2, 227, 229, 5, 38, 20, 2, 228, 225, 3, 2, 2, 2, 228, 226, 3, 2, 2, 2, 228, 227, 3, 2, 2, 2, 229, 27, 3, 2, 2, 2, 230, 231, 7, 10, 2, 2, 231, 235, 7, 56, 2, 2, 232, 234, 5, 30, 16, 2, 233, 232, 3, 2, 2, 2, 234, 237, 3, 2, 2, 2, 235, 233, 3, 2, 2, 2, 235, 236, 3, 2, 2, 2, 236, 241, 3, 2, 2, 2, 237, 235, 3, 2, 2, 2, 238, 240, 5, 100, 51, 2, 239, 238, 3, 2, 2, 2, 240, 243, 3, 2, 2, 2, 241, 239, 3, 2, 2, 2, 241, 242, 3, 2, 2, 2, 242, 29, 3, 2, 2, 2, 243, 241, 3, 2, 2, 2, 244, 248, 5, 34, 18, 2, 245, 248, 5, 36, 19, 2, 246, 248, 5, 38, 20, 2, 247, 244, 3, 2, 2, 2, 247, 245, 3, 2, 2, 2, 247, 246, 3, 2, 2, 2, 248, 31, 3, 2, 2, 2, 249, 250, 7, 11, 2, 2, 250, 251, 7, 56, 2, 2, 251, 33, 3, 2, 2, 2, 252, 253, 7, 12, 2, 2, 253, 254, 7, 56, 2, 2, 254, 35, 3, 2, 2, 2, 255, 256, 7, 13, 2, 2, 256, 257, 7, 42, 2, 2, 257, 37, 3, 2, 2, 2, 258, 259, 7, 14, 2, 2, 259, 260, 9, 2, 2, 2, 260, 39, 3, 2, 2, 2, 261, 262, 7, 15, 2, 2, 262, 263, 7, 42, 2, 2, 263, 41, 3, 2, 2, 2, 264, 265, 7, 16, 2, 2, 265, 266, 7, 42, 2, 2, 266, 43, 3, 2, 2, 2, 267, 268, 7, 17, 2, 2, 268, 269, 7, 46, 2, 2, 269, 45, 3, 2, 2, 2, 270, 271, 7, 7, 2, 2, 271, 272, 7, 56, 2, 2, 272, 47, 3, 2, 2, 2, 273, 274, 7, 39, 2, 2, 274, 275, 5, 84, 43, 2, 275, 279, 7, 50, 2, 2, 276, 278, 5, 90, 46, 2, 277, 276, 3, 2, 2, 2, 278, 281, 3, 2, 2, 2, 279, 277, 3, 2, 2, 2, 279, 280, 3, 2, 2, 2, 280, 49, 3, 2, 2, 2, 281, 279, 3, 2, 2, 2, 282, 285, 7, 39, 2, 2, 283, 286, 5, 84, 43, 2, 284, 286, 5, 86, 44, 2, 285, 283, 3, 2, 2, 2, 285, 284, 3, 2, 2, 2, 286, 288, 3, 2, 2, 2, 287, 289, 5, 90, 46, 2, 288, 287, 3, 2, 2, 2, 289, 290, 3, 2, 2, 2, 290, 288, 3, 2, 2, 2, 290, 291, 3, 2, 2, 2, 291, 51, 3, 2, 2, 2, 292, 293, 7, 39, 2, 2, 293, 294, 5, 84, 43, 2, 294, 295, 7, 21, 2, 2, 295, 297, 7, 56, 2, 2, 296, 298, 5, 92, 47, 2, 297, 296, 3, 2, 2, 2, 297, 298, 3, 2, 2, 2, 298, 53, 3, 2, 2, 2, 299, 300, 7, 39, 2, 2, 300, 301, 5, 84, 43, 2, 301, 302, 7, 38, 2, 2, 302, 303, 5, 94, 48, 2, 303, 55, 3, 2, 2, 2, 304, 305, 7, 39, 2, 2, 305, 306, 5, 84, 43, 2, 306, 307, 7, 26, 2, 2, 307, 312, 5, 96, 49, 2, 308, 309, 7, 27, 2, 2, 309, 311, 5, 96, 49, 2, 310, 308, 3, 2, 2, 2, 311, 314, 3, 2, 2, 2, 312, 310, 3, 2, 2, 2, 312, 313, 3, 2, 2, 2, 313, 57, 3, 2, 2, 2, 314, 312, 3, 2, 2, 2, 315, 316, 7, 39, 2, 2, 316, 317, 5, 84, 43, 2, 317, 318, 7, 28, 2, 2, 318, 323, 5, 112, 57, 2, 319, 320, 7, 29, 2, 2, 320, 322, 5, 112, 57, 2, 321, 319, 3, 2, 2, 2, 322, 325, 3, 2, 2, 2, 323, 321, 3, 2, 2, 2, 323, 324, 3, 2, 2, 2, 324, 59, 3, 2, 2, 2, 325, 323, 3, 2, 2, 2, 326, 328, 7, 39, 2, 2, 327, 329, 5, 84, 43, 2, 328, 327, 3, 2, 2, 2, 328, 329, 3, 2, 2, 2, 329, 330, 3, 2, 2, 2, 330, 331, 7, 30, 2, 2, 331, 336, 7, 56, 2, 2, 332, 333, 7, 27, 2, 2, 333, 335, 7, 56, 2, 2, 334, 332, 3, 2, 2, 2, 335, 338, 3, 2, 2, 2, 336, 334, 3, 2, 2, 2, 336, 337, 3, 2, 2, 2, 337, 61, 3, 2, 2, 2, 338, 336, 3, 2, 2, 2, 339, 341, 7, 39, 2, 2, 340, 342, 5, 84, 43, 2, 341, 340, 3, 2, 2, 2, 341, 342, 3, 2, 2, 2, 342, 343, 3, 2, 2, 2, 343, 344, 5, 88, 45, 2, 344, 345, 7, 38, 2, 2, 345, 346, 5, 94, 48, 2, 346, 63, 3, 2, 2, 2, 347, 349, 7, 39, 2, 2, 348, 350, 7, 33, 2, 2, 349, 348, 3, 2, 2, 2, 349, 350, 3, 2, 2, 2, 350, 353, 3, 2, 2, 2, 351, 354, 5, 66, 34, 2, 352, 354, 5, 68, 35, 2, 353, 351, 3, 2, 2, 2, 353, 352, 3, 2, 2, 2, 354, 65, 3, 2, 2, 2, 355, 357, 5, 98, 50, 2, 356, 358, 5, 70, 36, 2, 357, 356, 3, 2, 2, 2, 357, 358, 3, 2, 2, 2, 358, 362, 3, 2, 2, 2, 359, 360, 7, 54, 2, 2, 360, 362, 5, 70, 36, 2, 361, 355, 3, 2, 2, 2, 361, 359, 3, 2, 2, 2, 362, 67, 3, 2, 2, 2, 363, 364, 7, 34, 2, 2, 364, 367, 5, 70, 36, 2, 365, 366, 7, 35, 2, 2, 366, 368, 5, 76, 39, 2, 367, 365, 3, 2, 2, 2, 367, 368, 3, 2, 2, 2, 368, 69, 3, 2, 2, 2, 369, 380, 7, 21, 2, 2, 370, 373, 5, 72, 37, 2, 371, 372, 7, 27, 2, 2, 372, 374, 5, 74, 38, 2, 373, 371, 3, 2, 2, 2, 373, 374, 3, 2, 2, 2, 374, 381, 3, 2, 2, 2, 375, 378, 5, 74, 38, 2, 376, 377, 7, 27, 2, 2, 377, 379, 5, 72, 37, 2, 378, 376, 3, 2, 2, 2, 378, 379, 3, 2, 2, 2, 379, 381, 3, 2, 2, 2, 380, 370, 3, 2, 2, 2, 380, 375, 3, 2, 2, 2, 381, 71, 3, 2, 2, 2, 382, 383, 7, 37, 2, 2, 383, 384, 7, 56, 2, 2, 384, 73, 3, 2, 2, 2, 385, 386, 7, 36, 2, 2, 386, 387, 9, 3, 2, 2, 387, 75, 3, 2, 2, 2, 388, 389, 5, 78, 40, 2, 389, 390, 7, 27, 2, 2, 390, 392, 3, 2, 2, 2, 391, 388, 3, 2, 2, 2, 392, 395, 3, 2, 2, 2, 393, 391, 3, 2, 2, 2, 393, 394, 3, 2, 2, 2, 394, 396, 3, 2, 2, 2, 395, 393, 3, 2, 2, 2, 396, 397, 5, 78, 40, 2, 397, 77, 3, 2, 2, 2, 398, 399, 7, 56, 2, 2, 399, 401, 5, 80, 41, 2, 400, 402, 5, 82, 42, 2, 401, 400, 3, 2, 2, 2, 401, 402, 3, 2, 2, 2, 402, 79, 3, 2, 2, 2, 403, 404, 9, 4, 2, 2, 404, 81, 3, 2, 2, 2, 405, 411, 5, 98, 50, 2, 406, 411, 7, 31, 2, 2, 407, 411, 7, 32, 2, 2, 408, 411, 7, 53, 2, 2, 409, 411, 7, 42, 2, 2, 410, 405, 3, 2, 2, 2, 410, 406, 3, 2, 2, 2, 410, 407, 3, 2, 2, 2, 410, 408, 3, 2, 2, 2, 410, 409, 3, 2, 2, 2, 411, 83, 3, 2, 2, 2, 412, 413, 7, 56, 2, 2, 413, 85, 3, 2, 2, 2, 414, 415, 7, 55, 2, 2, 415, 87, 3, 2, 2, 2, 416, 417, 7, 52, 2, 2, 417, 89, 3, 2, 2, 2, 418, 419, 9, 5, 2, 2, 419, 91, 3, 2, 2, 2, 420, 421, 9, 6, 2, 2, 421, 93, 3, 2, 2, 2, 422, 433, 7, 42, 2, 2, 423, 433, 7, 43, 2, 2, 424, 433, 7, 44, 2, 2, 425, 433, 7, 48, 2, 2, 426, 433, 7, 49, 2, 2, 427, 433, 5, 106, 54, 2, 428, 433, 5, 98, 50, 2, 429, 433, 5, 102, 52, 2, 430, 433, 5, 104, 53, 2, 431, 433, 5, 110, 56, 2, 432, 422, 3, 2, 2, 2, 432, 423, 3, 2, 2, 2, 432, 424, 3, 2, 2, 2, 432, 425, 3, 2, 2, 2, 432, 426, 3, 2, 2, 2, 432, 427, 3, 2, 2, 2, 432, 428, 3, 2, 2, 2, 432, 429, 3, 2, 2, 2, 432, 430, 3, 2, 2, 2, 432, 431, 3, 2, 2, 2, 433, 95, 3, 2, 2, 2, 434, 435, 7, 56, 2, 2, 435, 439, 7, 50, 2, 2, 436, 438, 5, 90, 46, 2, 437, 436, 3, 2, 2, 2, 438, 441, 3, 2, 2, 2, 439, 437, 3, 2, 2, 2, 439, 440, 3, 2, 2, 2, 440, 97, 3, 2, 2, 2, 441, 439, 3, 2, 2, 2, 442, 444, 7, 46, 2, 2, 443, 445, 7, 42, 2, 2, 444, 443, 3, 2, 2, 2, 444, 445, 3, 2, 2, 2, 445, 99, 3, 2, 2, 2, 446, 447, 7, 39, 2, 2, 447, 449, 5, 98, 50, 2, 448, 450, 7, 42, 2, 2, 449, 448, 3, 2, 2, 2, 449, 450, 3, 2, 2, 2, 450, 101, 3, 2, 2, 2, 451, 452, 7, 44, 2, 2, 452, 453, 7, 45, 2, 2, 453, 103, 3, 2, 2, 2, 454, 455, 5, 108, 55, 2, 455, 456, 7, 40, 2, 2, 456, 457, 5, 108, 55, 2, 457, 105, 3, 2, 2, 2, 458, 460, 7, 51, 2, 2, 459, 461, 7, 42, 2, 2, 460, 459, 3, 2, 2, 2, 460, 461, 3, 2, 2, 2, 461, 107, 3, 2, 2, 2, 462, 465, 7, 44, 2, 2, 463, 465, 5, 102, 52, 2, 464, 462, 3, 2, 2, 2, 464, 463, 3, 2, 2, 2, 465, 109, 3, 2, 2, 2, 466, 467, 9, 7, 2, 2, 467, 111, 3, 2, 2, 2, 468, 471, 7, 56, 2, 2, 469, 471, 5, 106, 54, 2, 470, 468, 3, 2, 2, 2, 470, 469, 3, 2, 2, 2, 471, 113, 3, 2, 2, 2, 49, 117, 129, 141, 146, 154, 160, 167, 177, 184, 190, 195, 202, 208, 215, 220, 222, 228, 235, 241, 247, 279, 285, 290, 297, 312, 323, 328, 336, 341, 349, 353, 357, 361, 367, 373, 378, 380, 393, 401, 410, 432, 439, 444, 449, 460, 464, 470]
\ No newline at end of file
diff --git a/src/import/generated/FSHParser.js b/src/import/generated/FSHParser.js
index 48ffdf0..aadc342 100644
--- a/src/import/generated/FSHParser.js
+++ b/src/import/generated/FSHParser.js
@@ -8,7 +8,7 @@ var grammarFileName = "FSH.g4";
 
 
 var serializedATN = ["\u0003\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964",
-    "\u0003;\u01d8\u0004\u0002\t\u0002\u0004\u0003\t\u0003\u0004\u0004\t",
+    "\u0003;\u01d9\u0004\u0002\t\u0002\u0004\u0003\t\u0003\u0004\u0004\t",
     "\u0004\u0004\u0005\t\u0005\u0004\u0006\t\u0006\u0004\u0007\t\u0007\u0004",
     "\b\t\b\u0004\t\t\t\u0004\n\t\n\u0004\u000b\t\u000b\u0004\f\t\f\u0004",
     "\r\t\r\u0004\u000e\t\u000e\u0004\u000f\t\u000f\u0004\u0010\t\u0010\u0004",
@@ -36,71 +36,71 @@ var serializedATN = ["\u0003\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964",
     "\u000b\u0003\u000b\u0003\u000b\u0006\u000b\u00c9\n\u000b\r\u000b\u000e",
     "\u000b\u00ca\u0003\f\u0003\f\u0003\f\u0003\f\u0005\f\u00d1\n\f\u0003",
     "\r\u0003\r\u0003\r\u0007\r\u00d6\n\r\f\r\u000e\r\u00d9\u000b\r\u0003",
-    "\r\u0007\r\u00dc\n\r\f\r\u000e\r\u00df\u000b\r\u0003\u000e\u0003\u000e",
-    "\u0003\u000e\u0005\u000e\u00e4\n\u000e\u0003\u000f\u0003\u000f\u0003",
-    "\u000f\u0007\u000f\u00e9\n\u000f\f\u000f\u000e\u000f\u00ec\u000b\u000f",
-    "\u0003\u000f\u0007\u000f\u00ef\n\u000f\f\u000f\u000e\u000f\u00f2\u000b",
-    "\u000f\u0003\u0010\u0003\u0010\u0003\u0010\u0005\u0010\u00f7\n\u0010",
-    "\u0003\u0011\u0003\u0011\u0003\u0011\u0003\u0012\u0003\u0012\u0003\u0012",
-    "\u0003\u0013\u0003\u0013\u0003\u0013\u0003\u0014\u0003\u0014\u0003\u0014",
-    "\u0003\u0015\u0003\u0015\u0003\u0015\u0003\u0016\u0003\u0016\u0003\u0016",
-    "\u0003\u0017\u0003\u0017\u0003\u0017\u0003\u0018\u0003\u0018\u0003\u0018",
-    "\u0003\u0019\u0003\u0019\u0003\u0019\u0003\u0019\u0007\u0019\u0115\n",
-    "\u0019\f\u0019\u000e\u0019\u0118\u000b\u0019\u0003\u001a\u0003\u001a",
-    "\u0003\u001a\u0005\u001a\u011d\n\u001a\u0003\u001a\u0006\u001a\u0120",
-    "\n\u001a\r\u001a\u000e\u001a\u0121\u0003\u001b\u0003\u001b\u0003\u001b",
-    "\u0003\u001b\u0003\u001b\u0005\u001b\u0129\n\u001b\u0003\u001c\u0003",
+    "\r\u0003\r\u0007\r\u00dd\n\r\f\r\u000e\r\u00e0\u000b\r\u0003\u000e\u0003",
+    "\u000e\u0003\u000e\u0005\u000e\u00e5\n\u000e\u0003\u000f\u0003\u000f",
+    "\u0003\u000f\u0007\u000f\u00ea\n\u000f\f\u000f\u000e\u000f\u00ed\u000b",
+    "\u000f\u0003\u000f\u0007\u000f\u00f0\n\u000f\f\u000f\u000e\u000f\u00f3",
+    "\u000b\u000f\u0003\u0010\u0003\u0010\u0003\u0010\u0005\u0010\u00f8\n",
+    "\u0010\u0003\u0011\u0003\u0011\u0003\u0011\u0003\u0012\u0003\u0012\u0003",
+    "\u0012\u0003\u0013\u0003\u0013\u0003\u0013\u0003\u0014\u0003\u0014\u0003",
+    "\u0014\u0003\u0015\u0003\u0015\u0003\u0015\u0003\u0016\u0003\u0016\u0003",
+    "\u0016\u0003\u0017\u0003\u0017\u0003\u0017\u0003\u0018\u0003\u0018\u0003",
+    "\u0018\u0003\u0019\u0003\u0019\u0003\u0019\u0003\u0019\u0007\u0019\u0116",
+    "\n\u0019\f\u0019\u000e\u0019\u0119\u000b\u0019\u0003\u001a\u0003\u001a",
+    "\u0003\u001a\u0005\u001a\u011e\n\u001a\u0003\u001a\u0006\u001a\u0121",
+    "\n\u001a\r\u001a\u000e\u001a\u0122\u0003\u001b\u0003\u001b\u0003\u001b",
+    "\u0003\u001b\u0003\u001b\u0005\u001b\u012a\n\u001b\u0003\u001c\u0003",
     "\u001c\u0003\u001c\u0003\u001c\u0003\u001c\u0003\u001d\u0003\u001d\u0003",
-    "\u001d\u0003\u001d\u0003\u001d\u0003\u001d\u0007\u001d\u0136\n\u001d",
-    "\f\u001d\u000e\u001d\u0139\u000b\u001d\u0003\u001e\u0003\u001e\u0003",
-    "\u001e\u0003\u001e\u0003\u001e\u0003\u001e\u0007\u001e\u0141\n\u001e",
-    "\f\u001e\u000e\u001e\u0144\u000b\u001e\u0003\u001f\u0003\u001f\u0005",
-    "\u001f\u0148\n\u001f\u0003\u001f\u0003\u001f\u0003\u001f\u0003\u001f",
-    "\u0007\u001f\u014e\n\u001f\f\u001f\u000e\u001f\u0151\u000b\u001f\u0003",
-    " \u0003 \u0005 \u0155\n \u0003 \u0003 \u0003 \u0003 \u0003!\u0003!\u0005",
-    "!\u015d\n!\u0003!\u0003!\u0005!\u0161\n!\u0003\"\u0003\"\u0005\"\u0165",
-    "\n\"\u0003\"\u0003\"\u0005\"\u0169\n\"\u0003#\u0003#\u0003#\u0003#\u0005",
-    "#\u016f\n#\u0003$\u0003$\u0003$\u0003$\u0005$\u0175\n$\u0003$\u0003",
-    "$\u0003$\u0005$\u017a\n$\u0005$\u017c\n$\u0003%\u0003%\u0003%\u0003",
-    "&\u0003&\u0003&\u0003\'\u0003\'\u0003\'\u0007\'\u0187\n\'\f\'\u000e",
-    "\'\u018a\u000b\'\u0003\'\u0003\'\u0003(\u0003(\u0003(\u0005(\u0191\n",
-    "(\u0003)\u0003)\u0003*\u0003*\u0003*\u0003*\u0003*\u0005*\u019a\n*\u0003",
+    "\u001d\u0003\u001d\u0003\u001d\u0003\u001d\u0007\u001d\u0137\n\u001d",
+    "\f\u001d\u000e\u001d\u013a\u000b\u001d\u0003\u001e\u0003\u001e\u0003",
+    "\u001e\u0003\u001e\u0003\u001e\u0003\u001e\u0007\u001e\u0142\n\u001e",
+    "\f\u001e\u000e\u001e\u0145\u000b\u001e\u0003\u001f\u0003\u001f\u0005",
+    "\u001f\u0149\n\u001f\u0003\u001f\u0003\u001f\u0003\u001f\u0003\u001f",
+    "\u0007\u001f\u014f\n\u001f\f\u001f\u000e\u001f\u0152\u000b\u001f\u0003",
+    " \u0003 \u0005 \u0156\n \u0003 \u0003 \u0003 \u0003 \u0003!\u0003!\u0005",
+    "!\u015e\n!\u0003!\u0003!\u0005!\u0162\n!\u0003\"\u0003\"\u0005\"\u0166",
+    "\n\"\u0003\"\u0003\"\u0005\"\u016a\n\"\u0003#\u0003#\u0003#\u0003#\u0005",
+    "#\u0170\n#\u0003$\u0003$\u0003$\u0003$\u0005$\u0176\n$\u0003$\u0003",
+    "$\u0003$\u0005$\u017b\n$\u0005$\u017d\n$\u0003%\u0003%\u0003%\u0003",
+    "&\u0003&\u0003&\u0003\'\u0003\'\u0003\'\u0007\'\u0188\n\'\f\'\u000e",
+    "\'\u018b\u000b\'\u0003\'\u0003\'\u0003(\u0003(\u0003(\u0005(\u0192\n",
+    "(\u0003)\u0003)\u0003*\u0003*\u0003*\u0003*\u0003*\u0005*\u019b\n*\u0003",
     "+\u0003+\u0003,\u0003,\u0003-\u0003-\u0003.\u0003.\u0003/\u0003/\u0003",
     "0\u00030\u00030\u00030\u00030\u00030\u00030\u00030\u00030\u00030\u0005",
-    "0\u01b0\n0\u00031\u00031\u00031\u00071\u01b5\n1\f1\u000e1\u01b8\u000b",
-    "1\u00032\u00032\u00052\u01bc\n2\u00033\u00033\u00033\u00053\u01c1\n",
+    "0\u01b1\n0\u00031\u00031\u00031\u00071\u01b6\n1\f1\u000e1\u01b9\u000b",
+    "1\u00032\u00032\u00052\u01bd\n2\u00033\u00033\u00033\u00053\u01c2\n",
     "3\u00034\u00034\u00034\u00035\u00035\u00035\u00035\u00036\u00036\u0005",
-    "6\u01cc\n6\u00037\u00037\u00057\u01d0\n7\u00038\u00038\u00039\u0003",
-    "9\u00059\u01d6\n9\u00039\u0002\u0002:\u0002\u0004\u0006\b\n\f\u000e",
+    "6\u01cd\n6\u00037\u00037\u00057\u01d1\n7\u00038\u00038\u00039\u0003",
+    "9\u00059\u01d7\n9\u00039\u0002\u0002:\u0002\u0004\u0006\b\n\f\u000e",
     "\u0010\u0012\u0014\u0016\u0018\u001a\u001c\u001e \"$&(*,.02468:<>@B",
     "DFHJLNPRTVXZ\\^`bdfhjlnp\u0002\b\u0003\u0002*+\u0003\u000278\u0004\u0002",
     "&&88\u0003\u0002\u0012\u0014\u0003\u0002\u0016\u0019\u0003\u0002\u001f",
-    " \u0002\u01e9\u0002u\u0003\u0002\u0002\u0002\u0004\u0081\u0003\u0002",
+    " \u0002\u01eb\u0002u\u0003\u0002\u0002\u0002\u0004\u0081\u0003\u0002",
     "\u0002\u0002\u0006\u0083\u0003\u0002\u0002\u0002\b\u0088\u0003\u0002",
     "\u0002\u0002\n\u0095\u0003\u0002\u0002\u0002\f\u00a7\u0003\u0002\u0002",
     "\u0002\u000e\u00b1\u0003\u0002\u0002\u0002\u0010\u00b3\u0003\u0002\u0002",
     "\u0002\u0012\u00c3\u0003\u0002\u0002\u0002\u0014\u00c5\u0003\u0002\u0002",
     "\u0002\u0016\u00d0\u0003\u0002\u0002\u0002\u0018\u00d2\u0003\u0002\u0002",
-    "\u0002\u001a\u00e3\u0003\u0002\u0002\u0002\u001c\u00e5\u0003\u0002\u0002",
-    "\u0002\u001e\u00f6\u0003\u0002\u0002\u0002 \u00f8\u0003\u0002\u0002",
-    "\u0002\"\u00fb\u0003\u0002\u0002\u0002$\u00fe\u0003\u0002\u0002\u0002",
-    "&\u0101\u0003\u0002\u0002\u0002(\u0104\u0003\u0002\u0002\u0002*\u0107",
-    "\u0003\u0002\u0002\u0002,\u010a\u0003\u0002\u0002\u0002.\u010d\u0003",
-    "\u0002\u0002\u00020\u0110\u0003\u0002\u0002\u00022\u0119\u0003\u0002",
-    "\u0002\u00024\u0123\u0003\u0002\u0002\u00026\u012a\u0003\u0002\u0002",
-    "\u00028\u012f\u0003\u0002\u0002\u0002:\u013a\u0003\u0002\u0002\u0002",
-    "<\u0145\u0003\u0002\u0002\u0002>\u0152\u0003\u0002\u0002\u0002@\u015a",
-    "\u0003\u0002\u0002\u0002B\u0168\u0003\u0002\u0002\u0002D\u016a\u0003",
-    "\u0002\u0002\u0002F\u0170\u0003\u0002\u0002\u0002H\u017d\u0003\u0002",
-    "\u0002\u0002J\u0180\u0003\u0002\u0002\u0002L\u0188\u0003\u0002\u0002",
-    "\u0002N\u018d\u0003\u0002\u0002\u0002P\u0192\u0003\u0002\u0002\u0002",
-    "R\u0199\u0003\u0002\u0002\u0002T\u019b\u0003\u0002\u0002\u0002V\u019d",
-    "\u0003\u0002\u0002\u0002X\u019f\u0003\u0002\u0002\u0002Z\u01a1\u0003",
-    "\u0002\u0002\u0002\\\u01a3\u0003\u0002\u0002\u0002^\u01af\u0003\u0002",
-    "\u0002\u0002`\u01b1\u0003\u0002\u0002\u0002b\u01b9\u0003\u0002\u0002",
-    "\u0002d\u01bd\u0003\u0002\u0002\u0002f\u01c2\u0003\u0002\u0002\u0002",
-    "h\u01c5\u0003\u0002\u0002\u0002j\u01c9\u0003\u0002\u0002\u0002l\u01cf",
-    "\u0003\u0002\u0002\u0002n\u01d1\u0003\u0002\u0002\u0002p\u01d5\u0003",
+    "\u0002\u001a\u00e4\u0003\u0002\u0002\u0002\u001c\u00e6\u0003\u0002\u0002",
+    "\u0002\u001e\u00f7\u0003\u0002\u0002\u0002 \u00f9\u0003\u0002\u0002",
+    "\u0002\"\u00fc\u0003\u0002\u0002\u0002$\u00ff\u0003\u0002\u0002\u0002",
+    "&\u0102\u0003\u0002\u0002\u0002(\u0105\u0003\u0002\u0002\u0002*\u0108",
+    "\u0003\u0002\u0002\u0002,\u010b\u0003\u0002\u0002\u0002.\u010e\u0003",
+    "\u0002\u0002\u00020\u0111\u0003\u0002\u0002\u00022\u011a\u0003\u0002",
+    "\u0002\u00024\u0124\u0003\u0002\u0002\u00026\u012b\u0003\u0002\u0002",
+    "\u00028\u0130\u0003\u0002\u0002\u0002:\u013b\u0003\u0002\u0002\u0002",
+    "<\u0146\u0003\u0002\u0002\u0002>\u0153\u0003\u0002\u0002\u0002@\u015b",
+    "\u0003\u0002\u0002\u0002B\u0169\u0003\u0002\u0002\u0002D\u016b\u0003",
+    "\u0002\u0002\u0002F\u0171\u0003\u0002\u0002\u0002H\u017e\u0003\u0002",
+    "\u0002\u0002J\u0181\u0003\u0002\u0002\u0002L\u0189\u0003\u0002\u0002",
+    "\u0002N\u018e\u0003\u0002\u0002\u0002P\u0193\u0003\u0002\u0002\u0002",
+    "R\u019a\u0003\u0002\u0002\u0002T\u019c\u0003\u0002\u0002\u0002V\u019e",
+    "\u0003\u0002\u0002\u0002X\u01a0\u0003\u0002\u0002\u0002Z\u01a2\u0003",
+    "\u0002\u0002\u0002\\\u01a4\u0003\u0002\u0002\u0002^\u01b0\u0003\u0002",
+    "\u0002\u0002`\u01b2\u0003\u0002\u0002\u0002b\u01ba\u0003\u0002\u0002",
+    "\u0002d\u01be\u0003\u0002\u0002\u0002f\u01c3\u0003\u0002\u0002\u0002",
+    "h\u01c6\u0003\u0002\u0002\u0002j\u01ca\u0003\u0002\u0002\u0002l\u01d0",
+    "\u0003\u0002\u0002\u0002n\u01d2\u0003\u0002\u0002\u0002p\u01d6\u0003",
     "\u0002\u0002\u0002rt\u0005\u0004\u0003\u0002sr\u0003\u0002\u0002\u0002",
     "tw\u0003\u0002\u0002\u0002us\u0003\u0002\u0002\u0002uv\u0003\u0002\u0002",
     "\u0002vx\u0003\u0002\u0002\u0002wu\u0003\u0002\u0002\u0002xy\u0007\u0002",
@@ -164,151 +164,153 @@ var serializedATN = ["\u0003\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964",
     "\u00d3\u00d7\u00078\u0002\u0002\u00d4\u00d6\u0005\u001a\u000e\u0002",
     "\u00d5\u00d4\u0003\u0002\u0002\u0002\u00d6\u00d9\u0003\u0002\u0002\u0002",
     "\u00d7\u00d5\u0003\u0002\u0002\u0002\u00d7\u00d8\u0003\u0002\u0002\u0002",
-    "\u00d8\u00dd\u0003\u0002\u0002\u0002\u00d9\u00d7\u0003\u0002\u0002\u0002",
-    "\u00da\u00dc\u0005@!\u0002\u00db\u00da\u0003\u0002\u0002\u0002\u00dc",
-    "\u00df\u0003\u0002\u0002\u0002\u00dd\u00db\u0003\u0002\u0002\u0002\u00dd",
-    "\u00de\u0003\u0002\u0002\u0002\u00de\u0019\u0003\u0002\u0002\u0002\u00df",
-    "\u00dd\u0003\u0002\u0002\u0002\u00e0\u00e4\u0005\"\u0012\u0002\u00e1",
-    "\u00e4\u0005$\u0013\u0002\u00e2\u00e4\u0005&\u0014\u0002\u00e3\u00e0",
-    "\u0003\u0002\u0002\u0002\u00e3\u00e1\u0003\u0002\u0002\u0002\u00e3\u00e2",
-    "\u0003\u0002\u0002\u0002\u00e4\u001b\u0003\u0002\u0002\u0002\u00e5\u00e6",
-    "\u0007\n\u0002\u0002\u00e6\u00ea\u00078\u0002\u0002\u00e7\u00e9\u0005",
-    "\u001e\u0010\u0002\u00e8\u00e7\u0003\u0002\u0002\u0002\u00e9\u00ec\u0003",
-    "\u0002\u0002\u0002\u00ea\u00e8\u0003\u0002\u0002\u0002\u00ea\u00eb\u0003",
-    "\u0002\u0002\u0002\u00eb\u00f0\u0003\u0002\u0002\u0002\u00ec\u00ea\u0003",
-    "\u0002\u0002\u0002\u00ed\u00ef\u0005d3\u0002\u00ee\u00ed\u0003\u0002",
-    "\u0002\u0002\u00ef\u00f2\u0003\u0002\u0002\u0002\u00f0\u00ee\u0003\u0002",
-    "\u0002\u0002\u00f0\u00f1\u0003\u0002\u0002\u0002\u00f1\u001d\u0003\u0002",
-    "\u0002\u0002\u00f2\u00f0\u0003\u0002\u0002\u0002\u00f3\u00f7\u0005\"",
-    "\u0012\u0002\u00f4\u00f7\u0005$\u0013\u0002\u00f5\u00f7\u0005&\u0014",
-    "\u0002\u00f6\u00f3\u0003\u0002\u0002\u0002\u00f6\u00f4\u0003\u0002\u0002",
-    "\u0002\u00f6\u00f5\u0003\u0002\u0002\u0002\u00f7\u001f\u0003\u0002\u0002",
-    "\u0002\u00f8\u00f9\u0007\u000b\u0002\u0002\u00f9\u00fa\u00078\u0002",
-    "\u0002\u00fa!\u0003\u0002\u0002\u0002\u00fb\u00fc\u0007\f\u0002\u0002",
-    "\u00fc\u00fd\u00078\u0002\u0002\u00fd#\u0003\u0002\u0002\u0002\u00fe",
-    "\u00ff\u0007\r\u0002\u0002\u00ff\u0100\u0007*\u0002\u0002\u0100%\u0003",
-    "\u0002\u0002\u0002\u0101\u0102\u0007\u000e\u0002\u0002\u0102\u0103\t",
-    "\u0002\u0002\u0002\u0103\'\u0003\u0002\u0002\u0002\u0104\u0105\u0007",
-    "\u000f\u0002\u0002\u0105\u0106\u0007*\u0002\u0002\u0106)\u0003\u0002",
-    "\u0002\u0002\u0107\u0108\u0007\u0010\u0002\u0002\u0108\u0109\u0007*",
-    "\u0002\u0002\u0109+\u0003\u0002\u0002\u0002\u010a\u010b\u0007\u0011",
-    "\u0002\u0002\u010b\u010c\u0007.\u0002\u0002\u010c-\u0003\u0002\u0002",
-    "\u0002\u010d\u010e\u0007\u0007\u0002\u0002\u010e\u010f\u00078\u0002",
-    "\u0002\u010f/\u0003\u0002\u0002\u0002\u0110\u0111\u0007\'\u0002\u0002",
-    "\u0111\u0112\u0005T+\u0002\u0112\u0116\u00072\u0002\u0002\u0113\u0115",
-    "\u0005Z.\u0002\u0114\u0113\u0003\u0002\u0002\u0002\u0115\u0118\u0003",
-    "\u0002\u0002\u0002\u0116\u0114\u0003\u0002\u0002\u0002\u0116\u0117\u0003",
-    "\u0002\u0002\u0002\u01171\u0003\u0002\u0002\u0002\u0118\u0116\u0003",
-    "\u0002\u0002\u0002\u0119\u011c\u0007\'\u0002\u0002\u011a\u011d\u0005",
-    "T+\u0002\u011b\u011d\u0005V,\u0002\u011c\u011a\u0003\u0002\u0002\u0002",
-    "\u011c\u011b\u0003\u0002\u0002\u0002\u011d\u011f\u0003\u0002\u0002\u0002",
-    "\u011e\u0120\u0005Z.\u0002\u011f\u011e\u0003\u0002\u0002\u0002\u0120",
-    "\u0121\u0003\u0002\u0002\u0002\u0121\u011f\u0003\u0002\u0002\u0002\u0121",
-    "\u0122\u0003\u0002\u0002\u0002\u01223\u0003\u0002\u0002\u0002\u0123",
-    "\u0124\u0007\'\u0002\u0002\u0124\u0125\u0005T+\u0002\u0125\u0126\u0007",
-    "\u0015\u0002\u0002\u0126\u0128\u00078\u0002\u0002\u0127\u0129\u0005",
-    "\\/\u0002\u0128\u0127\u0003\u0002\u0002\u0002\u0128\u0129\u0003\u0002",
-    "\u0002\u0002\u01295\u0003\u0002\u0002\u0002\u012a\u012b\u0007\'\u0002",
-    "\u0002\u012b\u012c\u0005T+\u0002\u012c\u012d\u0007&\u0002\u0002\u012d",
-    "\u012e\u0005^0\u0002\u012e7\u0003\u0002\u0002\u0002\u012f\u0130\u0007",
-    "\'\u0002\u0002\u0130\u0131\u0005T+\u0002\u0131\u0132\u0007\u001a\u0002",
-    "\u0002\u0132\u0137\u0005`1\u0002\u0133\u0134\u0007\u001b\u0002\u0002",
-    "\u0134\u0136\u0005`1\u0002\u0135\u0133\u0003\u0002\u0002\u0002\u0136",
-    "\u0139\u0003\u0002\u0002\u0002\u0137\u0135\u0003\u0002\u0002\u0002\u0137",
-    "\u0138\u0003\u0002\u0002\u0002\u01389\u0003\u0002\u0002\u0002\u0139",
-    "\u0137\u0003\u0002\u0002\u0002\u013a\u013b\u0007\'\u0002\u0002\u013b",
-    "\u013c\u0005T+\u0002\u013c\u013d\u0007\u001c\u0002\u0002\u013d\u0142",
-    "\u0005p9\u0002\u013e\u013f\u0007\u001d\u0002\u0002\u013f\u0141\u0005",
-    "p9\u0002\u0140\u013e\u0003\u0002\u0002\u0002\u0141\u0144\u0003\u0002",
-    "\u0002\u0002\u0142\u0140\u0003\u0002\u0002\u0002\u0142\u0143\u0003\u0002",
-    "\u0002\u0002\u0143;\u0003\u0002\u0002\u0002\u0144\u0142\u0003\u0002",
-    "\u0002\u0002\u0145\u0147\u0007\'\u0002\u0002\u0146\u0148\u0005T+\u0002",
-    "\u0147\u0146\u0003\u0002\u0002\u0002\u0147\u0148\u0003\u0002\u0002\u0002",
-    "\u0148\u0149\u0003\u0002\u0002\u0002\u0149\u014a\u0007\u001e\u0002\u0002",
-    "\u014a\u014f\u00078\u0002\u0002\u014b\u014c\u0007\u001b\u0002\u0002",
-    "\u014c\u014e\u00078\u0002\u0002\u014d\u014b\u0003\u0002\u0002\u0002",
-    "\u014e\u0151\u0003\u0002\u0002\u0002\u014f\u014d\u0003\u0002\u0002\u0002",
-    "\u014f\u0150\u0003\u0002\u0002\u0002\u0150=\u0003\u0002\u0002\u0002",
-    "\u0151\u014f\u0003\u0002\u0002\u0002\u0152\u0154\u0007\'\u0002\u0002",
-    "\u0153\u0155\u0005T+\u0002\u0154\u0153\u0003\u0002\u0002\u0002\u0154",
-    "\u0155\u0003\u0002\u0002\u0002\u0155\u0156\u0003\u0002\u0002\u0002\u0156",
-    "\u0157\u0005X-\u0002\u0157\u0158\u0007&\u0002\u0002\u0158\u0159\u0005",
-    "^0\u0002\u0159?\u0003\u0002\u0002\u0002\u015a\u015c\u0007\'\u0002\u0002",
-    "\u015b\u015d\u0007!\u0002\u0002\u015c\u015b\u0003\u0002\u0002\u0002",
-    "\u015c\u015d\u0003\u0002\u0002\u0002\u015d\u0160\u0003\u0002\u0002\u0002",
-    "\u015e\u0161\u0005B\"\u0002\u015f\u0161\u0005D#\u0002\u0160\u015e\u0003",
-    "\u0002\u0002\u0002\u0160\u015f\u0003\u0002\u0002\u0002\u0161A\u0003",
-    "\u0002\u0002\u0002\u0162\u0164\u0005b2\u0002\u0163\u0165\u0005F$\u0002",
-    "\u0164\u0163\u0003\u0002\u0002\u0002\u0164\u0165\u0003\u0002\u0002\u0002",
-    "\u0165\u0169\u0003\u0002\u0002\u0002\u0166\u0167\u00076\u0002\u0002",
-    "\u0167\u0169\u0005F$\u0002\u0168\u0162\u0003\u0002\u0002\u0002\u0168",
-    "\u0166\u0003\u0002\u0002\u0002\u0169C\u0003\u0002\u0002\u0002\u016a",
-    "\u016b\u0007\"\u0002\u0002\u016b\u016e\u0005F$\u0002\u016c\u016d\u0007",
-    "#\u0002\u0002\u016d\u016f\u0005L\'\u0002\u016e\u016c\u0003\u0002\u0002",
-    "\u0002\u016e\u016f\u0003\u0002\u0002\u0002\u016fE\u0003\u0002\u0002",
-    "\u0002\u0170\u017b\u0007\u0015\u0002\u0002\u0171\u0174\u0005H%\u0002",
-    "\u0172\u0173\u0007\u001b\u0002\u0002\u0173\u0175\u0005J&\u0002\u0174",
-    "\u0172\u0003\u0002\u0002\u0002\u0174\u0175\u0003\u0002\u0002\u0002\u0175",
-    "\u017c\u0003\u0002\u0002\u0002\u0176\u0179\u0005J&\u0002\u0177\u0178",
-    "\u0007\u001b\u0002\u0002\u0178\u017a\u0005H%\u0002\u0179\u0177\u0003",
-    "\u0002\u0002\u0002\u0179\u017a\u0003\u0002\u0002\u0002\u017a\u017c\u0003",
-    "\u0002\u0002\u0002\u017b\u0171\u0003\u0002\u0002\u0002\u017b\u0176\u0003",
-    "\u0002\u0002\u0002\u017cG\u0003\u0002\u0002\u0002\u017d\u017e\u0007",
-    "%\u0002\u0002\u017e\u017f\u00078\u0002\u0002\u017fI\u0003\u0002\u0002",
-    "\u0002\u0180\u0181\u0007$\u0002\u0002\u0181\u0182\t\u0003\u0002\u0002",
-    "\u0182K\u0003\u0002\u0002\u0002\u0183\u0184\u0005N(\u0002\u0184\u0185",
-    "\u0007\u001b\u0002\u0002\u0185\u0187\u0003\u0002\u0002\u0002\u0186\u0183",
-    "\u0003\u0002\u0002\u0002\u0187\u018a\u0003\u0002\u0002\u0002\u0188\u0186",
-    "\u0003\u0002\u0002\u0002\u0188\u0189\u0003\u0002\u0002\u0002\u0189\u018b",
-    "\u0003\u0002\u0002\u0002\u018a\u0188\u0003\u0002\u0002\u0002\u018b\u018c",
-    "\u0005N(\u0002\u018cM\u0003\u0002\u0002\u0002\u018d\u018e\u00078\u0002",
-    "\u0002\u018e\u0190\u0005P)\u0002\u018f\u0191\u0005R*\u0002\u0190\u018f",
-    "\u0003\u0002\u0002\u0002\u0190\u0191\u0003\u0002\u0002\u0002\u0191O",
-    "\u0003\u0002\u0002\u0002\u0192\u0193\t\u0004\u0002\u0002\u0193Q\u0003",
-    "\u0002\u0002\u0002\u0194\u019a\u0005b2\u0002\u0195\u019a\u0007\u001f",
-    "\u0002\u0002\u0196\u019a\u0007 \u0002\u0002\u0197\u019a\u00075\u0002",
-    "\u0002\u0198\u019a\u0007*\u0002\u0002\u0199\u0194\u0003\u0002\u0002",
-    "\u0002\u0199\u0195\u0003\u0002\u0002\u0002\u0199\u0196\u0003\u0002\u0002",
-    "\u0002\u0199\u0197\u0003\u0002\u0002\u0002\u0199\u0198\u0003\u0002\u0002",
-    "\u0002\u019aS\u0003\u0002\u0002\u0002\u019b\u019c\u00078\u0002\u0002",
-    "\u019cU\u0003\u0002\u0002\u0002\u019d\u019e\u00077\u0002\u0002\u019e",
-    "W\u0003\u0002\u0002\u0002\u019f\u01a0\u00074\u0002\u0002\u01a0Y\u0003",
-    "\u0002\u0002\u0002\u01a1\u01a2\t\u0005\u0002\u0002\u01a2[\u0003\u0002",
-    "\u0002\u0002\u01a3\u01a4\t\u0006\u0002\u0002\u01a4]\u0003\u0002\u0002",
-    "\u0002\u01a5\u01b0\u0007*\u0002\u0002\u01a6\u01b0\u0007+\u0002\u0002",
-    "\u01a7\u01b0\u0007,\u0002\u0002\u01a8\u01b0\u00070\u0002\u0002\u01a9",
-    "\u01b0\u00071\u0002\u0002\u01aa\u01b0\u0005j6\u0002\u01ab\u01b0\u0005",
-    "b2\u0002\u01ac\u01b0\u0005f4\u0002\u01ad\u01b0\u0005h5\u0002\u01ae\u01b0",
-    "\u0005n8\u0002\u01af\u01a5\u0003\u0002\u0002\u0002\u01af\u01a6\u0003",
-    "\u0002\u0002\u0002\u01af\u01a7\u0003\u0002\u0002\u0002\u01af\u01a8\u0003",
-    "\u0002\u0002\u0002\u01af\u01a9\u0003\u0002\u0002\u0002\u01af\u01aa\u0003",
-    "\u0002\u0002\u0002\u01af\u01ab\u0003\u0002\u0002\u0002\u01af\u01ac\u0003",
-    "\u0002\u0002\u0002\u01af\u01ad\u0003\u0002\u0002\u0002\u01af\u01ae\u0003",
-    "\u0002\u0002\u0002\u01b0_\u0003\u0002\u0002\u0002\u01b1\u01b2\u0007",
-    "8\u0002\u0002\u01b2\u01b6\u00072\u0002\u0002\u01b3\u01b5\u0005Z.\u0002",
-    "\u01b4\u01b3\u0003\u0002\u0002\u0002\u01b5\u01b8\u0003\u0002\u0002\u0002",
-    "\u01b6\u01b4\u0003\u0002\u0002\u0002\u01b6\u01b7\u0003\u0002\u0002\u0002",
-    "\u01b7a\u0003\u0002\u0002\u0002\u01b8\u01b6\u0003\u0002\u0002\u0002",
-    "\u01b9\u01bb\u0007.\u0002\u0002\u01ba\u01bc\u0007*\u0002\u0002\u01bb",
-    "\u01ba\u0003\u0002\u0002\u0002\u01bb\u01bc\u0003\u0002\u0002\u0002\u01bc",
-    "c\u0003\u0002\u0002\u0002\u01bd\u01be\u0007\'\u0002\u0002\u01be\u01c0",
-    "\u0005b2\u0002\u01bf\u01c1\u0007*\u0002\u0002\u01c0\u01bf\u0003\u0002",
-    "\u0002\u0002\u01c0\u01c1\u0003\u0002\u0002\u0002\u01c1e\u0003\u0002",
-    "\u0002\u0002\u01c2\u01c3\u0007,\u0002\u0002\u01c3\u01c4\u0007-\u0002",
-    "\u0002\u01c4g\u0003\u0002\u0002\u0002\u01c5\u01c6\u0005l7\u0002\u01c6",
-    "\u01c7\u0007(\u0002\u0002\u01c7\u01c8\u0005l7\u0002\u01c8i\u0003\u0002",
-    "\u0002\u0002\u01c9\u01cb\u00073\u0002\u0002\u01ca\u01cc\u0007*\u0002",
-    "\u0002\u01cb\u01ca\u0003\u0002\u0002\u0002\u01cb\u01cc\u0003\u0002\u0002",
-    "\u0002\u01cck\u0003\u0002\u0002\u0002\u01cd\u01d0\u0007,\u0002\u0002",
-    "\u01ce\u01d0\u0005f4\u0002\u01cf\u01cd\u0003\u0002\u0002\u0002\u01cf",
-    "\u01ce\u0003\u0002\u0002\u0002\u01d0m\u0003\u0002\u0002\u0002\u01d1",
-    "\u01d2\t\u0007\u0002\u0002\u01d2o\u0003\u0002\u0002\u0002\u01d3\u01d6",
-    "\u00078\u0002\u0002\u01d4\u01d6\u0005j6\u0002\u01d5\u01d3\u0003\u0002",
-    "\u0002\u0002\u01d5\u01d4\u0003\u0002\u0002\u0002\u01d6q\u0003\u0002",
-    "\u0002\u00020u\u0081\u008d\u0092\u009a\u00a0\u00a7\u00b1\u00b8\u00be",
-    "\u00c3\u00ca\u00d0\u00d7\u00dd\u00e3\u00ea\u00f0\u00f6\u0116\u011c\u0121",
-    "\u0128\u0137\u0142\u0147\u014f\u0154\u015c\u0160\u0164\u0168\u016e\u0174",
-    "\u0179\u017b\u0188\u0190\u0199\u01af\u01b6\u01bb\u01c0\u01cb\u01cf\u01d5"].join("");
+    "\u00d8\u00de\u0003\u0002\u0002\u0002\u00d9\u00d7\u0003\u0002\u0002\u0002",
+    "\u00da\u00dd\u0005> \u0002\u00db\u00dd\u0005@!\u0002\u00dc\u00da\u0003",
+    "\u0002\u0002\u0002\u00dc\u00db\u0003\u0002\u0002\u0002\u00dd\u00e0\u0003",
+    "\u0002\u0002\u0002\u00de\u00dc\u0003\u0002\u0002\u0002\u00de\u00df\u0003",
+    "\u0002\u0002\u0002\u00df\u0019\u0003\u0002\u0002\u0002\u00e0\u00de\u0003",
+    "\u0002\u0002\u0002\u00e1\u00e5\u0005\"\u0012\u0002\u00e2\u00e5\u0005",
+    "$\u0013\u0002\u00e3\u00e5\u0005&\u0014\u0002\u00e4\u00e1\u0003\u0002",
+    "\u0002\u0002\u00e4\u00e2\u0003\u0002\u0002\u0002\u00e4\u00e3\u0003\u0002",
+    "\u0002\u0002\u00e5\u001b\u0003\u0002\u0002\u0002\u00e6\u00e7\u0007\n",
+    "\u0002\u0002\u00e7\u00eb\u00078\u0002\u0002\u00e8\u00ea\u0005\u001e",
+    "\u0010\u0002\u00e9\u00e8\u0003\u0002\u0002\u0002\u00ea\u00ed\u0003\u0002",
+    "\u0002\u0002\u00eb\u00e9\u0003\u0002\u0002\u0002\u00eb\u00ec\u0003\u0002",
+    "\u0002\u0002\u00ec\u00f1\u0003\u0002\u0002\u0002\u00ed\u00eb\u0003\u0002",
+    "\u0002\u0002\u00ee\u00f0\u0005d3\u0002\u00ef\u00ee\u0003\u0002\u0002",
+    "\u0002\u00f0\u00f3\u0003\u0002\u0002\u0002\u00f1\u00ef\u0003\u0002\u0002",
+    "\u0002\u00f1\u00f2\u0003\u0002\u0002\u0002\u00f2\u001d\u0003\u0002\u0002",
+    "\u0002\u00f3\u00f1\u0003\u0002\u0002\u0002\u00f4\u00f8\u0005\"\u0012",
+    "\u0002\u00f5\u00f8\u0005$\u0013\u0002\u00f6\u00f8\u0005&\u0014\u0002",
+    "\u00f7\u00f4\u0003\u0002\u0002\u0002\u00f7\u00f5\u0003\u0002\u0002\u0002",
+    "\u00f7\u00f6\u0003\u0002\u0002\u0002\u00f8\u001f\u0003\u0002\u0002\u0002",
+    "\u00f9\u00fa\u0007\u000b\u0002\u0002\u00fa\u00fb\u00078\u0002\u0002",
+    "\u00fb!\u0003\u0002\u0002\u0002\u00fc\u00fd\u0007\f\u0002\u0002\u00fd",
+    "\u00fe\u00078\u0002\u0002\u00fe#\u0003\u0002\u0002\u0002\u00ff\u0100",
+    "\u0007\r\u0002\u0002\u0100\u0101\u0007*\u0002\u0002\u0101%\u0003\u0002",
+    "\u0002\u0002\u0102\u0103\u0007\u000e\u0002\u0002\u0103\u0104\t\u0002",
+    "\u0002\u0002\u0104\'\u0003\u0002\u0002\u0002\u0105\u0106\u0007\u000f",
+    "\u0002\u0002\u0106\u0107\u0007*\u0002\u0002\u0107)\u0003\u0002\u0002",
+    "\u0002\u0108\u0109\u0007\u0010\u0002\u0002\u0109\u010a\u0007*\u0002",
+    "\u0002\u010a+\u0003\u0002\u0002\u0002\u010b\u010c\u0007\u0011\u0002",
+    "\u0002\u010c\u010d\u0007.\u0002\u0002\u010d-\u0003\u0002\u0002\u0002",
+    "\u010e\u010f\u0007\u0007\u0002\u0002\u010f\u0110\u00078\u0002\u0002",
+    "\u0110/\u0003\u0002\u0002\u0002\u0111\u0112\u0007\'\u0002\u0002\u0112",
+    "\u0113\u0005T+\u0002\u0113\u0117\u00072\u0002\u0002\u0114\u0116\u0005",
+    "Z.\u0002\u0115\u0114\u0003\u0002\u0002\u0002\u0116\u0119\u0003\u0002",
+    "\u0002\u0002\u0117\u0115\u0003\u0002\u0002\u0002\u0117\u0118\u0003\u0002",
+    "\u0002\u0002\u01181\u0003\u0002\u0002\u0002\u0119\u0117\u0003\u0002",
+    "\u0002\u0002\u011a\u011d\u0007\'\u0002\u0002\u011b\u011e\u0005T+\u0002",
+    "\u011c\u011e\u0005V,\u0002\u011d\u011b\u0003\u0002\u0002\u0002\u011d",
+    "\u011c\u0003\u0002\u0002\u0002\u011e\u0120\u0003\u0002\u0002\u0002\u011f",
+    "\u0121\u0005Z.\u0002\u0120\u011f\u0003\u0002\u0002\u0002\u0121\u0122",
+    "\u0003\u0002\u0002\u0002\u0122\u0120\u0003\u0002\u0002\u0002\u0122\u0123",
+    "\u0003\u0002\u0002\u0002\u01233\u0003\u0002\u0002\u0002\u0124\u0125",
+    "\u0007\'\u0002\u0002\u0125\u0126\u0005T+\u0002\u0126\u0127\u0007\u0015",
+    "\u0002\u0002\u0127\u0129\u00078\u0002\u0002\u0128\u012a\u0005\\/\u0002",
+    "\u0129\u0128\u0003\u0002\u0002\u0002\u0129\u012a\u0003\u0002\u0002\u0002",
+    "\u012a5\u0003\u0002\u0002\u0002\u012b\u012c\u0007\'\u0002\u0002\u012c",
+    "\u012d\u0005T+\u0002\u012d\u012e\u0007&\u0002\u0002\u012e\u012f\u0005",
+    "^0\u0002\u012f7\u0003\u0002\u0002\u0002\u0130\u0131\u0007\'\u0002\u0002",
+    "\u0131\u0132\u0005T+\u0002\u0132\u0133\u0007\u001a\u0002\u0002\u0133",
+    "\u0138\u0005`1\u0002\u0134\u0135\u0007\u001b\u0002\u0002\u0135\u0137",
+    "\u0005`1\u0002\u0136\u0134\u0003\u0002\u0002\u0002\u0137\u013a\u0003",
+    "\u0002\u0002\u0002\u0138\u0136\u0003\u0002\u0002\u0002\u0138\u0139\u0003",
+    "\u0002\u0002\u0002\u01399\u0003\u0002\u0002\u0002\u013a\u0138\u0003",
+    "\u0002\u0002\u0002\u013b\u013c\u0007\'\u0002\u0002\u013c\u013d\u0005",
+    "T+\u0002\u013d\u013e\u0007\u001c\u0002\u0002\u013e\u0143\u0005p9\u0002",
+    "\u013f\u0140\u0007\u001d\u0002\u0002\u0140\u0142\u0005p9\u0002\u0141",
+    "\u013f\u0003\u0002\u0002\u0002\u0142\u0145\u0003\u0002\u0002\u0002\u0143",
+    "\u0141\u0003\u0002\u0002\u0002\u0143\u0144\u0003\u0002\u0002\u0002\u0144",
+    ";\u0003\u0002\u0002\u0002\u0145\u0143\u0003\u0002\u0002\u0002\u0146",
+    "\u0148\u0007\'\u0002\u0002\u0147\u0149\u0005T+\u0002\u0148\u0147\u0003",
+    "\u0002\u0002\u0002\u0148\u0149\u0003\u0002\u0002\u0002\u0149\u014a\u0003",
+    "\u0002\u0002\u0002\u014a\u014b\u0007\u001e\u0002\u0002\u014b\u0150\u0007",
+    "8\u0002\u0002\u014c\u014d\u0007\u001b\u0002\u0002\u014d\u014f\u0007",
+    "8\u0002\u0002\u014e\u014c\u0003\u0002\u0002\u0002\u014f\u0152\u0003",
+    "\u0002\u0002\u0002\u0150\u014e\u0003\u0002\u0002\u0002\u0150\u0151\u0003",
+    "\u0002\u0002\u0002\u0151=\u0003\u0002\u0002\u0002\u0152\u0150\u0003",
+    "\u0002\u0002\u0002\u0153\u0155\u0007\'\u0002\u0002\u0154\u0156\u0005",
+    "T+\u0002\u0155\u0154\u0003\u0002\u0002\u0002\u0155\u0156\u0003\u0002",
+    "\u0002\u0002\u0156\u0157\u0003\u0002\u0002\u0002\u0157\u0158\u0005X",
+    "-\u0002\u0158\u0159\u0007&\u0002\u0002\u0159\u015a\u0005^0\u0002\u015a",
+    "?\u0003\u0002\u0002\u0002\u015b\u015d\u0007\'\u0002\u0002\u015c\u015e",
+    "\u0007!\u0002\u0002\u015d\u015c\u0003\u0002\u0002\u0002\u015d\u015e",
+    "\u0003\u0002\u0002\u0002\u015e\u0161\u0003\u0002\u0002\u0002\u015f\u0162",
+    "\u0005B\"\u0002\u0160\u0162\u0005D#\u0002\u0161\u015f\u0003\u0002\u0002",
+    "\u0002\u0161\u0160\u0003\u0002\u0002\u0002\u0162A\u0003\u0002\u0002",
+    "\u0002\u0163\u0165\u0005b2\u0002\u0164\u0166\u0005F$\u0002\u0165\u0164",
+    "\u0003\u0002\u0002\u0002\u0165\u0166\u0003\u0002\u0002\u0002\u0166\u016a",
+    "\u0003\u0002\u0002\u0002\u0167\u0168\u00076\u0002\u0002\u0168\u016a",
+    "\u0005F$\u0002\u0169\u0163\u0003\u0002\u0002\u0002\u0169\u0167\u0003",
+    "\u0002\u0002\u0002\u016aC\u0003\u0002\u0002\u0002\u016b\u016c\u0007",
+    "\"\u0002\u0002\u016c\u016f\u0005F$\u0002\u016d\u016e\u0007#\u0002\u0002",
+    "\u016e\u0170\u0005L\'\u0002\u016f\u016d\u0003\u0002\u0002\u0002\u016f",
+    "\u0170\u0003\u0002\u0002\u0002\u0170E\u0003\u0002\u0002\u0002\u0171",
+    "\u017c\u0007\u0015\u0002\u0002\u0172\u0175\u0005H%\u0002\u0173\u0174",
+    "\u0007\u001b\u0002\u0002\u0174\u0176\u0005J&\u0002\u0175\u0173\u0003",
+    "\u0002\u0002\u0002\u0175\u0176\u0003\u0002\u0002\u0002\u0176\u017d\u0003",
+    "\u0002\u0002\u0002\u0177\u017a\u0005J&\u0002\u0178\u0179\u0007\u001b",
+    "\u0002\u0002\u0179\u017b\u0005H%\u0002\u017a\u0178\u0003\u0002\u0002",
+    "\u0002\u017a\u017b\u0003\u0002\u0002\u0002\u017b\u017d\u0003\u0002\u0002",
+    "\u0002\u017c\u0172\u0003\u0002\u0002\u0002\u017c\u0177\u0003\u0002\u0002",
+    "\u0002\u017dG\u0003\u0002\u0002\u0002\u017e\u017f\u0007%\u0002\u0002",
+    "\u017f\u0180\u00078\u0002\u0002\u0180I\u0003\u0002\u0002\u0002\u0181",
+    "\u0182\u0007$\u0002\u0002\u0182\u0183\t\u0003\u0002\u0002\u0183K\u0003",
+    "\u0002\u0002\u0002\u0184\u0185\u0005N(\u0002\u0185\u0186\u0007\u001b",
+    "\u0002\u0002\u0186\u0188\u0003\u0002\u0002\u0002\u0187\u0184\u0003\u0002",
+    "\u0002\u0002\u0188\u018b\u0003\u0002\u0002\u0002\u0189\u0187\u0003\u0002",
+    "\u0002\u0002\u0189\u018a\u0003\u0002\u0002\u0002\u018a\u018c\u0003\u0002",
+    "\u0002\u0002\u018b\u0189\u0003\u0002\u0002\u0002\u018c\u018d\u0005N",
+    "(\u0002\u018dM\u0003\u0002\u0002\u0002\u018e\u018f\u00078\u0002\u0002",
+    "\u018f\u0191\u0005P)\u0002\u0190\u0192\u0005R*\u0002\u0191\u0190\u0003",
+    "\u0002\u0002\u0002\u0191\u0192\u0003\u0002\u0002\u0002\u0192O\u0003",
+    "\u0002\u0002\u0002\u0193\u0194\t\u0004\u0002\u0002\u0194Q\u0003\u0002",
+    "\u0002\u0002\u0195\u019b\u0005b2\u0002\u0196\u019b\u0007\u001f\u0002",
+    "\u0002\u0197\u019b\u0007 \u0002\u0002\u0198\u019b\u00075\u0002\u0002",
+    "\u0199\u019b\u0007*\u0002\u0002\u019a\u0195\u0003\u0002\u0002\u0002",
+    "\u019a\u0196\u0003\u0002\u0002\u0002\u019a\u0197\u0003\u0002\u0002\u0002",
+    "\u019a\u0198\u0003\u0002\u0002\u0002\u019a\u0199\u0003\u0002\u0002\u0002",
+    "\u019bS\u0003\u0002\u0002\u0002\u019c\u019d\u00078\u0002\u0002\u019d",
+    "U\u0003\u0002\u0002\u0002\u019e\u019f\u00077\u0002\u0002\u019fW\u0003",
+    "\u0002\u0002\u0002\u01a0\u01a1\u00074\u0002\u0002\u01a1Y\u0003\u0002",
+    "\u0002\u0002\u01a2\u01a3\t\u0005\u0002\u0002\u01a3[\u0003\u0002\u0002",
+    "\u0002\u01a4\u01a5\t\u0006\u0002\u0002\u01a5]\u0003\u0002\u0002\u0002",
+    "\u01a6\u01b1\u0007*\u0002\u0002\u01a7\u01b1\u0007+\u0002\u0002\u01a8",
+    "\u01b1\u0007,\u0002\u0002\u01a9\u01b1\u00070\u0002\u0002\u01aa\u01b1",
+    "\u00071\u0002\u0002\u01ab\u01b1\u0005j6\u0002\u01ac\u01b1\u0005b2\u0002",
+    "\u01ad\u01b1\u0005f4\u0002\u01ae\u01b1\u0005h5\u0002\u01af\u01b1\u0005",
+    "n8\u0002\u01b0\u01a6\u0003\u0002\u0002\u0002\u01b0\u01a7\u0003\u0002",
+    "\u0002\u0002\u01b0\u01a8\u0003\u0002\u0002\u0002\u01b0\u01a9\u0003\u0002",
+    "\u0002\u0002\u01b0\u01aa\u0003\u0002\u0002\u0002\u01b0\u01ab\u0003\u0002",
+    "\u0002\u0002\u01b0\u01ac\u0003\u0002\u0002\u0002\u01b0\u01ad\u0003\u0002",
+    "\u0002\u0002\u01b0\u01ae\u0003\u0002\u0002\u0002\u01b0\u01af\u0003\u0002",
+    "\u0002\u0002\u01b1_\u0003\u0002\u0002\u0002\u01b2\u01b3\u00078\u0002",
+    "\u0002\u01b3\u01b7\u00072\u0002\u0002\u01b4\u01b6\u0005Z.\u0002\u01b5",
+    "\u01b4\u0003\u0002\u0002\u0002\u01b6\u01b9\u0003\u0002\u0002\u0002\u01b7",
+    "\u01b5\u0003\u0002\u0002\u0002\u01b7\u01b8\u0003\u0002\u0002\u0002\u01b8",
+    "a\u0003\u0002\u0002\u0002\u01b9\u01b7\u0003\u0002\u0002\u0002\u01ba",
+    "\u01bc\u0007.\u0002\u0002\u01bb\u01bd\u0007*\u0002\u0002\u01bc\u01bb",
+    "\u0003\u0002\u0002\u0002\u01bc\u01bd\u0003\u0002\u0002\u0002\u01bdc",
+    "\u0003\u0002\u0002\u0002\u01be\u01bf\u0007\'\u0002\u0002\u01bf\u01c1",
+    "\u0005b2\u0002\u01c0\u01c2\u0007*\u0002\u0002\u01c1\u01c0\u0003\u0002",
+    "\u0002\u0002\u01c1\u01c2\u0003\u0002\u0002\u0002\u01c2e\u0003\u0002",
+    "\u0002\u0002\u01c3\u01c4\u0007,\u0002\u0002\u01c4\u01c5\u0007-\u0002",
+    "\u0002\u01c5g\u0003\u0002\u0002\u0002\u01c6\u01c7\u0005l7\u0002\u01c7",
+    "\u01c8\u0007(\u0002\u0002\u01c8\u01c9\u0005l7\u0002\u01c9i\u0003\u0002",
+    "\u0002\u0002\u01ca\u01cc\u00073\u0002\u0002\u01cb\u01cd\u0007*\u0002",
+    "\u0002\u01cc\u01cb\u0003\u0002\u0002\u0002\u01cc\u01cd\u0003\u0002\u0002",
+    "\u0002\u01cdk\u0003\u0002\u0002\u0002\u01ce\u01d1\u0007,\u0002\u0002",
+    "\u01cf\u01d1\u0005f4\u0002\u01d0\u01ce\u0003\u0002\u0002\u0002\u01d0",
+    "\u01cf\u0003\u0002\u0002\u0002\u01d1m\u0003\u0002\u0002\u0002\u01d2",
+    "\u01d3\t\u0007\u0002\u0002\u01d3o\u0003\u0002\u0002\u0002\u01d4\u01d7",
+    "\u00078\u0002\u0002\u01d5\u01d7\u0005j6\u0002\u01d6\u01d4\u0003\u0002",
+    "\u0002\u0002\u01d6\u01d5\u0003\u0002\u0002\u0002\u01d7q\u0003\u0002",
+    "\u0002\u00021u\u0081\u008d\u0092\u009a\u00a0\u00a7\u00b1\u00b8\u00be",
+    "\u00c3\u00ca\u00d0\u00d7\u00dc\u00de\u00e4\u00eb\u00f1\u00f7\u0117\u011d",
+    "\u0122\u0129\u0138\u0143\u0148\u0150\u0155\u015d\u0161\u0165\u0169\u016f",
+    "\u0175\u017a\u017c\u0189\u0191\u019a\u01b0\u01b7\u01bc\u01c1\u01cc\u01d0",
+    "\u01d6"].join("");
 
 
 var atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN);
@@ -1716,6 +1718,17 @@ ValueSetContext.prototype.vsMetadata = function(i) {
     }
 };
 
+ValueSetContext.prototype.caretValueRule = function(i) {
+    if(i===undefined) {
+        i = null;
+    }
+    if(i===null) {
+        return this.getTypedRuleContexts(CaretValueRuleContext);
+    } else {
+        return this.getTypedRuleContext(CaretValueRuleContext,i);
+    }
+};
+
 ValueSetContext.prototype.vsComponent = function(i) {
     if(i===undefined) {
         i = null;
@@ -1773,13 +1786,26 @@ FSHParser.prototype.valueSet = function() {
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         }
-        this.state = 219;
+        this.state = 220;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         while(_la===FSHParser.STAR) {
-            this.state = 216;
-            this.vsComponent();
-            this.state = 221;
+            this.state = 218;
+            this._errHandler.sync(this);
+            var la_ = this._interp.adaptivePredict(this._input,14,this._ctx);
+            switch(la_) {
+            case 1:
+                this.state = 216;
+                this.caretValueRule();
+                break;
+
+            case 2:
+                this.state = 217;
+                this.vsComponent();
+                break;
+
+            }
+            this.state = 222;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         }
@@ -1856,22 +1882,22 @@ FSHParser.prototype.vsMetadata = function() {
     var localctx = new VsMetadataContext(this, this._ctx, this.state);
     this.enterRule(localctx, 24, FSHParser.RULE_vsMetadata);
     try {
-        this.state = 225;
+        this.state = 226;
         this._errHandler.sync(this);
         switch(this._input.LA(1)) {
         case FSHParser.KW_ID:
             this.enterOuterAlt(localctx, 1);
-            this.state = 222;
+            this.state = 223;
             this.id();
             break;
         case FSHParser.KW_TITLE:
             this.enterOuterAlt(localctx, 2);
-            this.state = 223;
+            this.state = 224;
             this.title();
             break;
         case FSHParser.KW_DESCRIPTION:
             this.enterOuterAlt(localctx, 3);
-            this.state = 224;
+            this.state = 225;
             this.description();
             break;
         default:
@@ -1970,27 +1996,27 @@ FSHParser.prototype.codeSystem = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 227;
-        this.match(FSHParser.KW_CODESYSTEM);
         this.state = 228;
+        this.match(FSHParser.KW_CODESYSTEM);
+        this.state = 229;
         this.match(FSHParser.SEQUENCE);
-        this.state = 232;
+        this.state = 233;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         while((((_la) & ~0x1f) == 0 && ((1 << _la) & ((1 << FSHParser.KW_ID) | (1 << FSHParser.KW_TITLE) | (1 << FSHParser.KW_DESCRIPTION))) !== 0)) {
-            this.state = 229;
+            this.state = 230;
             this.csMetadata();
-            this.state = 234;
+            this.state = 235;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         }
-        this.state = 238;
+        this.state = 239;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         while(_la===FSHParser.STAR) {
-            this.state = 235;
+            this.state = 236;
             this.concept();
-            this.state = 240;
+            this.state = 241;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         }
@@ -2067,22 +2093,22 @@ FSHParser.prototype.csMetadata = function() {
     var localctx = new CsMetadataContext(this, this._ctx, this.state);
     this.enterRule(localctx, 28, FSHParser.RULE_csMetadata);
     try {
-        this.state = 244;
+        this.state = 245;
         this._errHandler.sync(this);
         switch(this._input.LA(1)) {
         case FSHParser.KW_ID:
             this.enterOuterAlt(localctx, 1);
-            this.state = 241;
+            this.state = 242;
             this.id();
             break;
         case FSHParser.KW_TITLE:
             this.enterOuterAlt(localctx, 2);
-            this.state = 242;
+            this.state = 243;
             this.title();
             break;
         case FSHParser.KW_DESCRIPTION:
             this.enterOuterAlt(localctx, 3);
-            this.state = 243;
+            this.state = 244;
             this.description();
             break;
         default:
@@ -2158,9 +2184,9 @@ FSHParser.prototype.parent = function() {
     this.enterRule(localctx, 30, FSHParser.RULE_parent);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 246;
-        this.match(FSHParser.KW_PARENT);
         this.state = 247;
+        this.match(FSHParser.KW_PARENT);
+        this.state = 248;
         this.match(FSHParser.SEQUENCE);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -2232,9 +2258,9 @@ FSHParser.prototype.id = function() {
     this.enterRule(localctx, 32, FSHParser.RULE_id);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 249;
-        this.match(FSHParser.KW_ID);
         this.state = 250;
+        this.match(FSHParser.KW_ID);
+        this.state = 251;
         this.match(FSHParser.SEQUENCE);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -2306,9 +2332,9 @@ FSHParser.prototype.title = function() {
     this.enterRule(localctx, 34, FSHParser.RULE_title);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 252;
-        this.match(FSHParser.KW_TITLE);
         this.state = 253;
+        this.match(FSHParser.KW_TITLE);
+        this.state = 254;
         this.match(FSHParser.STRING);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -2385,9 +2411,9 @@ FSHParser.prototype.description = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 255;
-        this.match(FSHParser.KW_DESCRIPTION);
         this.state = 256;
+        this.match(FSHParser.KW_DESCRIPTION);
+        this.state = 257;
         _la = this._input.LA(1);
         if(!(_la===FSHParser.STRING || _la===FSHParser.MULTILINE_STRING)) {
         this._errHandler.recoverInline(this);
@@ -2466,9 +2492,9 @@ FSHParser.prototype.expression = function() {
     this.enterRule(localctx, 38, FSHParser.RULE_expression);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 258;
-        this.match(FSHParser.KW_EXPRESSION);
         this.state = 259;
+        this.match(FSHParser.KW_EXPRESSION);
+        this.state = 260;
         this.match(FSHParser.STRING);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -2540,9 +2566,9 @@ FSHParser.prototype.xpath = function() {
     this.enterRule(localctx, 40, FSHParser.RULE_xpath);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 261;
-        this.match(FSHParser.KW_XPATH);
         this.state = 262;
+        this.match(FSHParser.KW_XPATH);
+        this.state = 263;
         this.match(FSHParser.STRING);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -2614,9 +2640,9 @@ FSHParser.prototype.severity = function() {
     this.enterRule(localctx, 42, FSHParser.RULE_severity);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 264;
-        this.match(FSHParser.KW_SEVERITY);
         this.state = 265;
+        this.match(FSHParser.KW_SEVERITY);
+        this.state = 266;
         this.match(FSHParser.CODE);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -2688,9 +2714,9 @@ FSHParser.prototype.instanceOf = function() {
     this.enterRule(localctx, 44, FSHParser.RULE_instanceOf);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 267;
-        this.match(FSHParser.KW_INSTANCEOF);
         this.state = 268;
+        this.match(FSHParser.KW_INSTANCEOF);
+        this.state = 269;
         this.match(FSHParser.SEQUENCE);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -2778,19 +2804,19 @@ FSHParser.prototype.cardRule = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 270;
-        this.match(FSHParser.STAR);
         this.state = 271;
-        this.path();
+        this.match(FSHParser.STAR);
         this.state = 272;
+        this.path();
+        this.state = 273;
         this.match(FSHParser.CARD);
-        this.state = 276;
+        this.state = 277;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         while((((_la) & ~0x1f) == 0 && ((1 << _la) & ((1 << FSHParser.KW_MOD) | (1 << FSHParser.KW_MS) | (1 << FSHParser.KW_SU))) !== 0)) {
-            this.state = 273;
+            this.state = 274;
             this.flag();
-            this.state = 278;
+            this.state = 279;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         }
@@ -2880,29 +2906,29 @@ FSHParser.prototype.flagRule = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 279;
+        this.state = 280;
         this.match(FSHParser.STAR);
-        this.state = 282;
+        this.state = 283;
         this._errHandler.sync(this);
         switch(this._input.LA(1)) {
         case FSHParser.SEQUENCE:
-            this.state = 280;
+            this.state = 281;
             this.path();
             break;
         case FSHParser.COMMA_DELIMITED_SEQUENCES:
-            this.state = 281;
+            this.state = 282;
             this.paths();
             break;
         default:
             throw new antlr4.error.NoViableAltException(this);
         }
-        this.state = 285; 
+        this.state = 286; 
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         do {
-            this.state = 284;
+            this.state = 285;
             this.flag();
-            this.state = 287; 
+            this.state = 288; 
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         } while((((_la) & ~0x1f) == 0 && ((1 << _la) & ((1 << FSHParser.KW_MOD) | (1 << FSHParser.KW_MS) | (1 << FSHParser.KW_SU))) !== 0));
@@ -2989,19 +3015,19 @@ FSHParser.prototype.valueSetRule = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 289;
-        this.match(FSHParser.STAR);
         this.state = 290;
-        this.path();
+        this.match(FSHParser.STAR);
         this.state = 291;
-        this.match(FSHParser.KW_FROM);
+        this.path();
         this.state = 292;
+        this.match(FSHParser.KW_FROM);
+        this.state = 293;
         this.match(FSHParser.SEQUENCE);
-        this.state = 294;
+        this.state = 295;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         if((((_la) & ~0x1f) == 0 && ((1 << _la) & ((1 << FSHParser.KW_EXAMPLE) | (1 << FSHParser.KW_PREFERRED) | (1 << FSHParser.KW_EXTENSIBLE) | (1 << FSHParser.KW_REQUIRED))) !== 0)) {
-            this.state = 293;
+            this.state = 294;
             this.strength();
         }
 
@@ -3083,13 +3109,13 @@ FSHParser.prototype.fixedValueRule = function() {
     this.enterRule(localctx, 52, FSHParser.RULE_fixedValueRule);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 296;
-        this.match(FSHParser.STAR);
         this.state = 297;
-        this.path();
+        this.match(FSHParser.STAR);
         this.state = 298;
-        this.match(FSHParser.EQUAL);
+        this.path();
         this.state = 299;
+        this.match(FSHParser.EQUAL);
+        this.state = 300;
         this.value();
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -3189,23 +3215,23 @@ FSHParser.prototype.containsRule = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 301;
-        this.match(FSHParser.STAR);
         this.state = 302;
-        this.path();
+        this.match(FSHParser.STAR);
         this.state = 303;
-        this.match(FSHParser.KW_CONTAINS);
+        this.path();
         this.state = 304;
+        this.match(FSHParser.KW_CONTAINS);
+        this.state = 305;
         this.item();
-        this.state = 309;
+        this.state = 310;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         while(_la===FSHParser.KW_AND) {
-            this.state = 305;
-            this.match(FSHParser.KW_AND);
             this.state = 306;
+            this.match(FSHParser.KW_AND);
+            this.state = 307;
             this.item();
-            this.state = 311;
+            this.state = 312;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         }
@@ -3307,23 +3333,23 @@ FSHParser.prototype.onlyRule = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 312;
-        this.match(FSHParser.STAR);
         this.state = 313;
-        this.path();
+        this.match(FSHParser.STAR);
         this.state = 314;
-        this.match(FSHParser.KW_ONLY);
+        this.path();
         this.state = 315;
+        this.match(FSHParser.KW_ONLY);
+        this.state = 316;
         this.targetType();
-        this.state = 320;
+        this.state = 321;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         while(_la===FSHParser.KW_OR) {
-            this.state = 316;
-            this.match(FSHParser.KW_OR);
             this.state = 317;
+            this.match(FSHParser.KW_OR);
+            this.state = 318;
             this.targetType();
-            this.state = 322;
+            this.state = 323;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         }
@@ -3426,29 +3452,29 @@ FSHParser.prototype.obeysRule = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 323;
+        this.state = 324;
         this.match(FSHParser.STAR);
-        this.state = 325;
+        this.state = 326;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         if(_la===FSHParser.SEQUENCE) {
-            this.state = 324;
+            this.state = 325;
             this.path();
         }
 
-        this.state = 327;
-        this.match(FSHParser.KW_OBEYS);
         this.state = 328;
+        this.match(FSHParser.KW_OBEYS);
+        this.state = 329;
         this.match(FSHParser.SEQUENCE);
-        this.state = 333;
+        this.state = 334;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         while(_la===FSHParser.KW_AND) {
-            this.state = 329;
-            this.match(FSHParser.KW_AND);
             this.state = 330;
+            this.match(FSHParser.KW_AND);
+            this.state = 331;
             this.match(FSHParser.SEQUENCE);
-            this.state = 335;
+            this.state = 336;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         }
@@ -3535,21 +3561,21 @@ FSHParser.prototype.caretValueRule = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 336;
+        this.state = 337;
         this.match(FSHParser.STAR);
-        this.state = 338;
+        this.state = 339;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         if(_la===FSHParser.SEQUENCE) {
-            this.state = 337;
+            this.state = 338;
             this.path();
         }
 
-        this.state = 340;
-        this.caretPath();
         this.state = 341;
-        this.match(FSHParser.EQUAL);
+        this.caretPath();
         this.state = 342;
+        this.match(FSHParser.EQUAL);
+        this.state = 343;
         this.value();
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -3630,26 +3656,26 @@ FSHParser.prototype.vsComponent = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 344;
+        this.state = 345;
         this.match(FSHParser.STAR);
-        this.state = 346;
+        this.state = 347;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         if(_la===FSHParser.KW_EXCLUDE) {
-            this.state = 345;
+            this.state = 346;
             this.match(FSHParser.KW_EXCLUDE);
         }
 
-        this.state = 350;
+        this.state = 351;
         this._errHandler.sync(this);
         switch(this._input.LA(1)) {
         case FSHParser.CODE:
         case FSHParser.COMMA_DELIMITED_CODES:
-            this.state = 348;
+            this.state = 349;
             this.vsConceptComponent();
             break;
         case FSHParser.KW_CODES:
-            this.state = 349;
+            this.state = 350;
             this.vsFilterComponent();
             break;
         default:
@@ -3729,27 +3755,27 @@ FSHParser.prototype.vsConceptComponent = function() {
     this.enterRule(localctx, 64, FSHParser.RULE_vsConceptComponent);
     var _la = 0; // Token type
     try {
-        this.state = 358;
+        this.state = 359;
         this._errHandler.sync(this);
         switch(this._input.LA(1)) {
         case FSHParser.CODE:
             this.enterOuterAlt(localctx, 1);
-            this.state = 352;
+            this.state = 353;
             this.code();
-            this.state = 354;
+            this.state = 355;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
             if(_la===FSHParser.KW_FROM) {
-                this.state = 353;
+                this.state = 354;
                 this.vsComponentFrom();
             }
 
             break;
         case FSHParser.COMMA_DELIMITED_CODES:
             this.enterOuterAlt(localctx, 2);
-            this.state = 356;
-            this.match(FSHParser.COMMA_DELIMITED_CODES);
             this.state = 357;
+            this.match(FSHParser.COMMA_DELIMITED_CODES);
+            this.state = 358;
             this.vsComponentFrom();
             break;
         default:
@@ -3834,17 +3860,17 @@ FSHParser.prototype.vsFilterComponent = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 360;
-        this.match(FSHParser.KW_CODES);
         this.state = 361;
+        this.match(FSHParser.KW_CODES);
+        this.state = 362;
         this.vsComponentFrom();
-        this.state = 364;
+        this.state = 365;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         if(_la===FSHParser.KW_WHERE) {
-            this.state = 362;
-            this.match(FSHParser.KW_WHERE);
             this.state = 363;
+            this.match(FSHParser.KW_WHERE);
+            this.state = 364;
             this.vsFilterList();
         }
 
@@ -3927,35 +3953,35 @@ FSHParser.prototype.vsComponentFrom = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 366;
+        this.state = 367;
         this.match(FSHParser.KW_FROM);
-        this.state = 377;
+        this.state = 378;
         this._errHandler.sync(this);
         switch(this._input.LA(1)) {
         case FSHParser.KW_SYSTEM:
-            this.state = 367;
+            this.state = 368;
             this.vsFromSystem();
-            this.state = 370;
+            this.state = 371;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
             if(_la===FSHParser.KW_AND) {
-                this.state = 368;
-                this.match(FSHParser.KW_AND);
                 this.state = 369;
+                this.match(FSHParser.KW_AND);
+                this.state = 370;
                 this.vsFromValueset();
             }
 
             break;
         case FSHParser.KW_VSREFERENCE:
-            this.state = 372;
+            this.state = 373;
             this.vsFromValueset();
-            this.state = 375;
+            this.state = 376;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
             if(_la===FSHParser.KW_AND) {
-                this.state = 373;
-                this.match(FSHParser.KW_AND);
                 this.state = 374;
+                this.match(FSHParser.KW_AND);
+                this.state = 375;
                 this.vsFromSystem();
             }
 
@@ -4033,9 +4059,9 @@ FSHParser.prototype.vsFromSystem = function() {
     this.enterRule(localctx, 70, FSHParser.RULE_vsFromSystem);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 379;
-        this.match(FSHParser.KW_SYSTEM);
         this.state = 380;
+        this.match(FSHParser.KW_SYSTEM);
+        this.state = 381;
         this.match(FSHParser.SEQUENCE);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -4112,9 +4138,9 @@ FSHParser.prototype.vsFromValueset = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 382;
-        this.match(FSHParser.KW_VSREFERENCE);
         this.state = 383;
+        this.match(FSHParser.KW_VSREFERENCE);
+        this.state = 384;
         _la = this._input.LA(1);
         if(!(_la===FSHParser.COMMA_DELIMITED_SEQUENCES || _la===FSHParser.SEQUENCE)) {
         this._errHandler.recoverInline(this);
@@ -4208,22 +4234,22 @@ FSHParser.prototype.vsFilterList = function() {
     this.enterRule(localctx, 74, FSHParser.RULE_vsFilterList);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 390;
+        this.state = 391;
         this._errHandler.sync(this);
-        var _alt = this._interp.adaptivePredict(this._input,36,this._ctx)
+        var _alt = this._interp.adaptivePredict(this._input,37,this._ctx)
         while(_alt!=2 && _alt!=antlr4.atn.ATN.INVALID_ALT_NUMBER) {
             if(_alt===1) {
-                this.state = 385;
-                this.vsFilterDefinition();
                 this.state = 386;
+                this.vsFilterDefinition();
+                this.state = 387;
                 this.match(FSHParser.KW_AND); 
             }
-            this.state = 392;
+            this.state = 393;
             this._errHandler.sync(this);
-            _alt = this._interp.adaptivePredict(this._input,36,this._ctx);
+            _alt = this._interp.adaptivePredict(this._input,37,this._ctx);
         }
 
-        this.state = 393;
+        this.state = 394;
         this.vsFilterDefinition();
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -4300,15 +4326,15 @@ FSHParser.prototype.vsFilterDefinition = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 395;
-        this.match(FSHParser.SEQUENCE);
         this.state = 396;
+        this.match(FSHParser.SEQUENCE);
+        this.state = 397;
         this.vsFilterOperator();
-        this.state = 398;
+        this.state = 399;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         if(((((_la - 29)) & ~0x1f) == 0 && ((1 << (_la - 29)) & ((1 << (FSHParser.KW_TRUE - 29)) | (1 << (FSHParser.KW_FALSE - 29)) | (1 << (FSHParser.STRING - 29)) | (1 << (FSHParser.CODE - 29)) | (1 << (FSHParser.REGEX - 29)))) !== 0)) {
-            this.state = 397;
+            this.state = 398;
             this.vsFilterValue();
         }
 
@@ -4383,7 +4409,7 @@ FSHParser.prototype.vsFilterOperator = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 400;
+        this.state = 401;
         _la = this._input.LA(1);
         if(!(_la===FSHParser.EQUAL || _la===FSHParser.SEQUENCE)) {
         this._errHandler.recoverInline(this);
@@ -4473,32 +4499,32 @@ FSHParser.prototype.vsFilterValue = function() {
     var localctx = new VsFilterValueContext(this, this._ctx, this.state);
     this.enterRule(localctx, 80, FSHParser.RULE_vsFilterValue);
     try {
-        this.state = 407;
+        this.state = 408;
         this._errHandler.sync(this);
         switch(this._input.LA(1)) {
         case FSHParser.CODE:
             this.enterOuterAlt(localctx, 1);
-            this.state = 402;
+            this.state = 403;
             this.code();
             break;
         case FSHParser.KW_TRUE:
             this.enterOuterAlt(localctx, 2);
-            this.state = 403;
+            this.state = 404;
             this.match(FSHParser.KW_TRUE);
             break;
         case FSHParser.KW_FALSE:
             this.enterOuterAlt(localctx, 3);
-            this.state = 404;
+            this.state = 405;
             this.match(FSHParser.KW_FALSE);
             break;
         case FSHParser.REGEX:
             this.enterOuterAlt(localctx, 4);
-            this.state = 405;
+            this.state = 406;
             this.match(FSHParser.REGEX);
             break;
         case FSHParser.STRING:
             this.enterOuterAlt(localctx, 5);
-            this.state = 406;
+            this.state = 407;
             this.match(FSHParser.STRING);
             break;
         default:
@@ -4570,7 +4596,7 @@ FSHParser.prototype.path = function() {
     this.enterRule(localctx, 82, FSHParser.RULE_path);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 409;
+        this.state = 410;
         this.match(FSHParser.SEQUENCE);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -4638,7 +4664,7 @@ FSHParser.prototype.paths = function() {
     this.enterRule(localctx, 84, FSHParser.RULE_paths);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 411;
+        this.state = 412;
         this.match(FSHParser.COMMA_DELIMITED_SEQUENCES);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -4706,7 +4732,7 @@ FSHParser.prototype.caretPath = function() {
     this.enterRule(localctx, 86, FSHParser.RULE_caretPath);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 413;
+        this.state = 414;
         this.match(FSHParser.CARET_SEQUENCE);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -4783,7 +4809,7 @@ FSHParser.prototype.flag = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 415;
+        this.state = 416;
         _la = this._input.LA(1);
         if(!((((_la) & ~0x1f) == 0 && ((1 << _la) & ((1 << FSHParser.KW_MOD) | (1 << FSHParser.KW_MS) | (1 << FSHParser.KW_SU))) !== 0))) {
         this._errHandler.recoverInline(this);
@@ -4871,7 +4897,7 @@ FSHParser.prototype.strength = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 417;
+        this.state = 418;
         _la = this._input.LA(1);
         if(!((((_la) & ~0x1f) == 0 && ((1 << _la) & ((1 << FSHParser.KW_EXAMPLE) | (1 << FSHParser.KW_PREFERRED) | (1 << FSHParser.KW_EXTENSIBLE) | (1 << FSHParser.KW_REQUIRED))) !== 0))) {
         this._errHandler.recoverInline(this);
@@ -4981,67 +5007,67 @@ FSHParser.prototype.value = function() {
     var localctx = new ValueContext(this, this._ctx, this.state);
     this.enterRule(localctx, 92, FSHParser.RULE_value);
     try {
-        this.state = 429;
+        this.state = 430;
         this._errHandler.sync(this);
-        var la_ = this._interp.adaptivePredict(this._input,39,this._ctx);
+        var la_ = this._interp.adaptivePredict(this._input,40,this._ctx);
         switch(la_) {
         case 1:
             this.enterOuterAlt(localctx, 1);
-            this.state = 419;
+            this.state = 420;
             this.match(FSHParser.STRING);
             break;
 
         case 2:
             this.enterOuterAlt(localctx, 2);
-            this.state = 420;
+            this.state = 421;
             this.match(FSHParser.MULTILINE_STRING);
             break;
 
         case 3:
             this.enterOuterAlt(localctx, 3);
-            this.state = 421;
+            this.state = 422;
             this.match(FSHParser.NUMBER);
             break;
 
         case 4:
             this.enterOuterAlt(localctx, 4);
-            this.state = 422;
+            this.state = 423;
             this.match(FSHParser.DATETIME);
             break;
 
         case 5:
             this.enterOuterAlt(localctx, 5);
-            this.state = 423;
+            this.state = 424;
             this.match(FSHParser.TIME);
             break;
 
         case 6:
             this.enterOuterAlt(localctx, 6);
-            this.state = 424;
+            this.state = 425;
             this.reference();
             break;
 
         case 7:
             this.enterOuterAlt(localctx, 7);
-            this.state = 425;
+            this.state = 426;
             this.code();
             break;
 
         case 8:
             this.enterOuterAlt(localctx, 8);
-            this.state = 426;
+            this.state = 427;
             this.quantity();
             break;
 
         case 9:
             this.enterOuterAlt(localctx, 9);
-            this.state = 427;
+            this.state = 428;
             this.ratio();
             break;
 
         case 10:
             this.enterOuterAlt(localctx, 10);
-            this.state = 428;
+            this.state = 429;
             this.bool();
             break;
 
@@ -5128,17 +5154,17 @@ FSHParser.prototype.item = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 431;
-        this.match(FSHParser.SEQUENCE);
         this.state = 432;
+        this.match(FSHParser.SEQUENCE);
+        this.state = 433;
         this.match(FSHParser.CARD);
-        this.state = 436;
+        this.state = 437;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         while((((_la) & ~0x1f) == 0 && ((1 << _la) & ((1 << FSHParser.KW_MOD) | (1 << FSHParser.KW_MS) | (1 << FSHParser.KW_SU))) !== 0)) {
-            this.state = 433;
+            this.state = 434;
             this.flag();
-            this.state = 438;
+            this.state = 439;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         }
@@ -5212,13 +5238,13 @@ FSHParser.prototype.code = function() {
     this.enterRule(localctx, 96, FSHParser.RULE_code);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 439;
+        this.state = 440;
         this.match(FSHParser.CODE);
-        this.state = 441;
+        this.state = 442;
         this._errHandler.sync(this);
-        var la_ = this._interp.adaptivePredict(this._input,41,this._ctx);
+        var la_ = this._interp.adaptivePredict(this._input,42,this._ctx);
         if(la_===1) {
-            this.state = 440;
+            this.state = 441;
             this.match(FSHParser.STRING);
 
         }
@@ -5297,15 +5323,15 @@ FSHParser.prototype.concept = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 443;
-        this.match(FSHParser.STAR);
         this.state = 444;
+        this.match(FSHParser.STAR);
+        this.state = 445;
         this.code();
-        this.state = 446;
+        this.state = 447;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         if(_la===FSHParser.STRING) {
-            this.state = 445;
+            this.state = 446;
             this.match(FSHParser.STRING);
         }
 
@@ -5379,9 +5405,9 @@ FSHParser.prototype.quantity = function() {
     this.enterRule(localctx, 100, FSHParser.RULE_quantity);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 448;
-        this.match(FSHParser.NUMBER);
         this.state = 449;
+        this.match(FSHParser.NUMBER);
+        this.state = 450;
         this.match(FSHParser.UNIT);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -5460,11 +5486,11 @@ FSHParser.prototype.ratio = function() {
     this.enterRule(localctx, 102, FSHParser.RULE_ratio);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 451;
-        this.ratioPart();
         this.state = 452;
-        this.match(FSHParser.COLON);
+        this.ratioPart();
         this.state = 453;
+        this.match(FSHParser.COLON);
+        this.state = 454;
         this.ratioPart();
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -5537,13 +5563,13 @@ FSHParser.prototype.reference = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 455;
+        this.state = 456;
         this.match(FSHParser.REFERENCE);
-        this.state = 457;
+        this.state = 458;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         if(_la===FSHParser.STRING) {
-            this.state = 456;
+            this.state = 457;
             this.match(FSHParser.STRING);
         }
 
@@ -5616,19 +5642,19 @@ FSHParser.prototype.ratioPart = function() {
     var localctx = new RatioPartContext(this, this._ctx, this.state);
     this.enterRule(localctx, 106, FSHParser.RULE_ratioPart);
     try {
-        this.state = 461;
+        this.state = 462;
         this._errHandler.sync(this);
-        var la_ = this._interp.adaptivePredict(this._input,44,this._ctx);
+        var la_ = this._interp.adaptivePredict(this._input,45,this._ctx);
         switch(la_) {
         case 1:
             this.enterOuterAlt(localctx, 1);
-            this.state = 459;
+            this.state = 460;
             this.match(FSHParser.NUMBER);
             break;
 
         case 2:
             this.enterOuterAlt(localctx, 2);
-            this.state = 460;
+            this.state = 461;
             this.quantity();
             break;
 
@@ -5704,7 +5730,7 @@ FSHParser.prototype.bool = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 463;
+        this.state = 464;
         _la = this._input.LA(1);
         if(!(_la===FSHParser.KW_TRUE || _la===FSHParser.KW_FALSE)) {
         this._errHandler.recoverInline(this);
@@ -5782,17 +5808,17 @@ FSHParser.prototype.targetType = function() {
     var localctx = new TargetTypeContext(this, this._ctx, this.state);
     this.enterRule(localctx, 110, FSHParser.RULE_targetType);
     try {
-        this.state = 467;
+        this.state = 468;
         this._errHandler.sync(this);
         switch(this._input.LA(1)) {
         case FSHParser.SEQUENCE:
             this.enterOuterAlt(localctx, 1);
-            this.state = 465;
+            this.state = 466;
             this.match(FSHParser.SEQUENCE);
             break;
         case FSHParser.REFERENCE:
             this.enterOuterAlt(localctx, 2);
-            this.state = 466;
+            this.state = 467;
             this.reference();
             break;
         default:
diff --git a/src/import/parserContexts.ts b/src/import/parserContexts.ts
index 239af14..1381ee5 100644
--- a/src/import/parserContexts.ts
+++ b/src/import/parserContexts.ts
@@ -52,6 +52,7 @@ export interface ValueSetContext extends ParserRuleContext {
   SEQUENCE(): ParserRuleContext;
   vsMetadata(): VsMetadataContext[];
   vsComponent(): VsComponentContext[];
+  caretValueRule(): CaretValueRuleContext[];
 }
 
 export interface VsMetadataContext extends ParserRuleContext {


Test patch:
diff --git a/test/export/ValueSetExporter.test.ts b/test/export/ValueSetExporter.test.ts
index f0f6cad..1706ffc 100644
--- a/test/export/ValueSetExporter.test.ts
+++ b/test/export/ValueSetExporter.test.ts
@@ -12,6 +12,7 @@ import { loggerSpy } from '../testhelpers/loggerSpy';
 import { TestFisher } from '../testhelpers';
 import { FHIRDefinitions, loadFromPath } from '../../src/fhirdefs';
 import path from 'path';
+import { CaretValueRule } from '../../src/fshtypes/rules';
 
 describe('ValueSetExporter', () => {
   let defs: FHIRDefinitions;
@@ -433,4 +434,43 @@ describe('ValueSetExporter', () => {
     expect(exported.length).toBe(0);
     expect(loggerSpy.getLastMessage()).toMatch(/File: Breakfast\.fsh.*Line: 2 - 4\D/s);
   });
+
+  // CaretValueRules
+  it('should apply a CaretValueRule', () => {
+    const valueSet = new FshValueSet('DinnerVS');
+    const rule = new CaretValueRule('');
+    rule.caretPath = 'publisher';
+    rule.value = 'Carrots';
+    valueSet.rules.push(rule);
+    doc.valueSets.set(valueSet.name, valueSet);
+    const exported = exporter.export().valueSets;
+    expect(exported.length).toBe(1);
+    expect(exported[0]).toEqual({
+      id: 'DinnerVS',
+      name: 'DinnerVS',
+      url: 'http://example.com/ValueSet/DinnerVS',
+      version: '0.0.1',
+      status: 'active',
+      publisher: 'Carrots'
+    });
+  });
+
+  it('should log a message when applying invalid CaretValueRule', () => {
+    const valueSet = new FshValueSet('DinnerVS');
+    const rule = new CaretValueRule('').withFile('InvalidValue.fsh').withLocation([6, 3, 6, 12]);
+    rule.caretPath = 'publisherz';
+    rule.value = true;
+    valueSet.rules.push(rule);
+    doc.valueSets.set(valueSet.name, valueSet);
+    const exported = exporter.export().valueSets;
+    expect(exported.length).toBe(1);
+    expect(exported[0]).toEqual({
+      id: 'DinnerVS',
+      name: 'DinnerVS',
+      url: 'http://example.com/ValueSet/DinnerVS',
+      version: '0.0.1',
+      status: 'active'
+    });
+    expect(loggerSpy.getLastMessage()).toMatch(/File: InvalidValue\.fsh.*Line: 6\D/s);
+  });
 });
diff --git a/test/fshtypes/FshValueSet.test.ts b/test/fshtypes/FshValueSet.test.ts
index 434aef0..afb0969 100644
--- a/test/fshtypes/FshValueSet.test.ts
+++ b/test/fshtypes/FshValueSet.test.ts
@@ -10,6 +10,7 @@ describe('ValueSet', () => {
       expect(vs.title).toBeUndefined();
       expect(vs.description).toBeUndefined();
       expect(vs.components).toBeEmpty();
+      expect(vs.rules).toBeEmpty();
     });
   });
 });
diff --git a/test/import/FSHImporter.ValueSet.test.ts b/test/import/FSHImporter.ValueSet.test.ts
index b8260d3..b2e9c7a 100644
--- a/test/import/FSHImporter.ValueSet.test.ts
+++ b/test/import/FSHImporter.ValueSet.test.ts
@@ -1,6 +1,7 @@
 import {
   assertValueSetConceptComponent,
-  assertValueSetFilterComponent
+  assertValueSetFilterComponent,
+  assertCaretValueRule
 } from '../testhelpers/asserts';
 import { loggerSpy } from '../testhelpers/loggerSpy';
 import { FshCode, VsOperator } from '../../src/fshtypes';
@@ -777,5 +778,42 @@ describe('FSHImporter', () => {
         expect(loggerSpy.getLastMessage()).toMatch(/File: Zoo\.fsh.*Line: 3\D/s);
       });
     });
+
+    describe('#ValueSetCaretValueRule', () => {
+      it('should parse a value set that uses a CaretValueRule', () => {
+        const input = `
+          ValueSet: ZooVS
+          * ^publisher = "foo"
+          `;
+        const result = importSingleText(input);
+        const valueSet = result.valueSets.get('ZooVS');
+        assertCaretValueRule(valueSet.rules[0], '', 'publisher', 'foo');
+      });
+
+      it('should parse a value set that uses CaretValueRules alongside components', () => {
+        const input = `
+        ValueSet: SimpleVS
+        * ZOO#bear
+        * ^publisher = "foo"
+        `;
+        const result = importSingleText(input, 'Simple.fsh');
+        const valueSet = result.valueSets.get('SimpleVS');
+        assertValueSetConceptComponent(valueSet.components[0], 'ZOO', undefined, [
+          new FshCode('bear', 'ZOO').withLocation([3, 11, 3, 18]).withFile('Simple.fsh')
+        ]);
+        assertCaretValueRule(valueSet.rules[0], '', 'publisher', 'foo');
+      });
+
+      it('should log an error when a CaretValueRule contains a path before ^', () => {
+        const input = `
+        ValueSet: SimpleVS
+        * mypath ^publisher = "foo"
+        `;
+        const result = importSingleText(input, 'Simple.fsh');
+        const valueSet = result.valueSets.get('SimpleVS');
+        expect(valueSet.rules).toHaveLength(0);
+        expect(loggerSpy.getLastMessage()).toMatch(/File: Simple\.fsh.*Line: 3\D/s);
+      });
+    });
   });
 });
diff --git a/test/testhelpers/testdefs/package/StructureDefinition-ValueSet.json b/test/testhelpers/testdefs/package/StructureDefinition-ValueSet.json
new file mode 100644
index 0000000..3eb76ee
--- /dev/null
+++ b/test/testhelpers/testdefs/package/StructureDefinition-ValueSet.json
@@ -0,0 +1,1 @@
+{"resourceType":"StructureDefinition","id":"ValueSet","meta":{"lastUpdated":"2019-11-01T09:29:23.356+11:00"},"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-category","valueString":"Foundation.Terminology"},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status","valueCode":"normative"},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version","valueCode":"4.0.0"},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm","valueInteger":5},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category","valueCode":"anonymous"},{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-wg","valueCode":"vocab"}],"url":"http://hl7.org/fhir/StructureDefinition/ValueSet","version":"4.0.1","name":"ValueSet","status":"active","date":"2019-11-01T09:29:23+11:00","publisher":"Health Level Seven International (Vocabulary)","contact":[{"telecom":[{"system":"url","value":"http://hl7.org/fhir"}]},{"telecom":[{"system":"url","value":"http://www.hl7.org/Special/committees/Vocab/index.cfm"}]}],"description":"A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded elements](terminologies.html).","fhirVersion":"4.0.1","mapping":[{"identity":"rim","uri":"http://hl7.org/v3","name":"RIM Mapping"},{"identity":"workflow","uri":"http://hl7.org/fhir/workflow","name":"Workflow Pattern"},{"identity":"w5","uri":"http://hl7.org/fhir/fivews","name":"FiveWs Pattern Mapping"},{"identity":"objimpl","uri":"http://hl7.org/fhir/object-implementation","name":"Object Implementation Information"}],"kind":"resource","abstract":false,"type":"ValueSet","baseDefinition":"http://hl7.org/fhir/StructureDefinition/DomainResource","_baseDefinition":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super","valueString":"MetadataResource"}]},"derivation":"specialization","snapshot":{"element":[{"id":"ValueSet","path":"ValueSet","short":"A set of codes drawn from one or more code systems","definition":"A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [CodeSystem](codesystem.html) definitions and their use in [coded elements](terminologies.html).","min":0,"max":"*","base":{"path":"ValueSet","min":0,"max":"*"},"constraint":[{"key":"dom-2","severity":"error","human":"If the resource is contained in another resource, it SHALL NOT contain nested Resources","expression":"contained.contained.empty()","xpath":"not(parent::f:contained and f:contained)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-3","severity":"error","human":"If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource","expression":"contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()","xpath":"not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-4","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated","expression":"contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()","xpath":"not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"dom-5","severity":"error","human":"If a resource is contained in another resource, it SHALL NOT have a security label","expression":"contained.meta.security.empty()","xpath":"not(exists(f:contained/*/f:meta/f:security))","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice","valueBoolean":true},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation","valueMarkdown":"When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."}],"key":"dom-6","severity":"warning","human":"A resource should have narrative for robust management","expression":"text.`div`.exists()","xpath":"exists(f:text/h:div)","source":"http://hl7.org/fhir/StructureDefinition/DomainResource"},{"key":"vsd-0","severity":"warning","human":"Name should be usable as an identifier for the module by machine processing applications such as code generation","expression":"name.matches('[A-Z]([A-Za-z0-9_]){0,254}')","xpath":"not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.id","path":"ValueSet.id","short":"Logical id of this artifact","definition":"The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.","comment":"The only time that a resource does not have an id is when it is being submitted to the server using a create operation.","min":0,"max":"1","base":{"path":"Resource.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":true},{"id":"ValueSet.meta","path":"ValueSet.meta","short":"Metadata about the resource","definition":"The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.","min":0,"max":"1","base":{"path":"Resource.meta","min":0,"max":"1"},"type":[{"code":"Meta"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"ValueSet.implicitRules","path":"ValueSet.implicitRules","short":"A set of rules under which this content was created","definition":"A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.","comment":"Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.","min":0,"max":"1","base":{"path":"Resource.implicitRules","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation","isSummary":true},{"id":"ValueSet.language","path":"ValueSet.language","short":"Language of the resource content","definition":"The base language in which the resource is written.","comment":"Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).","min":0,"max":"1","base":{"path":"Resource.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding","valueBoolean":true}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages"}},{"id":"ValueSet.text","path":"ValueSet.text","short":"Text summary of the resource, for human interpretation","definition":"A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.","comment":"Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.","alias":["narrative","html","xhtml","display"],"min":0,"max":"1","base":{"path":"DomainResource.text","min":0,"max":"1"},"type":[{"code":"Narrative"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Act.text?"}]},{"id":"ValueSet.contained","path":"ValueSet.contained","short":"Contained, inline Resources","definition":"These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.","comment":"This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.","alias":["inline resources","anonymous resources","contained resources"],"min":0,"max":"*","base":{"path":"DomainResource.contained","min":0,"max":"*"},"type":[{"code":"Resource"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.extension","path":"ValueSet.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.modifierExtension","path":"ValueSet.modifierExtension","short":"Extensions that cannot be ignored","definition":"May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"DomainResource.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them","isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.url","path":"ValueSet.url","short":"Canonical identifier for this value set, represented as a URI (globally unique)","definition":"An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.","comment":"Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.","requirements":"Allows the value set to be referenced by a single globally unique identifier.","min":0,"max":"1","base":{"path":"ValueSet.url","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.url"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.identifier","path":"ValueSet.identifier","short":"Additional identifier for the value set (business identifier)","definition":"A formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance.","comment":"Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this value set outside of FHIR, where it is not possible to use the logical URI.","requirements":"Allows externally provided and/or usable business identifiers to be easily associated with the module.","min":0,"max":"*","base":{"path":"ValueSet.identifier","min":0,"max":"*"},"type":[{"code":"Identifier"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.identifier"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"objimpl","map":"no-gen-base"}]},{"id":"ValueSet.version","path":"ValueSet.version","short":"Business version of the value set","definition":"The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the value set author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.","comment":"There may be different value set instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the value set with the format [url]|[version].","min":0,"max":"1","base":{"path":"ValueSet.version","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.version"},{"identity":"w5","map":"FiveWs.version"}]},{"id":"ValueSet.name","path":"ValueSet.name","short":"Name for this value set (computer friendly)","definition":"A natural language name identifying the value set. This name should be usable as an identifier for the module by machine processing applications such as code generation.","comment":"The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.A name should be provided unless the value set is a contained resource (e.g. an anonymous value set in a profile). Most registries will require a name.","requirements":"Support human navigation and code generation.","min":0,"max":"1","base":{"path":"ValueSet.name","min":0,"max":"1"},"type":[{"code":"string"}],"condition":["inv-0"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"ValueSet.title","path":"ValueSet.title","short":"Name for this value set (human friendly)","definition":"A short, descriptive, user-friendly title for the value set.","comment":"This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.","min":0,"max":"1","base":{"path":"ValueSet.title","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.title"}]},{"id":"ValueSet.status","path":"ValueSet.status","short":"draft | active | retired | unknown","definition":"The status of this value set. Enables tracking the life-cycle of the content. The status of the value set applies to the value set definition (ValueSet.compose) and the associated ValueSet metadata. Expansions do not have a state.","comment":"Allows filtering of value sets that are appropriate for use versus not.See also the [valueset-workflowStatus](extension-valueset-workflowstatus.html) extension for additional status information related to the editorial process.","min":1,"max":"1","base":{"path":"ValueSet.status","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":true,"isModifierReason":"This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"PublicationStatus"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding","valueBoolean":true}],"strength":"required","description":"The lifecycle status of an artifact.","valueSet":"http://hl7.org/fhir/ValueSet/publication-status|4.0.1"},"mapping":[{"identity":"workflow","map":"Definition.status"},{"identity":"w5","map":"FiveWs.status"}]},{"id":"ValueSet.experimental","path":"ValueSet.experimental","short":"For testing purposes, not real usage","definition":"A Boolean value to indicate that this value set is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.","comment":"Allows filtering of value sets that are appropriate for use versus not.","requirements":"Enables experimental content to be developed following the same lifecycle that would be used for a production-level value set.","min":0,"max":"1","base":{"path":"ValueSet.experimental","min":0,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.experimental"},{"identity":"w5","map":"FiveWs.class"}]},{"id":"ValueSet.date","path":"ValueSet.date","short":"Date last changed","definition":"The date (and optionally time) when the value set was created or revised (e.g. the 'content logical definition').","comment":"Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the value set. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.","alias":["Revision Date"],"min":0,"max":"1","base":{"path":"ValueSet.date","min":0,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.date"},{"identity":"w5","map":"FiveWs.recorded"},{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.publisher","path":"ValueSet.publisher","short":"Name of the publisher (organization or individual)","definition":"The name of the organization or individual that published the value set.","comment":"Usually an organization but may be an individual. The publisher (or steward) of the value set is the organization or individual primarily responsible for the maintenance and upkeep of the value set. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the value set. This item SHOULD be populated unless the information is available from context.","requirements":"Helps establish the \"authority/credibility\" of the value set.  May also allow for contact.","min":0,"max":"1","base":{"path":"ValueSet.publisher","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.publisher"},{"identity":"w5","map":"FiveWs.witness"}]},{"id":"ValueSet.contact","path":"ValueSet.contact","short":"Contact details for the publisher","definition":"Contact details to assist a user in finding and communicating with the publisher.","comment":"May be a web site, an email address, a telephone number, etc.","min":0,"max":"*","base":{"path":"ValueSet.contact","min":0,"max":"*"},"type":[{"code":"ContactDetail"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.contact"}]},{"id":"ValueSet.description","path":"ValueSet.description","short":"Natural language description of the value set","definition":"A free text natural language description of the value set from a consumer's perspective. The textual description specifies the span of meanings for concepts to be included within the Value Set Expansion, and also may specify the intended use and limitations of the Value Set.","comment":"This description can be used to capture details such as why the value set was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the value set as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the value set is presumed to be the predominant language in the place the value set was created).The description is not intended to describe the semantics of the Value Set - there are no intrinsic semantics separate from the codes contained in its expansion. The description should capture its intended use, which is needed for ensuring integrity for its use in models across future changes. A description should be provided unless the value set is a contained resource (e.g. an anonymous value set in a profile). Most registries will require a description.","alias":["Scope","Purpose"],"min":0,"max":"1","base":{"path":"ValueSet.description","min":0,"max":"1"},"type":[{"code":"markdown"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Definition.description"},{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.useContext","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status","valueCode":"trial-use"}],"path":"ValueSet.useContext","short":"The context that the content is intended to support","definition":"The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate value set instances.","comment":"When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.","requirements":"Assist in searching for appropriate content.","min":0,"max":"*","base":{"path":"ValueSet.useContext","min":0,"max":"*"},"type":[{"code":"UsageContext"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.useContext"}]},{"id":"ValueSet.jurisdiction","path":"ValueSet.jurisdiction","short":"Intended jurisdiction for value set (if applicable)","definition":"A legal or geographic region in which the value set is intended to be used.","comment":"It may be possible for the value set to be used in jurisdictions other than those for which it was originally designed or intended.","min":0,"max":"*","base":{"path":"ValueSet.jurisdiction","min":0,"max":"*"},"type":[{"code":"CodeableConcept"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Jurisdiction"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding","valueBoolean":true}],"strength":"extensible","description":"Countries and regions within which this artifact is targeted for use.","valueSet":"http://hl7.org/fhir/ValueSet/jurisdiction"},"mapping":[{"identity":"workflow","map":"Definition.jurisdiction"}]},{"id":"ValueSet.immutable","path":"ValueSet.immutable","short":"Indicates whether or not any change to the content logical definition may occur","definition":"If this is set to 'true', then no new versions of the content logical definition can be created.  Note: Other metadata might still change.","comment":"Normally immutability is set to 'false', which is the default assumption if it is not populated.  Note that the implication is that if this is set to 'true', there may be only one ValueSet version for this definition. Immutability tends to be set to 'true' in one of two cases: - Where the value set, by the nature of its usage, cannot change.  For example \"All specializations of ACT in ActClassCode\" - Where there's no safe way to express the \"Purpose\" such that someone else could safely make changes to the value set definition. Source workflow control must guarantee that the same URI always yields the same definition.","min":0,"max":"1","base":{"path":"ValueSet.immutable","min":0,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"ValueSet.purpose","path":"ValueSet.purpose","short":"Why this value set is defined","definition":"Explanation of why this value set is needed and why it has been designed as it has.","comment":"This element does not describe the usage of the value set. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this value set.","min":0,"max":"1","base":{"path":"ValueSet.purpose","min":0,"max":"1"},"type":[{"code":"markdown"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Definition.purpose"},{"identity":"w5","map":"FiveWs.why[x]"},{"identity":"objimpl","map":"no-gen-base"}]},{"id":"ValueSet.copyright","path":"ValueSet.copyright","short":"Use and/or publishing restrictions","definition":"A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.","comment":"nullFrequently, the copyright differs between the value set and the codes that are included. The copyright statement should clearly differentiate between these when required.","requirements":"Consumers must be able to determine any legal restrictions on the use of the value set and/or its content.","alias":["License","Restrictions"],"min":0,"max":"1","base":{"path":"ValueSet.copyright","min":0,"max":"1"},"type":[{"code":"markdown"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"workflow","map":"Definition.copyright"},{"identity":"objimpl","map":"no-gen-base"}]},{"id":"ValueSet.compose","path":"ValueSet.compose","short":"Content logical definition of the value set (CLD)","definition":"A set of criteria that define the contents of the value set by including or excluding codes selected from the specified code system(s) that the value set draws from. This is also known as the Content Logical Definition (CLD).","alias":["Content Logical Definition","CLD"],"min":0,"max":"1","base":{"path":"ValueSet.compose","min":0,"max":"1"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.compose.id","path":"ValueSet.compose.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ValueSet.compose.extension","path":"ValueSet.compose.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ValueSet.compose.modifierExtension","path":"ValueSet.compose.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.lockedDate","path":"ValueSet.compose.lockedDate","short":"Fixed date for references with no specified version (transitive)","definition":"The Locked Date is  the effective date that is used to determine the version of all referenced Code Systems and Value Set Definitions included in the compose that are not already tied to a specific version.","comment":"With a defined lockedDate the value set is considered \"Locked\". Otherwise, the value set may have different expansions as underlying code systems and/or value sets evolve.  The interpretation of lockedDate is often dependent on the context - e.g. a SNOMED CT derived value set with a lockedDate will have a different expansion in USA than in UK.  If a value set specifies a version for include and exclude statements, and also specifies a locked date, the specified versions need to be available that date, or the value set will not be usable.","min":0,"max":"1","base":{"path":"ValueSet.compose.lockedDate","min":0,"max":"1"},"type":[{"code":"date"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.init"}]},{"id":"ValueSet.compose.inactive","path":"ValueSet.compose.inactive","short":"Whether inactive codes are in the value set","definition":"Whether inactive codes - codes that are not approved for current use - are in the value set. If inactive = true, inactive codes are to be included in the expansion, if inactive = false, the inactive codes will not be included in the expansion. If absent, the behavior is determined by the implementation, or by the applicable $expand parameters (but generally, inactive codes would be expected to be included).","comment":"Note that in the FHIR terminology framework, \"deprecated\" does not mean inactive, but in some code systems, e.g. LOINC, \"deprecated\" does mean inactive. Code systems should define what codes are considered to be inactive. If this is not clearly defined (including in the FHIR code system resource), then all codes are assumed to be active.\n\nThe Value Set Definition specification defines an ActiveOnly element, which is the reverse of this element e.g. (ValueSet.compose.inactive=FALSE) is the same as (VSD.ActiveOnly=TRUE).","min":0,"max":"1","base":{"path":"ValueSet.compose.inactive","min":0,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true},{"id":"ValueSet.compose.include","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name","valueString":"ConceptSet"}],"path":"ValueSet.compose.include","short":"Include one or more codes from a code system or other value set(s)","definition":"Include one or more codes from a code system or other value set(s).","comment":"All the conditions in an include must be true. If a system is listed, all the codes from the system are listed. If one or more filters are listed, all of the filters must apply. If one or more value sets are listed, the codes must be in all the value sets. E.g. each include is 'include all the codes that meet all these conditions'.","min":1,"max":"*","base":{"path":"ValueSet.compose.include","min":1,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"vsd-1","severity":"error","human":"A value set include/exclude SHALL have a value set or a system","expression":"valueSet.exists() or system.exists()","xpath":"exists(f:valueSet) or exists(f:system)"},{"key":"vsd-2","severity":"error","human":"A value set with concepts or filters SHALL include a system","expression":"(concept.exists() or filter.exists()) implies system.exists()","xpath":"not(exists(f:concept) or exists(f:filter)) or exists(f:system)"},{"key":"vsd-3","severity":"error","human":"Cannot have both concept and filter","expression":"concept.empty() or filter.empty()","xpath":"not(exists(f:concept)) or not(exists(f:filter))"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.id","path":"ValueSet.compose.include.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ValueSet.compose.include.extension","path":"ValueSet.compose.include.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ValueSet.compose.include.modifierExtension","path":"ValueSet.compose.include.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.system","path":"ValueSet.compose.include.system","short":"The system the codes come from","definition":"An absolute URI which is the code system from which the selected codes come from.","comment":"If there are no codes or filters, the entire code system is included. Note that the set of codes that are included may contain abstract codes. See ''Coding.system'' for further documentation about the correct value for the system element.","min":0,"max":"1","base":{"path":"ValueSet.compose.include.system","min":0,"max":"1"},"type":[{"code":"uri"}],"condition":["vsd-1","vsd-2"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.version","path":"ValueSet.compose.include.version","short":"Specific version of the code system referred to","definition":"The version of the code system that the codes are selected from, or the special version '*' for all versions.","comment":"This is used when selecting the descendants of a concept - they may change between versions. If no version is specified, then the exact contents of the value set might not be known until a context of use binds it to a particular version. The special value '*' means all versions; It is at server discretion regarding expansions and which versions must be supported.","min":0,"max":"1","base":{"path":"ValueSet.compose.include.version","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.concept","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name","valueString":"ConceptReference"}],"path":"ValueSet.compose.include.concept","short":"A concept defined in the system","definition":"Specifies a concept to be included or excluded.","comment":"The list of concepts is considered ordered, though the order might not have any particular significance. Typically, the order of an expansion follows that defined in the compose element.","min":0,"max":"*","base":{"path":"ValueSet.compose.include.concept","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"condition":["vsd-3"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.concept.id","path":"ValueSet.compose.include.concept.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ValueSet.compose.include.concept.extension","path":"ValueSet.compose.include.concept.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ValueSet.compose.include.concept.modifierExtension","path":"ValueSet.compose.include.concept.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.concept.code","path":"ValueSet.compose.include.concept.code","short":"Code or expression from system","definition":"Specifies a code for the concept to be included or excluded.","comment":"Expressions are allowed if defined by the underlying code system.","min":1,"max":"1","base":{"path":"ValueSet.compose.include.concept.code","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.concept.display","path":"ValueSet.compose.include.concept.display","short":"Text to display for this code for this value set in this valueset","definition":"The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system.","comment":"The value set resource allows for an alternative display to be specified for when this concept is used in this particular value set. See notes in the value set narrative about the correct use of this element.","min":0,"max":"1","base":{"path":"ValueSet.compose.include.concept.display","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.concept.designation","path":"ValueSet.compose.include.concept.designation","short":"Additional representations for this concept","definition":"Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.","comment":"Concepts have both a ```display``` and an array of ```designation```. The display is equivalent to a special designation with an implied ```designation.use``` of \"primary code\" and a language equal to the [Resource Language](resource.html#language).","min":0,"max":"*","base":{"path":"ValueSet.compose.include.concept.designation","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.compose.include.concept.designation.id","path":"ValueSet.compose.include.concept.designation.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ValueSet.compose.include.concept.designation.extension","path":"ValueSet.compose.include.concept.designation.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ValueSet.compose.include.concept.designation.modifierExtension","path":"ValueSet.compose.include.concept.designation.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.concept.designation.language","path":"ValueSet.compose.include.concept.designation.language","short":"Human language of the designation","definition":"The language this designation is defined for.","comment":"In the absence of a language, the resource language applies.","min":0,"max":"1","base":{"path":"ValueSet.compose.include.concept.designation.language","min":0,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding","valueBoolean":true}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages"}},{"id":"ValueSet.compose.include.concept.designation.use","path":"ValueSet.compose.include.concept.designation.use","short":"Types of uses of designations","definition":"A code that represents types of uses of designations.","comment":"If no use is provided, the designation can be assumed to be suitable for general display to a human user.","min":0,"max":"1","base":{"path":"ValueSet.compose.include.concept.designation.use","min":0,"max":"1"},"type":[{"code":"Coding"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ConceptDesignationUse"}],"strength":"extensible","description":"Details of how a designation would be used.","valueSet":"http://hl7.org/fhir/ValueSet/designation-use"}},{"id":"ValueSet.compose.include.concept.designation.value","path":"ValueSet.compose.include.concept.designation.value","short":"The text value for this designation","definition":"The text value for this designation.","min":1,"max":"1","base":{"path":"ValueSet.compose.include.concept.designation.value","min":1,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.compose.include.filter","path":"ValueSet.compose.include.filter","short":"Select codes/concepts by their properties (including relationships)","definition":"Select concepts by specify a matching criterion based on the properties (including relationships) defined by the system, or on filters defined by the system. If multiple filters are specified, they SHALL all be true.","comment":"Selecting codes by specifying filters based on properties is only possible where the underlying code system defines appropriate properties. Note that in some cases, the underlying code system defines the logical concepts but not the literal codes for the concepts. In such cases, the literal definitions may be provided by a third party.","min":0,"max":"*","base":{"path":"ValueSet.compose.include.filter","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"condition":["vsd-3"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.filter.id","path":"ValueSet.compose.include.filter.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ValueSet.compose.include.filter.extension","path":"ValueSet.compose.include.filter.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ValueSet.compose.include.filter.modifierExtension","path":"ValueSet.compose.include.filter.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.filter.property","path":"ValueSet.compose.include.filter.property","short":"A property/filter defined by the code system","definition":"A code that identifies a property or a filter defined in the code system.","min":1,"max":"1","base":{"path":"ValueSet.compose.include.filter.property","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.filter.op","path":"ValueSet.compose.include.filter.op","short":"= | is-a | descendent-of | is-not-a | regex | in | not-in | generalizes | exists","definition":"The kind of operation to perform as a part of the filter criteria.","comment":"In case filter.property represents a property of the system, the operation applies to the selected property. In case filter.property represents a filter of the system, the operation SHALL match one of the CodeSystem.filter.operator values.","min":1,"max":"1","base":{"path":"ValueSet.compose.include.filter.op","min":1,"max":"1"},"type":[{"code":"code"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"FilterOperator"}],"strength":"required","description":"The kind of operation to perform as a part of a property based filter.","valueSet":"http://hl7.org/fhir/ValueSet/filter-operator|4.0.1"},"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.filter.value","path":"ValueSet.compose.include.filter.value","short":"Code from the system, or regex criteria, or boolean value for exists","definition":"The match value may be either a code defined by the system, or a string value, which is a regex match on the literal string of the property value  (if the filter represents a property defined in CodeSystem) or of the system filter value (if the filter represents a filter defined in CodeSystem) when the operation is 'regex', or one of the values (true and false), when the operation is 'exists'.","comment":"Use regex matching with care - full regex matching on every SNOMED CT term is prohibitive, for example.","min":1,"max":"1","base":{"path":"ValueSet.compose.include.filter.value","min":1,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.valueSet","path":"ValueSet.compose.include.valueSet","short":"Select the contents included in this value set","definition":"Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url.  If multiple value sets are specified this includes the union of the contents of all of the referenced value sets.","comment":"The value set URI is either a logical reference to a defined value set such as a [SNOMED CT reference set](snomedct.html#implicit), or a direct reference to a value set definition using ValueSet.url. The reference might not refer to an actual FHIR ValueSet resource; in this case, whatever is referred to is an implicit definition of a value set that needs to be clear about how versions are resolved.","min":0,"max":"*","base":{"path":"ValueSet.compose.include.valueSet","min":0,"max":"*"},"type":[{"code":"canonical","targetProfile":["http://hl7.org/fhir/StructureDefinition/ValueSet"]}],"condition":["vsd-1"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.exclude","path":"ValueSet.compose.exclude","short":"Explicitly exclude codes from a code system or other value sets","definition":"Exclude one or more codes from the value set based on code system filters and/or other value sets.","comment":"Usually this is used to selectively exclude codes that were included by subsumption in the inclusions. Any display names specified for the codes are ignored.","min":0,"max":"*","base":{"path":"ValueSet.compose.exclude","min":0,"max":"*"},"contentReference":"#ValueSet.compose.include","condition":["vsd-2"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.expansion","path":"ValueSet.expansion","short":"Used when the value set is \"expanded\"","definition":"A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed.","comment":"Expansion is performed to produce a collection of codes that are ready to use for data entry or validation. Value set expansions are always considered to be stateless - they are a record of the set of codes in the value set at a point in time under a given set of conditions, and are not subject to ongoing maintenance.\n\nExpansion.parameter is  a simplified list of parameters - a subset of the features of the [Parameters](parameters.html) resource.","min":0,"max":"1","base":{"path":"ValueSet.expansion","min":0,"max":"1"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.expansion.id","path":"ValueSet.expansion.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ValueSet.expansion.extension","path":"ValueSet.expansion.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ValueSet.expansion.modifierExtension","path":"ValueSet.expansion.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.expansion.identifier","path":"ValueSet.expansion.identifier","short":"Identifies the value set expansion (business identifier)","definition":"An identifier that uniquely identifies this expansion of the valueset, based on a unique combination of the provided parameters, the system default parameters, and the underlying system code system versions etc. Systems may re-use the same identifier as long as those factors remain the same, and the expansion is the same, but are not required to do so. This is a business identifier.","comment":"Typically, this uri is a UUID (e.g. urn:uuid:8230ff20-c97a-4167-a59d-dc2cb9df16dd).","min":0,"max":"1","base":{"path":"ValueSet.expansion.identifier","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.expansion.timestamp","path":"ValueSet.expansion.timestamp","short":"Time ValueSet expansion happened","definition":"The time at which the expansion was produced by the expanding system.","comment":"This SHOULD be a fully populated instant, but in some circumstances, value sets are expanded by hand, and the expansion is published without that precision.","min":1,"max":"1","base":{"path":"ValueSet.expansion.timestamp","min":1,"max":"1"},"type":[{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.expansion.total","path":"ValueSet.expansion.total","short":"Total number of codes in the expansion","definition":"The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.","comment":"Paging only applies to flat expansions.","min":0,"max":"1","base":{"path":"ValueSet.expansion.total","min":0,"max":"1"},"type":[{"code":"integer"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.expansion.offset","path":"ValueSet.expansion.offset","short":"Offset at which this resource starts","definition":"If paging is being used, the offset at which this resource starts.  I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL NOT be present.","comment":"Paging only applies to flat expansions. If a filter is applied, the count is the number of concepts that matched the filter, not the number of concepts in an unfiltered view of the expansion.","min":0,"max":"1","base":{"path":"ValueSet.expansion.offset","min":0,"max":"1"},"type":[{"code":"integer"}],"meaningWhenMissing":"Paging is not being used","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.expansion.parameter","path":"ValueSet.expansion.parameter","short":"Parameter that controlled the expansion process","definition":"A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion.","comment":"The server decides which parameters to include here, but at a minimum, the list SHOULD include all of the parameters that affect the $expand operation. If the expansion will be persisted all of these parameters SHALL be included. If the codeSystem on the server has a specified version then this version SHALL be provided as a parameter in the expansion (note that not all code systems have a version).","min":0,"max":"*","base":{"path":"ValueSet.expansion.parameter","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.expansion.parameter.id","path":"ValueSet.expansion.parameter.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ValueSet.expansion.parameter.extension","path":"ValueSet.expansion.parameter.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ValueSet.expansion.parameter.modifierExtension","path":"ValueSet.expansion.parameter.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.expansion.parameter.name","path":"ValueSet.expansion.parameter.name","short":"Name as assigned by the client or server","definition":"Name of the input parameter to the $expand operation; may be a server-assigned name for additional default or other server-supplied parameters used to control the expansion process.","comment":"The names are assigned at the discretion of the server.","min":1,"max":"1","base":{"path":"ValueSet.expansion.parameter.name","min":1,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.expansion.parameter.value[x]","path":"ValueSet.expansion.parameter.value[x]","short":"Value of the named parameter","definition":"The value of the parameter.","min":0,"max":"1","base":{"path":"ValueSet.expansion.parameter.value[x]","min":0,"max":"1"},"type":[{"code":"string"},{"code":"boolean"},{"code":"integer"},{"code":"decimal"},{"code":"uri"},{"code":"code"},{"code":"dateTime"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.expansion.contains","path":"ValueSet.expansion.contains","short":"Codes in the value set","definition":"The codes that are contained in the value set expansion.","min":0,"max":"*","base":{"path":"ValueSet.expansion.contains","min":0,"max":"*"},"type":[{"code":"BackboneElement"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"vsd-6","severity":"error","human":"SHALL have a code or a display","expression":"code.exists() or display.exists()","xpath":"exists(f:code) or exists(f:display)"},{"key":"vsd-9","severity":"error","human":"Must have a code if not abstract","expression":"code.exists() or abstract = true","xpath":"exists(f:code) or (f:abstract/@value = true())"},{"key":"vsd-10","severity":"error","human":"Must have a system if a code is present","expression":"code.empty() or system.exists()","xpath":"exists(f:system) or not(exists(f:code))"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.expansion.contains.id","path":"ValueSet.expansion.contains.id","representation":["xmlAttr"],"short":"Unique id for inter-element referencing","definition":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.","min":0,"max":"1","base":{"path":"Element.id","min":0,"max":"1"},"type":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type","valueUrl":"string"}],"code":"http://hl7.org/fhirpath/System.String"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ValueSet.expansion.contains.extension","path":"ValueSet.expansion.contains.extension","short":"Additional content defined by implementations","definition":"May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","alias":["extensions","user content"],"min":0,"max":"*","base":{"path":"Element.extension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"n/a"}]},{"id":"ValueSet.expansion.contains.modifierExtension","path":"ValueSet.expansion.contains.modifierExtension","short":"Extensions that cannot be ignored even if unrecognized","definition":"May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).","comment":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.","requirements":"Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).","alias":["extensions","user content","modifiers"],"min":0,"max":"*","base":{"path":"BackboneElement.modifierExtension","min":0,"max":"*"},"type":[{"code":"Extension"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"},{"key":"ext-1","severity":"error","human":"Must have either extensions or value[x], not both","expression":"extension.exists() != value.exists()","xpath":"exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])","source":"http://hl7.org/fhir/StructureDefinition/Extension"}],"isModifier":true,"isModifierReason":"Modifier extensions are expected to modify the meaning or interpretation of the element that contains them","isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.expansion.contains.system","path":"ValueSet.expansion.contains.system","short":"System value for the code","definition":"An absolute URI which is the code system in which the code for this item in the expansion is defined.","min":0,"max":"1","base":{"path":"ValueSet.expansion.contains.system","min":0,"max":"1"},"type":[{"code":"uri"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.expansion.contains.abstract","path":"ValueSet.expansion.contains.abstract","short":"If user cannot select this entry","definition":"If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.","comment":"This should not be understood to exclude its use for searching (e.g. by subsumption testing). The client should know whether it is appropriate for the user to select an abstract code or not.","min":0,"max":"1","base":{"path":"ValueSet.expansion.contains.abstract","min":0,"max":"1"},"type":[{"code":"boolean"}],"meaningWhenMissing":"If this is not populated, systems can assume that the concept it not abstract. This SHALL always be populated for abstract concepts","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.expansion.contains.inactive","path":"ValueSet.expansion.contains.inactive","short":"If concept is inactive in the code system","definition":"If the concept is inactive in the code system that defines it. Inactive codes are those that are no longer to be used, but are maintained by the code system for understanding legacy data. It might not be known or specified whether an concept is inactive (and it may depend on the context of use).","comment":"This should only have a value if the concept is inactive.","min":0,"max":"1","base":{"path":"ValueSet.expansion.contains.inactive","min":0,"max":"1"},"type":[{"code":"boolean"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.expansion.contains.version","path":"ValueSet.expansion.contains.version","short":"Version in which this code/display is defined","definition":"The version of the code system from this code was taken. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.","comment":"The exact value of the version string is specified by the system from which the code is derived.","min":0,"max":"1","base":{"path":"ValueSet.expansion.contains.version","min":0,"max":"1"},"type":[{"code":"string"}],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.expansion.contains.code","path":"ValueSet.expansion.contains.code","short":"Code - if blank, this is not a selectable code","definition":"The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set.","min":0,"max":"1","base":{"path":"ValueSet.expansion.contains.code","min":0,"max":"1"},"type":[{"code":"code"}],"condition":["vsd-6"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.expansion.contains.display","path":"ValueSet.expansion.contains.display","short":"User display for the concept","definition":"The recommended display for this item in the expansion.","min":0,"max":"1","base":{"path":"ValueSet.expansion.contains.display","min":0,"max":"1"},"type":[{"code":"string"}],"condition":["vsd-6"],"constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.expansion.contains.designation","path":"ValueSet.expansion.contains.designation","short":"Additional representations for this item","definition":"Additional representations for this item - other languages, aliases, specialized purposes, used for particular purposes, etc. These are relevant when the conditions of the expansion do not fix to a single correct representation.","comment":"The designations provided must be based on the value set and code system definitions.","min":0,"max":"*","base":{"path":"ValueSet.expansion.contains.designation","min":0,"max":"*"},"contentReference":"#ValueSet.compose.include.concept.designation","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false},{"id":"ValueSet.expansion.contains.contains","path":"ValueSet.expansion.contains.contains","short":"Codes contained under this entry","definition":"Other codes and entries contained under this entry in the hierarchy.","comment":"If the expansion uses this element, there is  no implication about the logical relationship between them, and the  structure cannot be used for logical inferencing. The structure  exists to provide navigational assistance for helping human users to  locate codes in the expansion.","min":0,"max":"*","base":{"path":"ValueSet.expansion.contains.contains","min":0,"max":"*"},"contentReference":"#ValueSet.expansion.contains","constraint":[{"key":"ele-1","severity":"error","human":"All FHIR elements must have a @value or children","expression":"hasValue() or (children().count() > id.count())","xpath":"@value|f:*|h:div","source":"http://hl7.org/fhir/StructureDefinition/Element"}],"isModifier":false,"isSummary":false}]},"differential":{"element":[{"id":"ValueSet","path":"ValueSet","short":"A set of codes drawn from one or more code systems","definition":"A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [CodeSystem](codesystem.html) definitions and their use in [coded elements](terminologies.html).","min":0,"max":"*","constraint":[{"key":"vsd-0","severity":"warning","human":"Name should be usable as an identifier for the module by machine processing applications such as code generation","expression":"name.matches('[A-Z]([A-Za-z0-9_]){0,254}')","xpath":"not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')"}],"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.url","path":"ValueSet.url","short":"Canonical identifier for this value set, represented as a URI (globally unique)","definition":"An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.","comment":"Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred.  Multiple instances may share the same URL if they have a distinct version.\n\nThe determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author.  Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). \n\nIn some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.","requirements":"Allows the value set to be referenced by a single globally unique identifier.","min":0,"max":"1","type":[{"code":"uri"}],"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.url"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.identifier","path":"ValueSet.identifier","short":"Additional identifier for the value set (business identifier)","definition":"A formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance.","comment":"Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this value set outside of FHIR, where it is not possible to use the logical URI.","requirements":"Allows externally provided and/or usable business identifiers to be easily associated with the module.","min":0,"max":"*","type":[{"code":"Identifier"}],"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.identifier"},{"identity":"w5","map":"FiveWs.identifier"},{"identity":"objimpl","map":"no-gen-base"}]},{"id":"ValueSet.version","path":"ValueSet.version","short":"Business version of the value set","definition":"The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the value set author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.","comment":"There may be different value set instances that have the same identifier but different versions.  The version can be appended to the url in a reference to allow a reference to a particular business version of the value set with the format [url]|[version].","min":0,"max":"1","type":[{"code":"string"}],"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.version"},{"identity":"w5","map":"FiveWs.version"}]},{"id":"ValueSet.name","path":"ValueSet.name","short":"Name for this value set (computer friendly)","definition":"A natural language name identifying the value set. This name should be usable as an identifier for the module by machine processing applications such as code generation.","comment":"The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.A name should be provided unless the value set is a contained resource (e.g. an anonymous value set in a profile). Most registries will require a name.","requirements":"Support human navigation and code generation.","min":0,"max":"1","type":[{"code":"string"}],"condition":["inv-0"],"isSummary":true},{"id":"ValueSet.title","path":"ValueSet.title","short":"Name for this value set (human friendly)","definition":"A short, descriptive, user-friendly title for the value set.","comment":"This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.","min":0,"max":"1","type":[{"code":"string"}],"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.title"}]},{"id":"ValueSet.status","path":"ValueSet.status","short":"draft | active | retired | unknown","definition":"The status of this value set. Enables tracking the life-cycle of the content. The status of the value set applies to the value set definition (ValueSet.compose) and the associated ValueSet metadata. Expansions do not have a state.","comment":"Allows filtering of value sets that are appropriate for use versus not.See also the [valueset-workflowStatus](extension-valueset-workflowstatus.html) extension for additional status information related to the editorial process.","min":1,"max":"1","type":[{"code":"code"}],"isModifier":true,"isModifierReason":"This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration","isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"PublicationStatus"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding","valueBoolean":true}],"strength":"required","description":"The lifecycle status of an artifact.","valueSet":"http://hl7.org/fhir/ValueSet/publication-status|4.0.1"},"mapping":[{"identity":"workflow","map":"Definition.status"},{"identity":"w5","map":"FiveWs.status"}]},{"id":"ValueSet.experimental","path":"ValueSet.experimental","short":"For testing purposes, not real usage","definition":"A Boolean value to indicate that this value set is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.","comment":"Allows filtering of value sets that are appropriate for use versus not.","requirements":"Enables experimental content to be developed following the same lifecycle that would be used for a production-level value set.","min":0,"max":"1","type":[{"code":"boolean"}],"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.experimental"},{"identity":"w5","map":"FiveWs.class"}]},{"id":"ValueSet.date","path":"ValueSet.date","short":"Date last changed","definition":"The date (and optionally time) when the value set was created or revised (e.g. the 'content logical definition').","comment":"Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the value set. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.","alias":["Revision Date"],"min":0,"max":"1","type":[{"code":"dateTime"}],"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.date"},{"identity":"w5","map":"FiveWs.recorded"},{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.publisher","path":"ValueSet.publisher","short":"Name of the publisher (organization or individual)","definition":"The name of the organization or individual that published the value set.","comment":"Usually an organization but may be an individual. The publisher (or steward) of the value set is the organization or individual primarily responsible for the maintenance and upkeep of the value set. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the value set. This item SHOULD be populated unless the information is available from context.","requirements":"Helps establish the \"authority/credibility\" of the value set.  May also allow for contact.","min":0,"max":"1","type":[{"code":"string"}],"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.publisher"},{"identity":"w5","map":"FiveWs.witness"}]},{"id":"ValueSet.contact","path":"ValueSet.contact","short":"Contact details for the publisher","definition":"Contact details to assist a user in finding and communicating with the publisher.","comment":"May be a web site, an email address, a telephone number, etc.","min":0,"max":"*","type":[{"code":"ContactDetail"}],"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.contact"}]},{"id":"ValueSet.description","path":"ValueSet.description","short":"Natural language description of the value set","definition":"A free text natural language description of the value set from a consumer's perspective. The textual description specifies the span of meanings for concepts to be included within the Value Set Expansion, and also may specify the intended use and limitations of the Value Set.","comment":"This description can be used to capture details such as why the value set was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the value set as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the value set is presumed to be the predominant language in the place the value set was created).The description is not intended to describe the semantics of the Value Set - there are no intrinsic semantics separate from the codes contained in its expansion. The description should capture its intended use, which is needed for ensuring integrity for its use in models across future changes. A description should be provided unless the value set is a contained resource (e.g. an anonymous value set in a profile). Most registries will require a description.","alias":["Scope","Purpose"],"min":0,"max":"1","type":[{"code":"markdown"}],"mapping":[{"identity":"workflow","map":"Definition.description"},{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.useContext","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status","valueCode":"trial-use"}],"path":"ValueSet.useContext","short":"The context that the content is intended to support","definition":"The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate value set instances.","comment":"When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.","requirements":"Assist in searching for appropriate content.","min":0,"max":"*","type":[{"code":"UsageContext"}],"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.useContext"}]},{"id":"ValueSet.jurisdiction","path":"ValueSet.jurisdiction","short":"Intended jurisdiction for value set (if applicable)","definition":"A legal or geographic region in which the value set is intended to be used.","comment":"It may be possible for the value set to be used in jurisdictions other than those for which it was originally designed or intended.","min":0,"max":"*","type":[{"code":"CodeableConcept"}],"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Jurisdiction"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding","valueBoolean":true}],"strength":"extensible","description":"Countries and regions within which this artifact is targeted for use.","valueSet":"http://hl7.org/fhir/ValueSet/jurisdiction"},"mapping":[{"identity":"workflow","map":"Definition.jurisdiction"}]},{"id":"ValueSet.immutable","path":"ValueSet.immutable","short":"Indicates whether or not any change to the content logical definition may occur","definition":"If this is set to 'true', then no new versions of the content logical definition can be created.  Note: Other metadata might still change.","comment":"Normally immutability is set to 'false', which is the default assumption if it is not populated.  Note that the implication is that if this is set to 'true', there may be only one ValueSet version for this definition. Immutability tends to be set to 'true' in one of two cases: - Where the value set, by the nature of its usage, cannot change.  For example \"All specializations of ACT in ActClassCode\" - Where there's no safe way to express the \"Purpose\" such that someone else could safely make changes to the value set definition. Source workflow control must guarantee that the same URI always yields the same definition.","min":0,"max":"1","type":[{"code":"boolean"}],"isSummary":true},{"id":"ValueSet.purpose","path":"ValueSet.purpose","short":"Why this value set is defined","definition":"Explanation of why this value set is needed and why it has been designed as it has.","comment":"This element does not describe the usage of the value set. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is.  This may be used to point to source materials or specifications that drove the structure of this value set.","min":0,"max":"1","type":[{"code":"markdown"}],"mapping":[{"identity":"workflow","map":"Definition.purpose"},{"identity":"w5","map":"FiveWs.why[x]"},{"identity":"objimpl","map":"no-gen-base"}]},{"id":"ValueSet.copyright","path":"ValueSet.copyright","short":"Use and/or publishing restrictions","definition":"A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.","comment":"nullFrequently, the copyright differs between the value set and the codes that are included. The copyright statement should clearly differentiate between these when required.","requirements":"Consumers must be able to determine any legal restrictions on the use of the value set and/or its content.","alias":["License","Restrictions"],"min":0,"max":"1","type":[{"code":"markdown"}],"mapping":[{"identity":"workflow","map":"Definition.copyright"},{"identity":"objimpl","map":"no-gen-base"}]},{"id":"ValueSet.compose","path":"ValueSet.compose","short":"Content logical definition of the value set (CLD)","definition":"A set of criteria that define the contents of the value set by including or excluding codes selected from the specified code system(s) that the value set draws from. This is also known as the Content Logical Definition (CLD).","alias":["Content Logical Definition","CLD"],"min":0,"max":"1","type":[{"code":"BackboneElement"}]},{"id":"ValueSet.compose.lockedDate","path":"ValueSet.compose.lockedDate","short":"Fixed date for references with no specified version (transitive)","definition":"The Locked Date is  the effective date that is used to determine the version of all referenced Code Systems and Value Set Definitions included in the compose that are not already tied to a specific version.","comment":"With a defined lockedDate the value set is considered \"Locked\". Otherwise, the value set may have different expansions as underlying code systems and/or value sets evolve.  The interpretation of lockedDate is often dependent on the context - e.g. a SNOMED CT derived value set with a lockedDate will have a different expansion in USA than in UK.  If a value set specifies a version for include and exclude statements, and also specifies a locked date, the specified versions need to be available that date, or the value set will not be usable.","min":0,"max":"1","type":[{"code":"date"}],"isSummary":true,"mapping":[{"identity":"w5","map":"FiveWs.init"}]},{"id":"ValueSet.compose.inactive","path":"ValueSet.compose.inactive","short":"Whether inactive codes are in the value set","definition":"Whether inactive codes - codes that are not approved for current use - are in the value set. If inactive = true, inactive codes are to be included in the expansion, if inactive = false, the inactive codes will not be included in the expansion. If absent, the behavior is determined by the implementation, or by the applicable $expand parameters (but generally, inactive codes would be expected to be included).","comment":"Note that in the FHIR terminology framework, \"deprecated\" does not mean inactive, but in some code systems, e.g. LOINC, \"deprecated\" does mean inactive. Code systems should define what codes are considered to be inactive. If this is not clearly defined (including in the FHIR code system resource), then all codes are assumed to be active.\n\nThe Value Set Definition specification defines an ActiveOnly element, which is the reverse of this element e.g. (ValueSet.compose.inactive=FALSE) is the same as (VSD.ActiveOnly=TRUE).","min":0,"max":"1","type":[{"code":"boolean"}],"isSummary":true},{"id":"ValueSet.compose.include","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name","valueString":"ConceptSet"}],"path":"ValueSet.compose.include","short":"Include one or more codes from a code system or other value set(s)","definition":"Include one or more codes from a code system or other value set(s).","comment":"All the conditions in an include must be true. If a system is listed, all the codes from the system are listed. If one or more filters are listed, all of the filters must apply. If one or more value sets are listed, the codes must be in all the value sets. E.g. each include is 'include all the codes that meet all these conditions'.","min":1,"max":"*","type":[{"code":"BackboneElement"}],"constraint":[{"key":"vsd-2","severity":"error","human":"A value set with concepts or filters SHALL include a system","expression":"(concept.exists() or filter.exists()) implies system.exists()","xpath":"not(exists(f:concept) or exists(f:filter)) or exists(f:system)"},{"key":"vsd-3","severity":"error","human":"Cannot have both concept and filter","expression":"concept.empty() or filter.empty()","xpath":"not(exists(f:concept)) or not(exists(f:filter))"},{"key":"vsd-1","severity":"error","human":"A value set include/exclude SHALL have a value set or a system","expression":"valueSet.exists() or system.exists()","xpath":"exists(f:valueSet) or exists(f:system)"}],"isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.system","path":"ValueSet.compose.include.system","short":"The system the codes come from","definition":"An absolute URI which is the code system from which the selected codes come from.","comment":"If there are no codes or filters, the entire code system is included. Note that the set of codes that are included may contain abstract codes. See ''Coding.system'' for further documentation about the correct value for the system element.","min":0,"max":"1","type":[{"code":"uri"}],"condition":["vsd-1","vsd-2"],"isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.version","path":"ValueSet.compose.include.version","short":"Specific version of the code system referred to","definition":"The version of the code system that the codes are selected from, or the special version '*' for all versions.","comment":"This is used when selecting the descendants of a concept - they may change between versions. If no version is specified, then the exact contents of the value set might not be known until a context of use binds it to a particular version. The special value '*' means all versions; It is at server discretion regarding expansions and which versions must be supported.","min":0,"max":"1","type":[{"code":"string"}],"isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.concept","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name","valueString":"ConceptReference"}],"path":"ValueSet.compose.include.concept","short":"A concept defined in the system","definition":"Specifies a concept to be included or excluded.","comment":"The list of concepts is considered ordered, though the order might not have any particular significance. Typically, the order of an expansion follows that defined in the compose element.","min":0,"max":"*","type":[{"code":"BackboneElement"}],"condition":["vsd-3"],"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.concept.code","path":"ValueSet.compose.include.concept.code","short":"Code or expression from system","definition":"Specifies a code for the concept to be included or excluded.","comment":"Expressions are allowed if defined by the underlying code system.","min":1,"max":"1","type":[{"code":"code"}],"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.concept.display","path":"ValueSet.compose.include.concept.display","short":"Text to display for this code for this value set in this valueset","definition":"The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system.","comment":"The value set resource allows for an alternative display to be specified for when this concept is used in this particular value set. See notes in the value set narrative about the correct use of this element.","min":0,"max":"1","type":[{"code":"string"}],"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.concept.designation","path":"ValueSet.compose.include.concept.designation","short":"Additional representations for this concept","definition":"Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.","comment":"Concepts have both a ```display``` and an array of ```designation```. The display is equivalent to a special designation with an implied ```designation.use``` of \"primary code\" and a language equal to the [Resource Language](resource.html#language).","min":0,"max":"*","type":[{"code":"BackboneElement"}]},{"id":"ValueSet.compose.include.concept.designation.language","path":"ValueSet.compose.include.concept.designation.language","short":"Human language of the designation","definition":"The language this designation is defined for.","comment":"In the absence of a language, the resource language applies.","min":0,"max":"1","type":[{"code":"code"}],"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet","valueCanonical":"http://hl7.org/fhir/ValueSet/all-languages"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"Language"},{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding","valueBoolean":true}],"strength":"preferred","description":"A human language.","valueSet":"http://hl7.org/fhir/ValueSet/languages"}},{"id":"ValueSet.compose.include.concept.designation.use","path":"ValueSet.compose.include.concept.designation.use","short":"Types of uses of designations","definition":"A code that represents types of uses of designations.","comment":"If no use is provided, the designation can be assumed to be suitable for general display to a human user.","min":0,"max":"1","type":[{"code":"Coding"}],"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"ConceptDesignationUse"}],"strength":"extensible","description":"Details of how a designation would be used.","valueSet":"http://hl7.org/fhir/ValueSet/designation-use"}},{"id":"ValueSet.compose.include.concept.designation.value","path":"ValueSet.compose.include.concept.designation.value","short":"The text value for this designation","definition":"The text value for this designation.","min":1,"max":"1","type":[{"code":"string"}]},{"id":"ValueSet.compose.include.filter","path":"ValueSet.compose.include.filter","short":"Select codes/concepts by their properties (including relationships)","definition":"Select concepts by specify a matching criterion based on the properties (including relationships) defined by the system, or on filters defined by the system. If multiple filters are specified, they SHALL all be true.","comment":"Selecting codes by specifying filters based on properties is only possible where the underlying code system defines appropriate properties. Note that in some cases, the underlying code system defines the logical concepts but not the literal codes for the concepts. In such cases, the literal definitions may be provided by a third party.","min":0,"max":"*","type":[{"code":"BackboneElement"}],"condition":["vsd-3"],"isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.filter.property","path":"ValueSet.compose.include.filter.property","short":"A property/filter defined by the code system","definition":"A code that identifies a property or a filter defined in the code system.","min":1,"max":"1","type":[{"code":"code"}],"isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.filter.op","path":"ValueSet.compose.include.filter.op","short":"= | is-a | descendent-of | is-not-a | regex | in | not-in | generalizes | exists","definition":"The kind of operation to perform as a part of the filter criteria.","comment":"In case filter.property represents a property of the system, the operation applies to the selected property. In case filter.property represents a filter of the system, the operation SHALL match one of the CodeSystem.filter.operator values.","min":1,"max":"1","type":[{"code":"code"}],"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"FilterOperator"}],"strength":"required","description":"The kind of operation to perform as a part of a property based filter.","valueSet":"http://hl7.org/fhir/ValueSet/filter-operator|4.0.1"},"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.filter.value","path":"ValueSet.compose.include.filter.value","short":"Code from the system, or regex criteria, or boolean value for exists","definition":"The match value may be either a code defined by the system, or a string value, which is a regex match on the literal string of the property value  (if the filter represents a property defined in CodeSystem) or of the system filter value (if the filter represents a filter defined in CodeSystem) when the operation is 'regex', or one of the values (true and false), when the operation is 'exists'.","comment":"Use regex matching with care - full regex matching on every SNOMED CT term is prohibitive, for example.","min":1,"max":"1","type":[{"code":"string"}],"isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.include.valueSet","path":"ValueSet.compose.include.valueSet","short":"Select the contents included in this value set","definition":"Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url.  If multiple value sets are specified this includes the union of the contents of all of the referenced value sets.","comment":"The value set URI is either a logical reference to a defined value set such as a [SNOMED CT reference set](snomedct.html#implicit), or a direct reference to a value set definition using ValueSet.url. The reference might not refer to an actual FHIR ValueSet resource; in this case, whatever is referred to is an implicit definition of a value set that needs to be clear about how versions are resolved.","min":0,"max":"*","type":[{"code":"canonical","targetProfile":["http://hl7.org/fhir/StructureDefinition/ValueSet"]}],"condition":["vsd-1"],"isSummary":true,"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.compose.exclude","path":"ValueSet.compose.exclude","short":"Explicitly exclude codes from a code system or other value sets","definition":"Exclude one or more codes from the value set based on code system filters and/or other value sets.","comment":"Usually this is used to selectively exclude codes that were included by subsumption in the inclusions. Any display names specified for the codes are ignored.","min":0,"max":"*","contentReference":"#ValueSet.compose.include","condition":["vsd-2"],"mapping":[{"identity":"rim","map":"N/A"}]},{"id":"ValueSet.expansion","path":"ValueSet.expansion","short":"Used when the value set is \"expanded\"","definition":"A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed.","comment":"Expansion is performed to produce a collection of codes that are ready to use for data entry or validation. Value set expansions are always considered to be stateless - they are a record of the set of codes in the value set at a point in time under a given set of conditions, and are not subject to ongoing maintenance.\n\nExpansion.parameter is  a simplified list of parameters - a subset of the features of the [Parameters](parameters.html) resource.","min":0,"max":"1","type":[{"code":"BackboneElement"}]},{"id":"ValueSet.expansion.identifier","path":"ValueSet.expansion.identifier","short":"Identifies the value set expansion (business identifier)","definition":"An identifier that uniquely identifies this expansion of the valueset, based on a unique combination of the provided parameters, the system default parameters, and the underlying system code system versions etc. Systems may re-use the same identifier as long as those factors remain the same, and the expansion is the same, but are not required to do so. This is a business identifier.","comment":"Typically, this uri is a UUID (e.g. urn:uuid:8230ff20-c97a-4167-a59d-dc2cb9df16dd).","min":0,"max":"1","type":[{"code":"uri"}]},{"id":"ValueSet.expansion.timestamp","path":"ValueSet.expansion.timestamp","short":"Time ValueSet expansion happened","definition":"The time at which the expansion was produced by the expanding system.","comment":"This SHOULD be a fully populated instant, but in some circumstances, value sets are expanded by hand, and the expansion is published without that precision.","min":1,"max":"1","type":[{"code":"dateTime"}]},{"id":"ValueSet.expansion.total","path":"ValueSet.expansion.total","short":"Total number of codes in the expansion","definition":"The total number of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.","comment":"Paging only applies to flat expansions.","min":0,"max":"1","type":[{"code":"integer"}]},{"id":"ValueSet.expansion.offset","path":"ValueSet.expansion.offset","short":"Offset at which this resource starts","definition":"If paging is being used, the offset at which this resource starts.  I.e. this resource is a partial view into the expansion. If paging is not being used, this element SHALL NOT be present.","comment":"Paging only applies to flat expansions. If a filter is applied, the count is the number of concepts that matched the filter, not the number of concepts in an unfiltered view of the expansion.","min":0,"max":"1","type":[{"code":"integer"}],"meaningWhenMissing":"Paging is not being used"},{"id":"ValueSet.expansion.parameter","path":"ValueSet.expansion.parameter","short":"Parameter that controlled the expansion process","definition":"A parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion.","comment":"The server decides which parameters to include here, but at a minimum, the list SHOULD include all of the parameters that affect the $expand operation. If the expansion will be persisted all of these parameters SHALL be included. If the codeSystem on the server has a specified version then this version SHALL be provided as a parameter in the expansion (note that not all code systems have a version).","min":0,"max":"*","type":[{"code":"BackboneElement"}]},{"id":"ValueSet.expansion.parameter.name","path":"ValueSet.expansion.parameter.name","short":"Name as assigned by the client or server","definition":"Name of the input parameter to the $expand operation; may be a server-assigned name for additional default or other server-supplied parameters used to control the expansion process.","comment":"The names are assigned at the discretion of the server.","min":1,"max":"1","type":[{"code":"string"}]},{"id":"ValueSet.expansion.parameter.value[x]","path":"ValueSet.expansion.parameter.value[x]","short":"Value of the named parameter","definition":"The value of the parameter.","min":0,"max":"1","type":[{"code":"string"},{"code":"boolean"},{"code":"integer"},{"code":"decimal"},{"code":"uri"},{"code":"code"},{"code":"dateTime"}]},{"id":"ValueSet.expansion.contains","path":"ValueSet.expansion.contains","short":"Codes in the value set","definition":"The codes that are contained in the value set expansion.","min":0,"max":"*","type":[{"code":"BackboneElement"}],"constraint":[{"key":"vsd-6","severity":"error","human":"SHALL have a code or a display","expression":"code.exists() or display.exists()","xpath":"exists(f:code) or exists(f:display)"},{"key":"vsd-9","severity":"error","human":"Must have a code if not abstract","expression":"code.exists() or abstract = true","xpath":"exists(f:code) or (f:abstract/@value = true())"},{"key":"vsd-10","severity":"error","human":"Must have a system if a code is present","expression":"code.empty() or system.exists()","xpath":"exists(f:system) or not(exists(f:code))"}]},{"id":"ValueSet.expansion.contains.system","path":"ValueSet.expansion.contains.system","short":"System value for the code","definition":"An absolute URI which is the code system in which the code for this item in the expansion is defined.","min":0,"max":"1","type":[{"code":"uri"}]},{"id":"ValueSet.expansion.contains.abstract","path":"ValueSet.expansion.contains.abstract","short":"If user cannot select this entry","definition":"If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.","comment":"This should not be understood to exclude its use for searching (e.g. by subsumption testing). The client should know whether it is appropriate for the user to select an abstract code or not.","min":0,"max":"1","type":[{"code":"boolean"}],"meaningWhenMissing":"If this is not populated, systems can assume that the concept it not abstract. This SHALL always be populated for abstract concepts"},{"id":"ValueSet.expansion.contains.inactive","path":"ValueSet.expansion.contains.inactive","short":"If concept is inactive in the code system","definition":"If the concept is inactive in the code system that defines it. Inactive codes are those that are no longer to be used, but are maintained by the code system for understanding legacy data. It might not be known or specified whether an concept is inactive (and it may depend on the context of use).","comment":"This should only have a value if the concept is inactive.","min":0,"max":"1","type":[{"code":"boolean"}]},{"id":"ValueSet.expansion.contains.version","path":"ValueSet.expansion.contains.version","short":"Version in which this code/display is defined","definition":"The version of the code system from this code was taken. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.","comment":"The exact value of the version string is specified by the system from which the code is derived.","min":0,"max":"1","type":[{"code":"string"}]},{"id":"ValueSet.expansion.contains.code","path":"ValueSet.expansion.contains.code","short":"Code - if blank, this is not a selectable code","definition":"The code for this item in the expansion hierarchy. If this code is missing the entry in the hierarchy is a place holder (abstract) and does not represent a valid code in the value set.","min":0,"max":"1","type":[{"code":"code"}],"condition":["vsd-6"]},{"id":"ValueSet.expansion.contains.display","path":"ValueSet.expansion.contains.display","short":"User display for the concept","definition":"The recommended display for this item in the expansion.","min":0,"max":"1","type":[{"code":"string"}],"condition":["vsd-6"]},{"id":"ValueSet.expansion.contains.designation","path":"ValueSet.expansion.contains.designation","short":"Additional representations for this item","definition":"Additional representations for this item - other languages, aliases, specialized purposes, used for particular purposes, etc. These are relevant when the conditions of the expansion do not fix to a single correct representation.","comment":"The designations provided must be based on the value set and code system definitions.","min":0,"max":"*","contentReference":"#ValueSet.compose.include.concept.designation"},{"id":"ValueSet.expansion.contains.contains","path":"ValueSet.expansion.contains.contains","short":"Codes contained under this entry","definition":"Other codes and entries contained under this entry in the hierarchy.","comment":"If the expansion uses this element, there is  no implication about the logical relationship between them, and the  structure cannot be used for logical inferencing. The structure  exists to provide navigational assistance for helping human users to  locate codes in the expansion.","min":0,"max":"*","contentReference":"#ValueSet.expansion.contains"}]}}
\ No newline at end of file