Repository: FHIR/sushi
Pull request #191 (2020-02-04 20:19:22)

CodeSystem Escape Syntax
This fixes https://standardhealthrecord.atlassian.net/browse/CIMPL-219.

This adds the ability to use the ^ syntax on CodeSystems. The ^ syntax can be used to set metadata attributes on the codeSystem such as "publisher". Unlike on StructureDefinitions, this syntax can only be applied at the root level of the CodeSystem, 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 4fbffc6..dd97289 100644
--- a/antlr/src/main/antlr/FSH.g4
+++ b/antlr/src/main/antlr/FSH.g4
@@ -18,7 +18,7 @@ invariantMetadata:  description | expression | xpath | severity;
 
 valueSet:           KW_VALUESET SEQUENCE vsMetadata* (caretValueRule | vsComponent)*;
 vsMetadata:         id | title | description;
-codeSystem:         KW_CODESYSTEM SEQUENCE csMetadata* concept*;
+codeSystem:         KW_CODESYSTEM SEQUENCE csMetadata* (caretValueRule | concept)*;
 csMetadata:         id | title | description;
 
 // METADATA FIELDS
diff --git a/src/export/CodeSystemExporter.ts b/src/export/CodeSystemExporter.ts
index 1a7b657..257b6a9 100644
--- a/src/export/CodeSystemExporter.ts
+++ b/src/export/CodeSystemExporter.ts
@@ -1,11 +1,18 @@
 import { FSHTank } from '../import/FSHTank';
-import { CodeSystem, CodeSystemConcept } from '../fhirtypes';
+import { CodeSystem, CodeSystemConcept, StructureDefinition } from '../fhirtypes';
+import { setPropertyOnInstance } from '../fhirtypes/common';
 import { FshCodeSystem } from '../fshtypes';
+import { CaretValueRule } from '../fshtypes/rules';
 import { logger } from '../utils/FSHLogger';
+import { MasterFisher, Type } from '../utils';
 import { Package } from '.';
 
 export class CodeSystemExporter {
-  constructor(private readonly tank: FSHTank, private readonly pkg: Package) {}
+  constructor(
+    private readonly tank: FSHTank,
+    private readonly pkg: Package,
+    private fisher: MasterFisher
+  ) {}
 
   private setMetadata(codeSystem: CodeSystem, fshDefinition: FshCodeSystem): void {
     codeSystem.setName(fshDefinition.name, fshDefinition.sourceInfo);
@@ -28,12 +35,33 @@ export class CodeSystemExporter {
     }
   }
 
+  private setCaretRules(codeSystem: CodeSystem, rules: CaretValueRule[]) {
+    const csStructureDefinition = StructureDefinition.fromJSON(
+      this.fisher.fishForFHIR('CodeSystem', Type.Resource)
+    );
+    for (const rule of rules) {
+      try {
+        if (rule instanceof CaretValueRule) {
+          const { fixedValue, pathParts } = csStructureDefinition.validateValueAtPath(
+            rule.caretPath,
+            rule.value,
+            this.fisher
+          );
+          setPropertyOnInstance(codeSystem, pathParts, fixedValue);
+        }
+      } catch (e) {
+        logger.error(e.message, rule.sourceInfo);
+      }
+    }
+  }
+
   exportCodeSystem(fshDefinition: FshCodeSystem): CodeSystem {
     if (this.pkg.codeSystems.some(cs => cs.name === fshDefinition.name)) {
       return;
     }
     const codeSystem = new CodeSystem();
     this.setMetadata(codeSystem, fshDefinition);
+    this.setCaretRules(codeSystem, fshDefinition.rules);
     this.setConcepts(codeSystem, fshDefinition);
     this.pkg.codeSystems.push(codeSystem);
     return codeSystem;
diff --git a/src/export/FHIRExporter.ts b/src/export/FHIRExporter.ts
index 92950a1..7e17106 100644
--- a/src/export/FHIRExporter.ts
+++ b/src/export/FHIRExporter.ts
@@ -29,7 +29,7 @@ export class FHIRExporter {
     );
     this.instanceExporter = new InstanceExporter(this.tank, this.pkg, this.fisher);
     this.valueSetExporter = new ValueSetExporter(this.tank, this.pkg, this.fisher);
-    this.codeSystemExporter = new CodeSystemExporter(this.tank, this.pkg);
+    this.codeSystemExporter = new CodeSystemExporter(this.tank, this.pkg, this.fisher);
   }
 
   export(): Package {
diff --git a/src/fhirtypes/common.ts b/src/fhirtypes/common.ts
index 20e93cd..4ffac16 100644
--- a/src/fhirtypes/common.ts
+++ b/src/fhirtypes/common.ts
@@ -1,4 +1,11 @@
-import { StructureDefinition, PathPart, ElementDefinition, InstanceDefinition, ValueSet } from '.';
+import {
+  StructureDefinition,
+  PathPart,
+  ElementDefinition,
+  InstanceDefinition,
+  ValueSet,
+  CodeSystem
+} from '.';
 import { FixedValueRule } from '../fshtypes/rules';
 import { FshReference, Instance, SourceInfo, FshCode } from '../fshtypes';
 import { FSHTank } from '../import';
@@ -26,7 +33,7 @@ export function setPropertyOnDefinitionInstance(
 }
 
 export function setPropertyOnInstance(
-  instance: StructureDefinition | ElementDefinition | InstanceDefinition | ValueSet,
+  instance: StructureDefinition | ElementDefinition | InstanceDefinition | ValueSet | CodeSystem,
   pathParts: PathPart[],
   fixedValue: any
 ): void {
diff --git a/src/fshtypes/FshCodeSystem.ts b/src/fshtypes/FshCodeSystem.ts
index 4d5811b..e398e0c 100644
--- a/src/fshtypes/FshCodeSystem.ts
+++ b/src/fshtypes/FshCodeSystem.ts
@@ -1,6 +1,7 @@
 import { FshEntity } from './FshEntity';
 import { FshConcept } from './FshConcept';
 import { CodeSystemDuplicateCodeError } from '../errors/CodeSystemDuplicateCodeError';
+import { CaretValueRule } from './rules';
 
 /**
  * For more information about a CodeSystem in FHIR,
@@ -11,11 +12,13 @@ export class FshCodeSystem extends FshEntity {
   title?: string;
   description?: string;
   concepts: FshConcept[];
+  rules: CaretValueRule[];
 
   constructor(public name: string) {
     super();
     this.id = name;
     this.concepts = [];
+    this.rules = [];
   }
 
   addConcept(newConcept: FshConcept) {
diff --git a/src/import/FSHImporter.ts b/src/import/FSHImporter.ts
index 88b0235..0c6e844 100644
--- a/src/import/FSHImporter.ts
+++ b/src/import/FSHImporter.ts
@@ -360,14 +360,15 @@ export class FSHImporter extends FSHVisitor {
     const codeSystem = new FshCodeSystem(ctx.SEQUENCE().getText())
       .withLocation(this.extractStartStop(ctx))
       .withFile(this.currentFile);
-    this.parseCodeSystem(codeSystem, ctx.csMetadata(), ctx.concept());
+    this.parseCodeSystem(codeSystem, ctx.csMetadata(), ctx.concept(), ctx.caretValueRule());
     this.currentDoc.codeSystems.set(codeSystem.name, codeSystem);
   }
 
   private parseCodeSystem(
     codeSystem: FshCodeSystem,
     metaCtx: pc.CsMetadataContext[] = [],
-    conceptCtx: pc.ConceptContext[] = []
+    conceptCtx: pc.ConceptContext[] = [],
+    caretValueRuleCtx: pc.CaretValueRuleContext[] = []
   ) {
     const seenPairs: Map<CsMetadataKey, string> = new Map();
     metaCtx
@@ -402,6 +403,17 @@ export class FSHImporter extends FSHVisitor {
         logger.error(e.message, newConcept.sourceInfo);
       }
     });
+    caretValueRuleCtx.forEach(caretValueRule => {
+      const rule = this.visitCaretValueRule(caretValueRule);
+      if (rule.path) {
+        logger.error(
+          'Caret rule on CodeSystem cannot contain path before ^, skipping rule.',
+          rule.sourceInfo
+        );
+      } else {
+        codeSystem.rules.push(this.visitCaretValueRule(caretValueRule));
+      }
+    });
   }
 
   visitSdMetadata(ctx: pc.SdMetadataContext): { key: SdMetadataKey; value: string } {
diff --git a/src/import/generated/FSH.interp b/src/import/generated/FSH.interp
index 8191093..53ae6df 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, 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
+[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 59, 474, 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, 3, 15, 7, 15, 241, 10, 15, 12, 15, 14, 15, 244, 11, 15, 3, 16, 3, 16, 3, 16, 5, 16, 249, 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, 279, 10, 25, 12, 25, 14, 25, 282, 11, 25, 3, 26, 3, 26, 3, 26, 5, 26, 287, 10, 26, 3, 26, 6, 26, 290, 10, 26, 13, 26, 14, 26, 291, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 5, 27, 299, 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, 312, 10, 29, 12, 29, 14, 29, 315, 11, 29, 3, 30, 3, 30, 3, 30, 3, 30, 3, 30, 3, 30, 7, 30, 323, 10, 30, 12, 30, 14, 30, 326, 11, 30, 3, 31, 3, 31, 5, 31, 330, 10, 31, 3, 31, 3, 31, 3, 31, 3, 31, 7, 31, 336, 10, 31, 12, 31, 14, 31, 339, 11, 31, 3, 32, 3, 32, 5, 32, 343, 10, 32, 3, 32, 3, 32, 3, 32, 3, 32, 3, 33, 3, 33, 5, 33, 351, 10, 33, 3, 33, 3, 33, 5, 33, 355, 10, 33, 3, 34, 3, 34, 5, 34, 359, 10, 34, 3, 34, 3, 34, 5, 34, 363, 10, 34, 3, 35, 3, 35, 3, 35, 3, 35, 5, 35, 369, 10, 35, 3, 36, 3, 36, 3, 36, 3, 36, 5, 36, 375, 10, 36, 3, 36, 3, 36, 3, 36, 5, 36, 380, 10, 36, 5, 36, 382, 10, 36, 3, 37, 3, 37, 3, 37, 3, 38, 3, 38, 3, 38, 3, 39, 3, 39, 3, 39, 7, 39, 393, 10, 39, 12, 39, 14, 39, 396, 11, 39, 3, 39, 3, 39, 3, 40, 3, 40, 3, 40, 5, 40, 403, 10, 40, 3, 41, 3, 41, 3, 42, 3, 42, 3, 42, 3, 42, 3, 42, 5, 42, 412, 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, 434, 10, 48, 3, 49, 3, 49, 3, 49, 7, 49, 439, 10, 49, 12, 49, 14, 49, 442, 11, 49, 3, 50, 3, 50, 5, 50, 446, 10, 50, 3, 51, 3, 51, 3, 51, 5, 51, 451, 10, 51, 3, 52, 3, 52, 3, 52, 3, 53, 3, 53, 3, 53, 3, 53, 3, 54, 3, 54, 5, 54, 462, 10, 54, 3, 55, 3, 55, 5, 55, 466, 10, 55, 3, 56, 3, 56, 3, 57, 3, 57, 5, 57, 472, 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, 493, 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, 248, 3, 2, 2, 2, 32, 250, 3, 2, 2, 2, 34, 253, 3, 2, 2, 2, 36, 256, 3, 2, 2, 2, 38, 259, 3, 2, 2, 2, 40, 262, 3, 2, 2, 2, 42, 265, 3, 2, 2, 2, 44, 268, 3, 2, 2, 2, 46, 271, 3, 2, 2, 2, 48, 274, 3, 2, 2, 2, 50, 283, 3, 2, 2, 2, 52, 293, 3, 2, 2, 2, 54, 300, 3, 2, 2, 2, 56, 305, 3, 2, 2, 2, 58, 316, 3, 2, 2, 2, 60, 327, 3, 2, 2, 2, 62, 340, 3, 2, 2, 2, 64, 348, 3, 2, 2, 2, 66, 362, 3, 2, 2, 2, 68, 364, 3, 2, 2, 2, 70, 370, 3, 2, 2, 2, 72, 383, 3, 2, 2, 2, 74, 386, 3, 2, 2, 2, 76, 394, 3, 2, 2, 2, 78, 399, 3, 2, 2, 2, 80, 404, 3, 2, 2, 2, 82, 411, 3, 2, 2, 2, 84, 413, 3, 2, 2, 2, 86, 415, 3, 2, 2, 2, 88, 417, 3, 2, 2, 2, 90, 419, 3, 2, 2, 2, 92, 421, 3, 2, 2, 2, 94, 433, 3, 2, 2, 2, 96, 435, 3, 2, 2, 2, 98, 443, 3, 2, 2, 2, 100, 447, 3, 2, 2, 2, 102, 452, 3, 2, 2, 2, 104, 455, 3, 2, 2, 2, 106, 459, 3, 2, 2, 2, 108, 465, 3, 2, 2, 2, 110, 467, 3, 2, 2, 2, 112, 471, 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, 242, 3, 2, 2, 2, 237, 235, 3, 2, 2, 2, 238, 241, 5, 62, 32, 2, 239, 241, 5, 100, 51, 2, 240, 238, 3, 2, 2, 2, 240, 239, 3, 2, 2, 2, 241, 244, 3, 2, 2, 2, 242, 240, 3, 2, 2, 2, 242, 243, 3, 2, 2, 2, 243, 29, 3, 2, 2, 2, 244, 242, 3, 2, 2, 2, 245, 249, 5, 34, 18, 2, 246, 249, 5, 36, 19, 2, 247, 249, 5, 38, 20, 2, 248, 245, 3, 2, 2, 2, 248, 246, 3, 2, 2, 2, 248, 247, 3, 2, 2, 2, 249, 31, 3, 2, 2, 2, 250, 251, 7, 11, 2, 2, 251, 252, 7, 56, 2, 2, 252, 33, 3, 2, 2, 2, 253, 254, 7, 12, 2, 2, 254, 255, 7, 56, 2, 2, 255, 35, 3, 2, 2, 2, 256, 257, 7, 13, 2, 2, 257, 258, 7, 42, 2, 2, 258, 37, 3, 2, 2, 2, 259, 260, 7, 14, 2, 2, 260, 261, 9, 2, 2, 2, 261, 39, 3, 2, 2, 2, 262, 263, 7, 15, 2, 2, 263, 264, 7, 42, 2, 2, 264, 41, 3, 2, 2, 2, 265, 266, 7, 16, 2, 2, 266, 267, 7, 42, 2, 2, 267, 43, 3, 2, 2, 2, 268, 269, 7, 17, 2, 2, 269, 270, 7, 46, 2, 2, 270, 45, 3, 2, 2, 2, 271, 272, 7, 7, 2, 2, 272, 273, 7, 56, 2, 2, 273, 47, 3, 2, 2, 2, 274, 275, 7, 39, 2, 2, 275, 276, 5, 84, 43, 2, 276, 280, 7, 50, 2, 2, 277, 279, 5, 90, 46, 2, 278, 277, 3, 2, 2, 2, 279, 282, 3, 2, 2, 2, 280, 278, 3, 2, 2, 2, 280, 281, 3, 2, 2, 2, 281, 49, 3, 2, 2, 2, 282, 280, 3, 2, 2, 2, 283, 286, 7, 39, 2, 2, 284, 287, 5, 84, 43, 2, 285, 287, 5, 86, 44, 2, 286, 284, 3, 2, 2, 2, 286, 285, 3, 2, 2, 2, 287, 289, 3, 2, 2, 2, 288, 290, 5, 90, 46, 2, 289, 288, 3, 2, 2, 2, 290, 291, 3, 2, 2, 2, 291, 289, 3, 2, 2, 2, 291, 292, 3, 2, 2, 2, 292, 51, 3, 2, 2, 2, 293, 294, 7, 39, 2, 2, 294, 295, 5, 84, 43, 2, 295, 296, 7, 21, 2, 2, 296, 298, 7, 56, 2, 2, 297, 299, 5, 92, 47, 2, 298, 297, 3, 2, 2, 2, 298, 299, 3, 2, 2, 2, 299, 53, 3, 2, 2, 2, 300, 301, 7, 39, 2, 2, 301, 302, 5, 84, 43, 2, 302, 303, 7, 38, 2, 2, 303, 304, 5, 94, 48, 2, 304, 55, 3, 2, 2, 2, 305, 306, 7, 39, 2, 2, 306, 307, 5, 84, 43, 2, 307, 308, 7, 26, 2, 2, 308, 313, 5, 96, 49, 2, 309, 310, 7, 27, 2, 2, 310, 312, 5, 96, 49, 2, 311, 309, 3, 2, 2, 2, 312, 315, 3, 2, 2, 2, 313, 311, 3, 2, 2, 2, 313, 314, 3, 2, 2, 2, 314, 57, 3, 2, 2, 2, 315, 313, 3, 2, 2, 2, 316, 317, 7, 39, 2, 2, 317, 318, 5, 84, 43, 2, 318, 319, 7, 28, 2, 2, 319, 324, 5, 112, 57, 2, 320, 321, 7, 29, 2, 2, 321, 323, 5, 112, 57, 2, 322, 320, 3, 2, 2, 2, 323, 326, 3, 2, 2, 2, 324, 322, 3, 2, 2, 2, 324, 325, 3, 2, 2, 2, 325, 59, 3, 2, 2, 2, 326, 324, 3, 2, 2, 2, 327, 329, 7, 39, 2, 2, 328, 330, 5, 84, 43, 2, 329, 328, 3, 2, 2, 2, 329, 330, 3, 2, 2, 2, 330, 331, 3, 2, 2, 2, 331, 332, 7, 30, 2, 2, 332, 337, 7, 56, 2, 2, 333, 334, 7, 27, 2, 2, 334, 336, 7, 56, 2, 2, 335, 333, 3, 2, 2, 2, 336, 339, 3, 2, 2, 2, 337, 335, 3, 2, 2, 2, 337, 338, 3, 2, 2, 2, 338, 61, 3, 2, 2, 2, 339, 337, 3, 2, 2, 2, 340, 342, 7, 39, 2, 2, 341, 343, 5, 84, 43, 2, 342, 341, 3, 2, 2, 2, 342, 343, 3, 2, 2, 2, 343, 344, 3, 2, 2, 2, 344, 345, 5, 88, 45, 2, 345, 346, 7, 38, 2, 2, 346, 347, 5, 94, 48, 2, 347, 63, 3, 2, 2, 2, 348, 350, 7, 39, 2, 2, 349, 351, 7, 33, 2, 2, 350, 349, 3, 2, 2, 2, 350, 351, 3, 2, 2, 2, 351, 354, 3, 2, 2, 2, 352, 355, 5, 66, 34, 2, 353, 355, 5, 68, 35, 2, 354, 352, 3, 2, 2, 2, 354, 353, 3, 2, 2, 2, 355, 65, 3, 2, 2, 2, 356, 358, 5, 98, 50, 2, 357, 359, 5, 70, 36, 2, 358, 357, 3, 2, 2, 2, 358, 359, 3, 2, 2, 2, 359, 363, 3, 2, 2, 2, 360, 361, 7, 54, 2, 2, 361, 363, 5, 70, 36, 2, 362, 356, 3, 2, 2, 2, 362, 360, 3, 2, 2, 2, 363, 67, 3, 2, 2, 2, 364, 365, 7, 34, 2, 2, 365, 368, 5, 70, 36, 2, 366, 367, 7, 35, 2, 2, 367, 369, 5, 76, 39, 2, 368, 366, 3, 2, 2, 2, 368, 369, 3, 2, 2, 2, 369, 69, 3, 2, 2, 2, 370, 381, 7, 21, 2, 2, 371, 374, 5, 72, 37, 2, 372, 373, 7, 27, 2, 2, 373, 375, 5, 74, 38, 2, 374, 372, 3, 2, 2, 2, 374, 375, 3, 2, 2, 2, 375, 382, 3, 2, 2, 2, 376, 379, 5, 74, 38, 2, 377, 378, 7, 27, 2, 2, 378, 380, 5, 72, 37, 2, 379, 377, 3, 2, 2, 2, 379, 380, 3, 2, 2, 2, 380, 382, 3, 2, 2, 2, 381, 371, 3, 2, 2, 2, 381, 376, 3, 2, 2, 2, 382, 71, 3, 2, 2, 2, 383, 384, 7, 37, 2, 2, 384, 385, 7, 56, 2, 2, 385, 73, 3, 2, 2, 2, 386, 387, 7, 36, 2, 2, 387, 388, 9, 3, 2, 2, 388, 75, 3, 2, 2, 2, 389, 390, 5, 78, 40, 2, 390, 391, 7, 27, 2, 2, 391, 393, 3, 2, 2, 2, 392, 389, 3, 2, 2, 2, 393, 396, 3, 2, 2, 2, 394, 392, 3, 2, 2, 2, 394, 395, 3, 2, 2, 2, 395, 397, 3, 2, 2, 2, 396, 394, 3, 2, 2, 2, 397, 398, 5, 78, 40, 2, 398, 77, 3, 2, 2, 2, 399, 400, 7, 56, 2, 2, 400, 402, 5, 80, 41, 2, 401, 403, 5, 82, 42, 2, 402, 401, 3, 2, 2, 2, 402, 403, 3, 2, 2, 2, 403, 79, 3, 2, 2, 2, 404, 405, 9, 4, 2, 2, 405, 81, 3, 2, 2, 2, 406, 412, 5, 98, 50, 2, 407, 412, 7, 31, 2, 2, 408, 412, 7, 32, 2, 2, 409, 412, 7, 53, 2, 2, 410, 412, 7, 42, 2, 2, 411, 406, 3, 2, 2, 2, 411, 407, 3, 2, 2, 2, 411, 408, 3, 2, 2, 2, 411, 409, 3, 2, 2, 2, 411, 410, 3, 2, 2, 2, 412, 83, 3, 2, 2, 2, 413, 414, 7, 56, 2, 2, 414, 85, 3, 2, 2, 2, 415, 416, 7, 55, 2, 2, 416, 87, 3, 2, 2, 2, 417, 418, 7, 52, 2, 2, 418, 89, 3, 2, 2, 2, 419, 420, 9, 5, 2, 2, 420, 91, 3, 2, 2, 2, 421, 422, 9, 6, 2, 2, 422, 93, 3, 2, 2, 2, 423, 434, 7, 42, 2, 2, 424, 434, 7, 43, 2, 2, 425, 434, 7, 44, 2, 2, 426, 434, 7, 48, 2, 2, 427, 434, 7, 49, 2, 2, 428, 434, 5, 106, 54, 2, 429, 434, 5, 98, 50, 2, 430, 434, 5, 102, 52, 2, 431, 434, 5, 104, 53, 2, 432, 434, 5, 110, 56, 2, 433, 423, 3, 2, 2, 2, 433, 424, 3, 2, 2, 2, 433, 425, 3, 2, 2, 2, 433, 426, 3, 2, 2, 2, 433, 427, 3, 2, 2, 2, 433, 428, 3, 2, 2, 2, 433, 429, 3, 2, 2, 2, 433, 430, 3, 2, 2, 2, 433, 431, 3, 2, 2, 2, 433, 432, 3, 2, 2, 2, 434, 95, 3, 2, 2, 2, 435, 436, 7, 56, 2, 2, 436, 440, 7, 50, 2, 2, 437, 439, 5, 90, 46, 2, 438, 437, 3, 2, 2, 2, 439, 442, 3, 2, 2, 2, 440, 438, 3, 2, 2, 2, 440, 441, 3, 2, 2, 2, 441, 97, 3, 2, 2, 2, 442, 440, 3, 2, 2, 2, 443, 445, 7, 46, 2, 2, 444, 446, 7, 42, 2, 2, 445, 444, 3, 2, 2, 2, 445, 446, 3, 2, 2, 2, 446, 99, 3, 2, 2, 2, 447, 448, 7, 39, 2, 2, 448, 450, 5, 98, 50, 2, 449, 451, 7, 42, 2, 2, 450, 449, 3, 2, 2, 2, 450, 451, 3, 2, 2, 2, 451, 101, 3, 2, 2, 2, 452, 453, 7, 44, 2, 2, 453, 454, 7, 45, 2, 2, 454, 103, 3, 2, 2, 2, 455, 456, 5, 108, 55, 2, 456, 457, 7, 40, 2, 2, 457, 458, 5, 108, 55, 2, 458, 105, 3, 2, 2, 2, 459, 461, 7, 51, 2, 2, 460, 462, 7, 42, 2, 2, 461, 460, 3, 2, 2, 2, 461, 462, 3, 2, 2, 2, 462, 107, 3, 2, 2, 2, 463, 466, 7, 44, 2, 2, 464, 466, 5, 102, 52, 2, 465, 463, 3, 2, 2, 2, 465, 464, 3, 2, 2, 2, 466, 109, 3, 2, 2, 2, 467, 468, 9, 7, 2, 2, 468, 111, 3, 2, 2, 2, 469, 472, 7, 56, 2, 2, 470, 472, 5, 106, 54, 2, 471, 469, 3, 2, 2, 2, 471, 470, 3, 2, 2, 2, 472, 113, 3, 2, 2, 2, 50, 117, 129, 141, 146, 154, 160, 167, 177, 184, 190, 195, 202, 208, 215, 220, 222, 228, 235, 240, 242, 248, 280, 286, 291, 298, 313, 324, 329, 337, 342, 350, 354, 358, 362, 368, 374, 379, 381, 394, 402, 411, 433, 440, 445, 450, 461, 465, 471]
\ No newline at end of file
diff --git a/src/import/generated/FSHParser.js b/src/import/generated/FSHParser.js
index aadc342..d8a76df 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;\u01d9\u0004\u0002\t\u0002\u0004\u0003\t\u0003\u0004\u0004\t",
+    "\u0003;\u01da\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",
@@ -39,68 +39,68 @@ var serializedATN = ["\u0003\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964",
     "\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\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\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\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",
+    "\u000f\u0003\u000f\u0003\u000f\u0007\u000f\u00f1\n\u000f\f\u000f\u000e",
+    "\u000f\u00f4\u000b\u000f\u0003\u0010\u0003\u0010\u0003\u0010\u0005\u0010",
+    "\u00f9\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\u0117\n\u0019\f\u0019\u000e\u0019\u011a\u000b\u0019\u0003\u001a",
+    "\u0003\u001a\u0003\u001a\u0005\u001a\u011f\n\u001a\u0003\u001a\u0006",
+    "\u001a\u0122\n\u001a\r\u001a\u000e\u001a\u0123\u0003\u001b\u0003\u001b",
+    "\u0003\u001b\u0003\u001b\u0003\u001b\u0005\u001b\u012b\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\u0138",
+    "\n\u001d\f\u001d\u000e\u001d\u013b\u000b\u001d\u0003\u001e\u0003\u001e",
+    "\u0003\u001e\u0003\u001e\u0003\u001e\u0003\u001e\u0007\u001e\u0143\n",
+    "\u001e\f\u001e\u000e\u001e\u0146\u000b\u001e\u0003\u001f\u0003\u001f",
+    "\u0005\u001f\u014a\n\u001f\u0003\u001f\u0003\u001f\u0003\u001f\u0003",
+    "\u001f\u0007\u001f\u0150\n\u001f\f\u001f\u000e\u001f\u0153\u000b\u001f",
+    "\u0003 \u0003 \u0005 \u0157\n \u0003 \u0003 \u0003 \u0003 \u0003!\u0003",
+    "!\u0005!\u015f\n!\u0003!\u0003!\u0005!\u0163\n!\u0003\"\u0003\"\u0005",
+    "\"\u0167\n\"\u0003\"\u0003\"\u0005\"\u016b\n\"\u0003#\u0003#\u0003#",
+    "\u0003#\u0005#\u0171\n#\u0003$\u0003$\u0003$\u0003$\u0005$\u0177\n$",
+    "\u0003$\u0003$\u0003$\u0005$\u017c\n$\u0005$\u017e\n$\u0003%\u0003%",
+    "\u0003%\u0003&\u0003&\u0003&\u0003\'\u0003\'\u0003\'\u0007\'\u0189\n",
+    "\'\f\'\u000e\'\u018c\u000b\'\u0003\'\u0003\'\u0003(\u0003(\u0003(\u0005",
+    "(\u0193\n(\u0003)\u0003)\u0003*\u0003*\u0003*\u0003*\u0003*\u0005*\u019c",
+    "\n*\u0003+\u0003+\u0003,\u0003,\u0003-\u0003-\u0003.\u0003.\u0003/\u0003",
+    "/\u00030\u00030\u00030\u00030\u00030\u00030\u00030\u00030\u00030\u0003",
+    "0\u00050\u01b2\n0\u00031\u00031\u00031\u00071\u01b7\n1\f1\u000e1\u01ba",
+    "\u000b1\u00032\u00032\u00052\u01be\n2\u00033\u00033\u00033\u00053\u01c3",
+    "\n3\u00034\u00034\u00034\u00035\u00035\u00035\u00035\u00036\u00036\u0005",
+    "6\u01ce\n6\u00037\u00037\u00057\u01d2\n7\u00038\u00038\u00039\u0003",
+    "9\u00059\u01d8\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\u01eb\u0002u\u0003\u0002\u0002\u0002\u0004\u0081\u0003\u0002",
+    " \u0002\u01ed\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\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\u001e\u00f8\u0003\u0002\u0002\u0002 \u00fa\u0003\u0002\u0002",
+    "\u0002\"\u00fd\u0003\u0002\u0002\u0002$\u0100\u0003\u0002\u0002\u0002",
+    "&\u0103\u0003\u0002\u0002\u0002(\u0106\u0003\u0002\u0002\u0002*\u0109",
+    "\u0003\u0002\u0002\u0002,\u010c\u0003\u0002\u0002\u0002.\u010f\u0003",
+    "\u0002\u0002\u00020\u0112\u0003\u0002\u0002\u00022\u011b\u0003\u0002",
+    "\u0002\u00024\u0125\u0003\u0002\u0002\u00026\u012c\u0003\u0002\u0002",
+    "\u00028\u0131\u0003\u0002\u0002\u0002:\u013c\u0003\u0002\u0002\u0002",
+    "<\u0147\u0003\u0002\u0002\u0002>\u0154\u0003\u0002\u0002\u0002@\u015c",
+    "\u0003\u0002\u0002\u0002B\u016a\u0003\u0002\u0002\u0002D\u016c\u0003",
+    "\u0002\u0002\u0002F\u0172\u0003\u0002\u0002\u0002H\u017f\u0003\u0002",
+    "\u0002\u0002J\u0182\u0003\u0002\u0002\u0002L\u018a\u0003\u0002\u0002",
+    "\u0002N\u018f\u0003\u0002\u0002\u0002P\u0194\u0003\u0002\u0002\u0002",
+    "R\u019b\u0003\u0002\u0002\u0002T\u019d\u0003\u0002\u0002\u0002V\u019f",
+    "\u0003\u0002\u0002\u0002X\u01a1\u0003\u0002\u0002\u0002Z\u01a3\u0003",
+    "\u0002\u0002\u0002\\\u01a5\u0003\u0002\u0002\u0002^\u01b1\u0003\u0002",
+    "\u0002\u0002`\u01b3\u0003\u0002\u0002\u0002b\u01bb\u0003\u0002\u0002",
+    "\u0002d\u01bf\u0003\u0002\u0002\u0002f\u01c4\u0003\u0002\u0002\u0002",
+    "h\u01c7\u0003\u0002\u0002\u0002j\u01cb\u0003\u0002\u0002\u0002l\u01d1",
+    "\u0003\u0002\u0002\u0002n\u01d3\u0003\u0002\u0002\u0002p\u01d7\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",
@@ -176,141 +176,141 @@ var serializedATN = ["\u0003\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964",
     "\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("");
+    "\u0002\u0002\u00ec\u00f2\u0003\u0002\u0002\u0002\u00ed\u00eb\u0003\u0002",
+    "\u0002\u0002\u00ee\u00f1\u0005> \u0002\u00ef\u00f1\u0005d3\u0002\u00f0",
+    "\u00ee\u0003\u0002\u0002\u0002\u00f0\u00ef\u0003\u0002\u0002\u0002\u00f1",
+    "\u00f4\u0003\u0002\u0002\u0002\u00f2\u00f0\u0003\u0002\u0002\u0002\u00f2",
+    "\u00f3\u0003\u0002\u0002\u0002\u00f3\u001d\u0003\u0002\u0002\u0002\u00f4",
+    "\u00f2\u0003\u0002\u0002\u0002\u00f5\u00f9\u0005\"\u0012\u0002\u00f6",
+    "\u00f9\u0005$\u0013\u0002\u00f7\u00f9\u0005&\u0014\u0002\u00f8\u00f5",
+    "\u0003\u0002\u0002\u0002\u00f8\u00f6\u0003\u0002\u0002\u0002\u00f8\u00f7",
+    "\u0003\u0002\u0002\u0002\u00f9\u001f\u0003\u0002\u0002\u0002\u00fa\u00fb",
+    "\u0007\u000b\u0002\u0002\u00fb\u00fc\u00078\u0002\u0002\u00fc!\u0003",
+    "\u0002\u0002\u0002\u00fd\u00fe\u0007\f\u0002\u0002\u00fe\u00ff\u0007",
+    "8\u0002\u0002\u00ff#\u0003\u0002\u0002\u0002\u0100\u0101\u0007\r\u0002",
+    "\u0002\u0101\u0102\u0007*\u0002\u0002\u0102%\u0003\u0002\u0002\u0002",
+    "\u0103\u0104\u0007\u000e\u0002\u0002\u0104\u0105\t\u0002\u0002\u0002",
+    "\u0105\'\u0003\u0002\u0002\u0002\u0106\u0107\u0007\u000f\u0002\u0002",
+    "\u0107\u0108\u0007*\u0002\u0002\u0108)\u0003\u0002\u0002\u0002\u0109",
+    "\u010a\u0007\u0010\u0002\u0002\u010a\u010b\u0007*\u0002\u0002\u010b",
+    "+\u0003\u0002\u0002\u0002\u010c\u010d\u0007\u0011\u0002\u0002\u010d",
+    "\u010e\u0007.\u0002\u0002\u010e-\u0003\u0002\u0002\u0002\u010f\u0110",
+    "\u0007\u0007\u0002\u0002\u0110\u0111\u00078\u0002\u0002\u0111/\u0003",
+    "\u0002\u0002\u0002\u0112\u0113\u0007\'\u0002\u0002\u0113\u0114\u0005",
+    "T+\u0002\u0114\u0118\u00072\u0002\u0002\u0115\u0117\u0005Z.\u0002\u0116",
+    "\u0115\u0003\u0002\u0002\u0002\u0117\u011a\u0003\u0002\u0002\u0002\u0118",
+    "\u0116\u0003\u0002\u0002\u0002\u0118\u0119\u0003\u0002\u0002\u0002\u0119",
+    "1\u0003\u0002\u0002\u0002\u011a\u0118\u0003\u0002\u0002\u0002\u011b",
+    "\u011e\u0007\'\u0002\u0002\u011c\u011f\u0005T+\u0002\u011d\u011f\u0005",
+    "V,\u0002\u011e\u011c\u0003\u0002\u0002\u0002\u011e\u011d\u0003\u0002",
+    "\u0002\u0002\u011f\u0121\u0003\u0002\u0002\u0002\u0120\u0122\u0005Z",
+    ".\u0002\u0121\u0120\u0003\u0002\u0002\u0002\u0122\u0123\u0003\u0002",
+    "\u0002\u0002\u0123\u0121\u0003\u0002\u0002\u0002\u0123\u0124\u0003\u0002",
+    "\u0002\u0002\u01243\u0003\u0002\u0002\u0002\u0125\u0126\u0007\'\u0002",
+    "\u0002\u0126\u0127\u0005T+\u0002\u0127\u0128\u0007\u0015\u0002\u0002",
+    "\u0128\u012a\u00078\u0002\u0002\u0129\u012b\u0005\\/\u0002\u012a\u0129",
+    "\u0003\u0002\u0002\u0002\u012a\u012b\u0003\u0002\u0002\u0002\u012b5",
+    "\u0003\u0002\u0002\u0002\u012c\u012d\u0007\'\u0002\u0002\u012d\u012e",
+    "\u0005T+\u0002\u012e\u012f\u0007&\u0002\u0002\u012f\u0130\u0005^0\u0002",
+    "\u01307\u0003\u0002\u0002\u0002\u0131\u0132\u0007\'\u0002\u0002\u0132",
+    "\u0133\u0005T+\u0002\u0133\u0134\u0007\u001a\u0002\u0002\u0134\u0139",
+    "\u0005`1\u0002\u0135\u0136\u0007\u001b\u0002\u0002\u0136\u0138\u0005",
+    "`1\u0002\u0137\u0135\u0003\u0002\u0002\u0002\u0138\u013b\u0003\u0002",
+    "\u0002\u0002\u0139\u0137\u0003\u0002\u0002\u0002\u0139\u013a\u0003\u0002",
+    "\u0002\u0002\u013a9\u0003\u0002\u0002\u0002\u013b\u0139\u0003\u0002",
+    "\u0002\u0002\u013c\u013d\u0007\'\u0002\u0002\u013d\u013e\u0005T+\u0002",
+    "\u013e\u013f\u0007\u001c\u0002\u0002\u013f\u0144\u0005p9\u0002\u0140",
+    "\u0141\u0007\u001d\u0002\u0002\u0141\u0143\u0005p9\u0002\u0142\u0140",
+    "\u0003\u0002\u0002\u0002\u0143\u0146\u0003\u0002\u0002\u0002\u0144\u0142",
+    "\u0003\u0002\u0002\u0002\u0144\u0145\u0003\u0002\u0002\u0002\u0145;",
+    "\u0003\u0002\u0002\u0002\u0146\u0144\u0003\u0002\u0002\u0002\u0147\u0149",
+    "\u0007\'\u0002\u0002\u0148\u014a\u0005T+\u0002\u0149\u0148\u0003\u0002",
+    "\u0002\u0002\u0149\u014a\u0003\u0002\u0002\u0002\u014a\u014b\u0003\u0002",
+    "\u0002\u0002\u014b\u014c\u0007\u001e\u0002\u0002\u014c\u0151\u00078",
+    "\u0002\u0002\u014d\u014e\u0007\u001b\u0002\u0002\u014e\u0150\u00078",
+    "\u0002\u0002\u014f\u014d\u0003\u0002\u0002\u0002\u0150\u0153\u0003\u0002",
+    "\u0002\u0002\u0151\u014f\u0003\u0002\u0002\u0002\u0151\u0152\u0003\u0002",
+    "\u0002\u0002\u0152=\u0003\u0002\u0002\u0002\u0153\u0151\u0003\u0002",
+    "\u0002\u0002\u0154\u0156\u0007\'\u0002\u0002\u0155\u0157\u0005T+\u0002",
+    "\u0156\u0155\u0003\u0002\u0002\u0002\u0156\u0157\u0003\u0002\u0002\u0002",
+    "\u0157\u0158\u0003\u0002\u0002\u0002\u0158\u0159\u0005X-\u0002\u0159",
+    "\u015a\u0007&\u0002\u0002\u015a\u015b\u0005^0\u0002\u015b?\u0003\u0002",
+    "\u0002\u0002\u015c\u015e\u0007\'\u0002\u0002\u015d\u015f\u0007!\u0002",
+    "\u0002\u015e\u015d\u0003\u0002\u0002\u0002\u015e\u015f\u0003\u0002\u0002",
+    "\u0002\u015f\u0162\u0003\u0002\u0002\u0002\u0160\u0163\u0005B\"\u0002",
+    "\u0161\u0163\u0005D#\u0002\u0162\u0160\u0003\u0002\u0002\u0002\u0162",
+    "\u0161\u0003\u0002\u0002\u0002\u0163A\u0003\u0002\u0002\u0002\u0164",
+    "\u0166\u0005b2\u0002\u0165\u0167\u0005F$\u0002\u0166\u0165\u0003\u0002",
+    "\u0002\u0002\u0166\u0167\u0003\u0002\u0002\u0002\u0167\u016b\u0003\u0002",
+    "\u0002\u0002\u0168\u0169\u00076\u0002\u0002\u0169\u016b\u0005F$\u0002",
+    "\u016a\u0164\u0003\u0002\u0002\u0002\u016a\u0168\u0003\u0002\u0002\u0002",
+    "\u016bC\u0003\u0002\u0002\u0002\u016c\u016d\u0007\"\u0002\u0002\u016d",
+    "\u0170\u0005F$\u0002\u016e\u016f\u0007#\u0002\u0002\u016f\u0171\u0005",
+    "L\'\u0002\u0170\u016e\u0003\u0002\u0002\u0002\u0170\u0171\u0003\u0002",
+    "\u0002\u0002\u0171E\u0003\u0002\u0002\u0002\u0172\u017d\u0007\u0015",
+    "\u0002\u0002\u0173\u0176\u0005H%\u0002\u0174\u0175\u0007\u001b\u0002",
+    "\u0002\u0175\u0177\u0005J&\u0002\u0176\u0174\u0003\u0002\u0002\u0002",
+    "\u0176\u0177\u0003\u0002\u0002\u0002\u0177\u017e\u0003\u0002\u0002\u0002",
+    "\u0178\u017b\u0005J&\u0002\u0179\u017a\u0007\u001b\u0002\u0002\u017a",
+    "\u017c\u0005H%\u0002\u017b\u0179\u0003\u0002\u0002\u0002\u017b\u017c",
+    "\u0003\u0002\u0002\u0002\u017c\u017e\u0003\u0002\u0002\u0002\u017d\u0173",
+    "\u0003\u0002\u0002\u0002\u017d\u0178\u0003\u0002\u0002\u0002\u017eG",
+    "\u0003\u0002\u0002\u0002\u017f\u0180\u0007%\u0002\u0002\u0180\u0181",
+    "\u00078\u0002\u0002\u0181I\u0003\u0002\u0002\u0002\u0182\u0183\u0007",
+    "$\u0002\u0002\u0183\u0184\t\u0003\u0002\u0002\u0184K\u0003\u0002\u0002",
+    "\u0002\u0185\u0186\u0005N(\u0002\u0186\u0187\u0007\u001b\u0002\u0002",
+    "\u0187\u0189\u0003\u0002\u0002\u0002\u0188\u0185\u0003\u0002\u0002\u0002",
+    "\u0189\u018c\u0003\u0002\u0002\u0002\u018a\u0188\u0003\u0002\u0002\u0002",
+    "\u018a\u018b\u0003\u0002\u0002\u0002\u018b\u018d\u0003\u0002\u0002\u0002",
+    "\u018c\u018a\u0003\u0002\u0002\u0002\u018d\u018e\u0005N(\u0002\u018e",
+    "M\u0003\u0002\u0002\u0002\u018f\u0190\u00078\u0002\u0002\u0190\u0192",
+    "\u0005P)\u0002\u0191\u0193\u0005R*\u0002\u0192\u0191\u0003\u0002\u0002",
+    "\u0002\u0192\u0193\u0003\u0002\u0002\u0002\u0193O\u0003\u0002\u0002",
+    "\u0002\u0194\u0195\t\u0004\u0002\u0002\u0195Q\u0003\u0002\u0002\u0002",
+    "\u0196\u019c\u0005b2\u0002\u0197\u019c\u0007\u001f\u0002\u0002\u0198",
+    "\u019c\u0007 \u0002\u0002\u0199\u019c\u00075\u0002\u0002\u019a\u019c",
+    "\u0007*\u0002\u0002\u019b\u0196\u0003\u0002\u0002\u0002\u019b\u0197",
+    "\u0003\u0002\u0002\u0002\u019b\u0198\u0003\u0002\u0002\u0002\u019b\u0199",
+    "\u0003\u0002\u0002\u0002\u019b\u019a\u0003\u0002\u0002\u0002\u019cS",
+    "\u0003\u0002\u0002\u0002\u019d\u019e\u00078\u0002\u0002\u019eU\u0003",
+    "\u0002\u0002\u0002\u019f\u01a0\u00077\u0002\u0002\u01a0W\u0003\u0002",
+    "\u0002\u0002\u01a1\u01a2\u00074\u0002\u0002\u01a2Y\u0003\u0002\u0002",
+    "\u0002\u01a3\u01a4\t\u0005\u0002\u0002\u01a4[\u0003\u0002\u0002\u0002",
+    "\u01a5\u01a6\t\u0006\u0002\u0002\u01a6]\u0003\u0002\u0002\u0002\u01a7",
+    "\u01b2\u0007*\u0002\u0002\u01a8\u01b2\u0007+\u0002\u0002\u01a9\u01b2",
+    "\u0007,\u0002\u0002\u01aa\u01b2\u00070\u0002\u0002\u01ab\u01b2\u0007",
+    "1\u0002\u0002\u01ac\u01b2\u0005j6\u0002\u01ad\u01b2\u0005b2\u0002\u01ae",
+    "\u01b2\u0005f4\u0002\u01af\u01b2\u0005h5\u0002\u01b0\u01b2\u0005n8\u0002",
+    "\u01b1\u01a7\u0003\u0002\u0002\u0002\u01b1\u01a8\u0003\u0002\u0002\u0002",
+    "\u01b1\u01a9\u0003\u0002\u0002\u0002\u01b1\u01aa\u0003\u0002\u0002\u0002",
+    "\u01b1\u01ab\u0003\u0002\u0002\u0002\u01b1\u01ac\u0003\u0002\u0002\u0002",
+    "\u01b1\u01ad\u0003\u0002\u0002\u0002\u01b1\u01ae\u0003\u0002\u0002\u0002",
+    "\u01b1\u01af\u0003\u0002\u0002\u0002\u01b1\u01b0\u0003\u0002\u0002\u0002",
+    "\u01b2_\u0003\u0002\u0002\u0002\u01b3\u01b4\u00078\u0002\u0002\u01b4",
+    "\u01b8\u00072\u0002\u0002\u01b5\u01b7\u0005Z.\u0002\u01b6\u01b5\u0003",
+    "\u0002\u0002\u0002\u01b7\u01ba\u0003\u0002\u0002\u0002\u01b8\u01b6\u0003",
+    "\u0002\u0002\u0002\u01b8\u01b9\u0003\u0002\u0002\u0002\u01b9a\u0003",
+    "\u0002\u0002\u0002\u01ba\u01b8\u0003\u0002\u0002\u0002\u01bb\u01bd\u0007",
+    ".\u0002\u0002\u01bc\u01be\u0007*\u0002\u0002\u01bd\u01bc\u0003\u0002",
+    "\u0002\u0002\u01bd\u01be\u0003\u0002\u0002\u0002\u01bec\u0003\u0002",
+    "\u0002\u0002\u01bf\u01c0\u0007\'\u0002\u0002\u01c0\u01c2\u0005b2\u0002",
+    "\u01c1\u01c3\u0007*\u0002\u0002\u01c2\u01c1\u0003\u0002\u0002\u0002",
+    "\u01c2\u01c3\u0003\u0002\u0002\u0002\u01c3e\u0003\u0002\u0002\u0002",
+    "\u01c4\u01c5\u0007,\u0002\u0002\u01c5\u01c6\u0007-\u0002\u0002\u01c6",
+    "g\u0003\u0002\u0002\u0002\u01c7\u01c8\u0005l7\u0002\u01c8\u01c9\u0007",
+    "(\u0002\u0002\u01c9\u01ca\u0005l7\u0002\u01cai\u0003\u0002\u0002\u0002",
+    "\u01cb\u01cd\u00073\u0002\u0002\u01cc\u01ce\u0007*\u0002\u0002\u01cd",
+    "\u01cc\u0003\u0002\u0002\u0002\u01cd\u01ce\u0003\u0002\u0002\u0002\u01ce",
+    "k\u0003\u0002\u0002\u0002\u01cf\u01d2\u0007,\u0002\u0002\u01d0\u01d2",
+    "\u0005f4\u0002\u01d1\u01cf\u0003\u0002\u0002\u0002\u01d1\u01d0\u0003",
+    "\u0002\u0002\u0002\u01d2m\u0003\u0002\u0002\u0002\u01d3\u01d4\t\u0007",
+    "\u0002\u0002\u01d4o\u0003\u0002\u0002\u0002\u01d5\u01d8\u00078\u0002",
+    "\u0002\u01d6\u01d8\u0005j6\u0002\u01d7\u01d5\u0003\u0002\u0002\u0002",
+    "\u01d7\u01d6\u0003\u0002\u0002\u0002\u01d8q\u0003\u0002\u0002\u0002",
+    "2u\u0081\u008d\u0092\u009a\u00a0\u00a7\u00b1\u00b8\u00be\u00c3\u00ca",
+    "\u00d0\u00d7\u00dc\u00de\u00e4\u00eb\u00f0\u00f2\u00f8\u0118\u011e\u0123",
+    "\u012a\u0139\u0144\u0149\u0151\u0156\u015e\u0162\u0166\u016a\u0170\u0176",
+    "\u017b\u017d\u018a\u0192\u019b\u01b1\u01b8\u01bd\u01c2\u01cd\u01d1\u01d7"].join("");
 
 
 var atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN);
@@ -1953,6 +1953,17 @@ CodeSystemContext.prototype.csMetadata = function(i) {
     }
 };
 
+CodeSystemContext.prototype.caretValueRule = function(i) {
+    if(i===undefined) {
+        i = null;
+    }
+    if(i===null) {
+        return this.getTypedRuleContexts(CaretValueRuleContext);
+    } else {
+        return this.getTypedRuleContext(CaretValueRuleContext,i);
+    }
+};
+
 CodeSystemContext.prototype.concept = function(i) {
     if(i===undefined) {
         i = null;
@@ -2010,13 +2021,26 @@ FSHParser.prototype.codeSystem = function() {
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         }
-        this.state = 239;
+        this.state = 240;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         while(_la===FSHParser.STAR) {
-            this.state = 236;
-            this.concept();
-            this.state = 241;
+            this.state = 238;
+            this._errHandler.sync(this);
+            var la_ = this._interp.adaptivePredict(this._input,18,this._ctx);
+            switch(la_) {
+            case 1:
+                this.state = 236;
+                this.caretValueRule();
+                break;
+
+            case 2:
+                this.state = 237;
+                this.concept();
+                break;
+
+            }
+            this.state = 242;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         }
@@ -2093,22 +2117,22 @@ FSHParser.prototype.csMetadata = function() {
     var localctx = new CsMetadataContext(this, this._ctx, this.state);
     this.enterRule(localctx, 28, FSHParser.RULE_csMetadata);
     try {
-        this.state = 245;
+        this.state = 246;
         this._errHandler.sync(this);
         switch(this._input.LA(1)) {
         case FSHParser.KW_ID:
             this.enterOuterAlt(localctx, 1);
-            this.state = 242;
+            this.state = 243;
             this.id();
             break;
         case FSHParser.KW_TITLE:
             this.enterOuterAlt(localctx, 2);
-            this.state = 243;
+            this.state = 244;
             this.title();
             break;
         case FSHParser.KW_DESCRIPTION:
             this.enterOuterAlt(localctx, 3);
-            this.state = 244;
+            this.state = 245;
             this.description();
             break;
         default:
@@ -2184,9 +2208,9 @@ FSHParser.prototype.parent = function() {
     this.enterRule(localctx, 30, FSHParser.RULE_parent);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 247;
-        this.match(FSHParser.KW_PARENT);
         this.state = 248;
+        this.match(FSHParser.KW_PARENT);
+        this.state = 249;
         this.match(FSHParser.SEQUENCE);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -2258,9 +2282,9 @@ FSHParser.prototype.id = function() {
     this.enterRule(localctx, 32, FSHParser.RULE_id);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 250;
-        this.match(FSHParser.KW_ID);
         this.state = 251;
+        this.match(FSHParser.KW_ID);
+        this.state = 252;
         this.match(FSHParser.SEQUENCE);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -2332,9 +2356,9 @@ FSHParser.prototype.title = function() {
     this.enterRule(localctx, 34, FSHParser.RULE_title);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 253;
-        this.match(FSHParser.KW_TITLE);
         this.state = 254;
+        this.match(FSHParser.KW_TITLE);
+        this.state = 255;
         this.match(FSHParser.STRING);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -2411,9 +2435,9 @@ FSHParser.prototype.description = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 256;
-        this.match(FSHParser.KW_DESCRIPTION);
         this.state = 257;
+        this.match(FSHParser.KW_DESCRIPTION);
+        this.state = 258;
         _la = this._input.LA(1);
         if(!(_la===FSHParser.STRING || _la===FSHParser.MULTILINE_STRING)) {
         this._errHandler.recoverInline(this);
@@ -2492,9 +2516,9 @@ FSHParser.prototype.expression = function() {
     this.enterRule(localctx, 38, FSHParser.RULE_expression);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 259;
-        this.match(FSHParser.KW_EXPRESSION);
         this.state = 260;
+        this.match(FSHParser.KW_EXPRESSION);
+        this.state = 261;
         this.match(FSHParser.STRING);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -2566,9 +2590,9 @@ FSHParser.prototype.xpath = function() {
     this.enterRule(localctx, 40, FSHParser.RULE_xpath);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 262;
-        this.match(FSHParser.KW_XPATH);
         this.state = 263;
+        this.match(FSHParser.KW_XPATH);
+        this.state = 264;
         this.match(FSHParser.STRING);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -2640,9 +2664,9 @@ FSHParser.prototype.severity = function() {
     this.enterRule(localctx, 42, FSHParser.RULE_severity);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 265;
-        this.match(FSHParser.KW_SEVERITY);
         this.state = 266;
+        this.match(FSHParser.KW_SEVERITY);
+        this.state = 267;
         this.match(FSHParser.CODE);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -2714,9 +2738,9 @@ FSHParser.prototype.instanceOf = function() {
     this.enterRule(localctx, 44, FSHParser.RULE_instanceOf);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 268;
-        this.match(FSHParser.KW_INSTANCEOF);
         this.state = 269;
+        this.match(FSHParser.KW_INSTANCEOF);
+        this.state = 270;
         this.match(FSHParser.SEQUENCE);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -2804,19 +2828,19 @@ FSHParser.prototype.cardRule = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 271;
-        this.match(FSHParser.STAR);
         this.state = 272;
-        this.path();
+        this.match(FSHParser.STAR);
         this.state = 273;
+        this.path();
+        this.state = 274;
         this.match(FSHParser.CARD);
-        this.state = 277;
+        this.state = 278;
         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 = 274;
+            this.state = 275;
             this.flag();
-            this.state = 279;
+            this.state = 280;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         }
@@ -2906,29 +2930,29 @@ FSHParser.prototype.flagRule = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 280;
+        this.state = 281;
         this.match(FSHParser.STAR);
-        this.state = 283;
+        this.state = 284;
         this._errHandler.sync(this);
         switch(this._input.LA(1)) {
         case FSHParser.SEQUENCE:
-            this.state = 281;
+            this.state = 282;
             this.path();
             break;
         case FSHParser.COMMA_DELIMITED_SEQUENCES:
-            this.state = 282;
+            this.state = 283;
             this.paths();
             break;
         default:
             throw new antlr4.error.NoViableAltException(this);
         }
-        this.state = 286; 
+        this.state = 287; 
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         do {
-            this.state = 285;
+            this.state = 286;
             this.flag();
-            this.state = 288; 
+            this.state = 289; 
             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));
@@ -3015,19 +3039,19 @@ FSHParser.prototype.valueSetRule = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 290;
-        this.match(FSHParser.STAR);
         this.state = 291;
-        this.path();
+        this.match(FSHParser.STAR);
         this.state = 292;
-        this.match(FSHParser.KW_FROM);
+        this.path();
         this.state = 293;
+        this.match(FSHParser.KW_FROM);
+        this.state = 294;
         this.match(FSHParser.SEQUENCE);
-        this.state = 295;
+        this.state = 296;
         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 = 294;
+            this.state = 295;
             this.strength();
         }
 
@@ -3109,13 +3133,13 @@ FSHParser.prototype.fixedValueRule = function() {
     this.enterRule(localctx, 52, FSHParser.RULE_fixedValueRule);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 297;
-        this.match(FSHParser.STAR);
         this.state = 298;
-        this.path();
+        this.match(FSHParser.STAR);
         this.state = 299;
-        this.match(FSHParser.EQUAL);
+        this.path();
         this.state = 300;
+        this.match(FSHParser.EQUAL);
+        this.state = 301;
         this.value();
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -3215,23 +3239,23 @@ FSHParser.prototype.containsRule = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 302;
-        this.match(FSHParser.STAR);
         this.state = 303;
-        this.path();
+        this.match(FSHParser.STAR);
         this.state = 304;
-        this.match(FSHParser.KW_CONTAINS);
+        this.path();
         this.state = 305;
+        this.match(FSHParser.KW_CONTAINS);
+        this.state = 306;
         this.item();
-        this.state = 310;
+        this.state = 311;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         while(_la===FSHParser.KW_AND) {
-            this.state = 306;
-            this.match(FSHParser.KW_AND);
             this.state = 307;
+            this.match(FSHParser.KW_AND);
+            this.state = 308;
             this.item();
-            this.state = 312;
+            this.state = 313;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         }
@@ -3333,23 +3357,23 @@ FSHParser.prototype.onlyRule = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 313;
-        this.match(FSHParser.STAR);
         this.state = 314;
-        this.path();
+        this.match(FSHParser.STAR);
         this.state = 315;
-        this.match(FSHParser.KW_ONLY);
+        this.path();
         this.state = 316;
+        this.match(FSHParser.KW_ONLY);
+        this.state = 317;
         this.targetType();
-        this.state = 321;
+        this.state = 322;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         while(_la===FSHParser.KW_OR) {
-            this.state = 317;
-            this.match(FSHParser.KW_OR);
             this.state = 318;
+            this.match(FSHParser.KW_OR);
+            this.state = 319;
             this.targetType();
-            this.state = 323;
+            this.state = 324;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         }
@@ -3452,29 +3476,29 @@ FSHParser.prototype.obeysRule = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 324;
+        this.state = 325;
         this.match(FSHParser.STAR);
-        this.state = 326;
+        this.state = 327;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         if(_la===FSHParser.SEQUENCE) {
-            this.state = 325;
+            this.state = 326;
             this.path();
         }
 
-        this.state = 328;
-        this.match(FSHParser.KW_OBEYS);
         this.state = 329;
+        this.match(FSHParser.KW_OBEYS);
+        this.state = 330;
         this.match(FSHParser.SEQUENCE);
-        this.state = 334;
+        this.state = 335;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         while(_la===FSHParser.KW_AND) {
-            this.state = 330;
-            this.match(FSHParser.KW_AND);
             this.state = 331;
+            this.match(FSHParser.KW_AND);
+            this.state = 332;
             this.match(FSHParser.SEQUENCE);
-            this.state = 336;
+            this.state = 337;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         }
@@ -3561,21 +3585,21 @@ FSHParser.prototype.caretValueRule = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 337;
+        this.state = 338;
         this.match(FSHParser.STAR);
-        this.state = 339;
+        this.state = 340;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         if(_la===FSHParser.SEQUENCE) {
-            this.state = 338;
+            this.state = 339;
             this.path();
         }
 
-        this.state = 341;
-        this.caretPath();
         this.state = 342;
-        this.match(FSHParser.EQUAL);
+        this.caretPath();
         this.state = 343;
+        this.match(FSHParser.EQUAL);
+        this.state = 344;
         this.value();
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -3656,26 +3680,26 @@ FSHParser.prototype.vsComponent = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 345;
+        this.state = 346;
         this.match(FSHParser.STAR);
-        this.state = 347;
+        this.state = 348;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         if(_la===FSHParser.KW_EXCLUDE) {
-            this.state = 346;
+            this.state = 347;
             this.match(FSHParser.KW_EXCLUDE);
         }
 
-        this.state = 351;
+        this.state = 352;
         this._errHandler.sync(this);
         switch(this._input.LA(1)) {
         case FSHParser.CODE:
         case FSHParser.COMMA_DELIMITED_CODES:
-            this.state = 349;
+            this.state = 350;
             this.vsConceptComponent();
             break;
         case FSHParser.KW_CODES:
-            this.state = 350;
+            this.state = 351;
             this.vsFilterComponent();
             break;
         default:
@@ -3755,27 +3779,27 @@ FSHParser.prototype.vsConceptComponent = function() {
     this.enterRule(localctx, 64, FSHParser.RULE_vsConceptComponent);
     var _la = 0; // Token type
     try {
-        this.state = 359;
+        this.state = 360;
         this._errHandler.sync(this);
         switch(this._input.LA(1)) {
         case FSHParser.CODE:
             this.enterOuterAlt(localctx, 1);
-            this.state = 353;
+            this.state = 354;
             this.code();
-            this.state = 355;
+            this.state = 356;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
             if(_la===FSHParser.KW_FROM) {
-                this.state = 354;
+                this.state = 355;
                 this.vsComponentFrom();
             }
 
             break;
         case FSHParser.COMMA_DELIMITED_CODES:
             this.enterOuterAlt(localctx, 2);
-            this.state = 357;
-            this.match(FSHParser.COMMA_DELIMITED_CODES);
             this.state = 358;
+            this.match(FSHParser.COMMA_DELIMITED_CODES);
+            this.state = 359;
             this.vsComponentFrom();
             break;
         default:
@@ -3860,17 +3884,17 @@ FSHParser.prototype.vsFilterComponent = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 361;
-        this.match(FSHParser.KW_CODES);
         this.state = 362;
+        this.match(FSHParser.KW_CODES);
+        this.state = 363;
         this.vsComponentFrom();
-        this.state = 365;
+        this.state = 366;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         if(_la===FSHParser.KW_WHERE) {
-            this.state = 363;
-            this.match(FSHParser.KW_WHERE);
             this.state = 364;
+            this.match(FSHParser.KW_WHERE);
+            this.state = 365;
             this.vsFilterList();
         }
 
@@ -3953,35 +3977,35 @@ FSHParser.prototype.vsComponentFrom = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 367;
+        this.state = 368;
         this.match(FSHParser.KW_FROM);
-        this.state = 378;
+        this.state = 379;
         this._errHandler.sync(this);
         switch(this._input.LA(1)) {
         case FSHParser.KW_SYSTEM:
-            this.state = 368;
+            this.state = 369;
             this.vsFromSystem();
-            this.state = 371;
+            this.state = 372;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
             if(_la===FSHParser.KW_AND) {
-                this.state = 369;
-                this.match(FSHParser.KW_AND);
                 this.state = 370;
+                this.match(FSHParser.KW_AND);
+                this.state = 371;
                 this.vsFromValueset();
             }
 
             break;
         case FSHParser.KW_VSREFERENCE:
-            this.state = 373;
+            this.state = 374;
             this.vsFromValueset();
-            this.state = 376;
+            this.state = 377;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
             if(_la===FSHParser.KW_AND) {
-                this.state = 374;
-                this.match(FSHParser.KW_AND);
                 this.state = 375;
+                this.match(FSHParser.KW_AND);
+                this.state = 376;
                 this.vsFromSystem();
             }
 
@@ -4059,9 +4083,9 @@ FSHParser.prototype.vsFromSystem = function() {
     this.enterRule(localctx, 70, FSHParser.RULE_vsFromSystem);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 380;
-        this.match(FSHParser.KW_SYSTEM);
         this.state = 381;
+        this.match(FSHParser.KW_SYSTEM);
+        this.state = 382;
         this.match(FSHParser.SEQUENCE);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -4138,9 +4162,9 @@ FSHParser.prototype.vsFromValueset = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 383;
-        this.match(FSHParser.KW_VSREFERENCE);
         this.state = 384;
+        this.match(FSHParser.KW_VSREFERENCE);
+        this.state = 385;
         _la = this._input.LA(1);
         if(!(_la===FSHParser.COMMA_DELIMITED_SEQUENCES || _la===FSHParser.SEQUENCE)) {
         this._errHandler.recoverInline(this);
@@ -4234,22 +4258,22 @@ FSHParser.prototype.vsFilterList = function() {
     this.enterRule(localctx, 74, FSHParser.RULE_vsFilterList);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 391;
+        this.state = 392;
         this._errHandler.sync(this);
-        var _alt = this._interp.adaptivePredict(this._input,37,this._ctx)
+        var _alt = this._interp.adaptivePredict(this._input,38,this._ctx)
         while(_alt!=2 && _alt!=antlr4.atn.ATN.INVALID_ALT_NUMBER) {
             if(_alt===1) {
-                this.state = 386;
-                this.vsFilterDefinition();
                 this.state = 387;
+                this.vsFilterDefinition();
+                this.state = 388;
                 this.match(FSHParser.KW_AND); 
             }
-            this.state = 393;
+            this.state = 394;
             this._errHandler.sync(this);
-            _alt = this._interp.adaptivePredict(this._input,37,this._ctx);
+            _alt = this._interp.adaptivePredict(this._input,38,this._ctx);
         }
 
-        this.state = 394;
+        this.state = 395;
         this.vsFilterDefinition();
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -4326,15 +4350,15 @@ FSHParser.prototype.vsFilterDefinition = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 396;
-        this.match(FSHParser.SEQUENCE);
         this.state = 397;
+        this.match(FSHParser.SEQUENCE);
+        this.state = 398;
         this.vsFilterOperator();
-        this.state = 399;
+        this.state = 400;
         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 = 398;
+            this.state = 399;
             this.vsFilterValue();
         }
 
@@ -4409,7 +4433,7 @@ FSHParser.prototype.vsFilterOperator = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 401;
+        this.state = 402;
         _la = this._input.LA(1);
         if(!(_la===FSHParser.EQUAL || _la===FSHParser.SEQUENCE)) {
         this._errHandler.recoverInline(this);
@@ -4499,32 +4523,32 @@ FSHParser.prototype.vsFilterValue = function() {
     var localctx = new VsFilterValueContext(this, this._ctx, this.state);
     this.enterRule(localctx, 80, FSHParser.RULE_vsFilterValue);
     try {
-        this.state = 408;
+        this.state = 409;
         this._errHandler.sync(this);
         switch(this._input.LA(1)) {
         case FSHParser.CODE:
             this.enterOuterAlt(localctx, 1);
-            this.state = 403;
+            this.state = 404;
             this.code();
             break;
         case FSHParser.KW_TRUE:
             this.enterOuterAlt(localctx, 2);
-            this.state = 404;
+            this.state = 405;
             this.match(FSHParser.KW_TRUE);
             break;
         case FSHParser.KW_FALSE:
             this.enterOuterAlt(localctx, 3);
-            this.state = 405;
+            this.state = 406;
             this.match(FSHParser.KW_FALSE);
             break;
         case FSHParser.REGEX:
             this.enterOuterAlt(localctx, 4);
-            this.state = 406;
+            this.state = 407;
             this.match(FSHParser.REGEX);
             break;
         case FSHParser.STRING:
             this.enterOuterAlt(localctx, 5);
-            this.state = 407;
+            this.state = 408;
             this.match(FSHParser.STRING);
             break;
         default:
@@ -4596,7 +4620,7 @@ FSHParser.prototype.path = function() {
     this.enterRule(localctx, 82, FSHParser.RULE_path);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 410;
+        this.state = 411;
         this.match(FSHParser.SEQUENCE);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -4664,7 +4688,7 @@ FSHParser.prototype.paths = function() {
     this.enterRule(localctx, 84, FSHParser.RULE_paths);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 412;
+        this.state = 413;
         this.match(FSHParser.COMMA_DELIMITED_SEQUENCES);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -4732,7 +4756,7 @@ FSHParser.prototype.caretPath = function() {
     this.enterRule(localctx, 86, FSHParser.RULE_caretPath);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 414;
+        this.state = 415;
         this.match(FSHParser.CARET_SEQUENCE);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -4809,7 +4833,7 @@ FSHParser.prototype.flag = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 416;
+        this.state = 417;
         _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);
@@ -4897,7 +4921,7 @@ FSHParser.prototype.strength = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 418;
+        this.state = 419;
         _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);
@@ -5007,67 +5031,67 @@ FSHParser.prototype.value = function() {
     var localctx = new ValueContext(this, this._ctx, this.state);
     this.enterRule(localctx, 92, FSHParser.RULE_value);
     try {
-        this.state = 430;
+        this.state = 431;
         this._errHandler.sync(this);
-        var la_ = this._interp.adaptivePredict(this._input,40,this._ctx);
+        var la_ = this._interp.adaptivePredict(this._input,41,this._ctx);
         switch(la_) {
         case 1:
             this.enterOuterAlt(localctx, 1);
-            this.state = 420;
+            this.state = 421;
             this.match(FSHParser.STRING);
             break;
 
         case 2:
             this.enterOuterAlt(localctx, 2);
-            this.state = 421;
+            this.state = 422;
             this.match(FSHParser.MULTILINE_STRING);
             break;
 
         case 3:
             this.enterOuterAlt(localctx, 3);
-            this.state = 422;
+            this.state = 423;
             this.match(FSHParser.NUMBER);
             break;
 
         case 4:
             this.enterOuterAlt(localctx, 4);
-            this.state = 423;
+            this.state = 424;
             this.match(FSHParser.DATETIME);
             break;
 
         case 5:
             this.enterOuterAlt(localctx, 5);
-            this.state = 424;
+            this.state = 425;
             this.match(FSHParser.TIME);
             break;
 
         case 6:
             this.enterOuterAlt(localctx, 6);
-            this.state = 425;
+            this.state = 426;
             this.reference();
             break;
 
         case 7:
             this.enterOuterAlt(localctx, 7);
-            this.state = 426;
+            this.state = 427;
             this.code();
             break;
 
         case 8:
             this.enterOuterAlt(localctx, 8);
-            this.state = 427;
+            this.state = 428;
             this.quantity();
             break;
 
         case 9:
             this.enterOuterAlt(localctx, 9);
-            this.state = 428;
+            this.state = 429;
             this.ratio();
             break;
 
         case 10:
             this.enterOuterAlt(localctx, 10);
-            this.state = 429;
+            this.state = 430;
             this.bool();
             break;
 
@@ -5154,17 +5178,17 @@ FSHParser.prototype.item = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 432;
-        this.match(FSHParser.SEQUENCE);
         this.state = 433;
+        this.match(FSHParser.SEQUENCE);
+        this.state = 434;
         this.match(FSHParser.CARD);
-        this.state = 437;
+        this.state = 438;
         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 = 434;
+            this.state = 435;
             this.flag();
-            this.state = 439;
+            this.state = 440;
             this._errHandler.sync(this);
             _la = this._input.LA(1);
         }
@@ -5238,13 +5262,13 @@ FSHParser.prototype.code = function() {
     this.enterRule(localctx, 96, FSHParser.RULE_code);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 440;
+        this.state = 441;
         this.match(FSHParser.CODE);
-        this.state = 442;
+        this.state = 443;
         this._errHandler.sync(this);
-        var la_ = this._interp.adaptivePredict(this._input,42,this._ctx);
+        var la_ = this._interp.adaptivePredict(this._input,43,this._ctx);
         if(la_===1) {
-            this.state = 441;
+            this.state = 442;
             this.match(FSHParser.STRING);
 
         }
@@ -5323,15 +5347,15 @@ FSHParser.prototype.concept = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 444;
-        this.match(FSHParser.STAR);
         this.state = 445;
+        this.match(FSHParser.STAR);
+        this.state = 446;
         this.code();
-        this.state = 447;
+        this.state = 448;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         if(_la===FSHParser.STRING) {
-            this.state = 446;
+            this.state = 447;
             this.match(FSHParser.STRING);
         }
 
@@ -5405,9 +5429,9 @@ FSHParser.prototype.quantity = function() {
     this.enterRule(localctx, 100, FSHParser.RULE_quantity);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 449;
-        this.match(FSHParser.NUMBER);
         this.state = 450;
+        this.match(FSHParser.NUMBER);
+        this.state = 451;
         this.match(FSHParser.UNIT);
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -5486,11 +5510,11 @@ FSHParser.prototype.ratio = function() {
     this.enterRule(localctx, 102, FSHParser.RULE_ratio);
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 452;
-        this.ratioPart();
         this.state = 453;
-        this.match(FSHParser.COLON);
+        this.ratioPart();
         this.state = 454;
+        this.match(FSHParser.COLON);
+        this.state = 455;
         this.ratioPart();
     } catch (re) {
     	if(re instanceof antlr4.error.RecognitionException) {
@@ -5563,13 +5587,13 @@ FSHParser.prototype.reference = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 456;
+        this.state = 457;
         this.match(FSHParser.REFERENCE);
-        this.state = 458;
+        this.state = 459;
         this._errHandler.sync(this);
         _la = this._input.LA(1);
         if(_la===FSHParser.STRING) {
-            this.state = 457;
+            this.state = 458;
             this.match(FSHParser.STRING);
         }
 
@@ -5642,19 +5666,19 @@ FSHParser.prototype.ratioPart = function() {
     var localctx = new RatioPartContext(this, this._ctx, this.state);
     this.enterRule(localctx, 106, FSHParser.RULE_ratioPart);
     try {
-        this.state = 462;
+        this.state = 463;
         this._errHandler.sync(this);
-        var la_ = this._interp.adaptivePredict(this._input,45,this._ctx);
+        var la_ = this._interp.adaptivePredict(this._input,46,this._ctx);
         switch(la_) {
         case 1:
             this.enterOuterAlt(localctx, 1);
-            this.state = 460;
+            this.state = 461;
             this.match(FSHParser.NUMBER);
             break;
 
         case 2:
             this.enterOuterAlt(localctx, 2);
-            this.state = 461;
+            this.state = 462;
             this.quantity();
             break;
 
@@ -5730,7 +5754,7 @@ FSHParser.prototype.bool = function() {
     var _la = 0; // Token type
     try {
         this.enterOuterAlt(localctx, 1);
-        this.state = 464;
+        this.state = 465;
         _la = this._input.LA(1);
         if(!(_la===FSHParser.KW_TRUE || _la===FSHParser.KW_FALSE)) {
         this._errHandler.recoverInline(this);
@@ -5808,17 +5832,17 @@ FSHParser.prototype.targetType = function() {
     var localctx = new TargetTypeContext(this, this._ctx, this.state);
     this.enterRule(localctx, 110, FSHParser.RULE_targetType);
     try {
-        this.state = 468;
+        this.state = 469;
         this._errHandler.sync(this);
         switch(this._input.LA(1)) {
         case FSHParser.SEQUENCE:
             this.enterOuterAlt(localctx, 1);
-            this.state = 466;
+            this.state = 467;
             this.match(FSHParser.SEQUENCE);
             break;
         case FSHParser.REFERENCE:
             this.enterOuterAlt(localctx, 2);
-            this.state = 467;
+            this.state = 468;
             this.reference();
             break;
         default:
diff --git a/src/import/parserContexts.ts b/src/import/parserContexts.ts
index 1381ee5..e16af63 100644
--- a/src/import/parserContexts.ts
+++ b/src/import/parserContexts.ts
@@ -65,6 +65,7 @@ export interface CodeSystemContext extends ParserRuleContext {
   SEQUENCE(): ParserRuleContext;
   csMetadata(): CsMetadataContext[];
   concept(): ConceptContext[];
+  caretValueRule(): CaretValueRuleContext[];
 }
 
 export interface CsMetadataContext extends ParserRuleContext {


Test patch:
diff --git a/test/export/CodeSystemExporter.test.ts b/test/export/CodeSystemExporter.test.ts
index 4adbd1a..0764832 100644
--- a/test/export/CodeSystemExporter.test.ts
+++ b/test/export/CodeSystemExporter.test.ts
@@ -2,12 +2,26 @@ import { CodeSystemExporter, Package } from '../../src/export';
 import { FSHDocument, FSHTank } from '../../src/import';
 import { FshCodeSystem } from '../../src/fshtypes';
 import { FshConcept } from '../../src/fshtypes/FshConcept';
+import { CaretValueRule } from '../../src/fshtypes/rules';
+import { TestFisher } from '../testhelpers';
 import { loggerSpy } from '../testhelpers';
+import { FHIRDefinitions, loadFromPath } from '../../src/fhirdefs';
+import path from 'path';
 
 describe('CodeSystemExporter', () => {
+  let defs: FHIRDefinitions;
   let doc: FSHDocument;
   let exporter: CodeSystemExporter;
 
+  beforeAll(() => {
+    defs = new FHIRDefinitions();
+    loadFromPath(
+      path.join(__dirname, '..', 'testhelpers', 'testdefs', 'package'),
+      'testPackage',
+      defs
+    );
+  });
+
   beforeEach(() => {
     doc = new FSHDocument('fileName');
     const input = new FSHTank([doc], {
@@ -16,7 +30,8 @@ describe('CodeSystemExporter', () => {
       canonical: 'http://example.com'
     });
     const pkg = new Package(input.config);
-    exporter = new CodeSystemExporter(input, pkg);
+    const fisher = new TestFisher(input, defs, pkg);
+    exporter = new CodeSystemExporter(input, pkg, fisher);
   });
 
   it('should output empty results with empty input', () => {
@@ -145,4 +160,45 @@ describe('CodeSystemExporter', () => {
     expect(loggerSpy.getLastMessage()).toMatch(/does not represent a valid FHIR name/s);
     expect(loggerSpy.getLastMessage()).toMatch(/File: Strange\.fsh.*Line: 3 - 8\D/s);
   });
+
+  // CaretValueRules
+  it('should apply a CaretValueRule', () => {
+    const codeSystem = new FshCodeSystem('CaretCodeSystem');
+    const rule = new CaretValueRule('');
+    rule.caretPath = 'publisher';
+    rule.value = 'carat';
+    codeSystem.rules.push(rule);
+    doc.codeSystems.set(codeSystem.name, codeSystem);
+    const exported = exporter.export().codeSystems;
+    expect(exported.length).toBe(1);
+    expect(exported[0]).toEqual({
+      id: 'CaretCodeSystem',
+      name: 'CaretCodeSystem',
+      content: 'complete',
+      url: 'http://example.com/CodeSystem/CaretCodeSystem',
+      version: '0.0.1',
+      status: 'active',
+      publisher: 'carat'
+    });
+  });
+
+  it('should log a message when applying invalid CaretValueRule', () => {
+    const codeSystem = new FshCodeSystem('CaretCodeSystem');
+    const rule = new CaretValueRule('').withFile('InvalidValue.fsh').withLocation([6, 3, 6, 12]);
+    rule.caretPath = 'publisherz';
+    rule.value = true;
+    codeSystem.rules.push(rule);
+    doc.codeSystems.set(codeSystem.name, codeSystem);
+    const exported = exporter.export().codeSystems;
+    expect(exported.length).toBe(1);
+    expect(exported[0]).toEqual({
+      id: 'CaretCodeSystem',
+      name: 'CaretCodeSystem',
+      content: 'complete',
+      url: 'http://example.com/CodeSystem/CaretCodeSystem',
+      version: '0.0.1',
+      status: 'active'
+    });
+    expect(loggerSpy.getLastMessage()).toMatch(/File: InvalidValue\.fsh.*Line: 6\D/s);
+  });
 });
diff --git a/test/fshtypes/CodeSystem.test.ts b/test/fshtypes/CodeSystem.test.ts
index 84fc912..768f383 100644
--- a/test/fshtypes/CodeSystem.test.ts
+++ b/test/fshtypes/CodeSystem.test.ts
@@ -10,6 +10,7 @@ describe('CodeSystem', () => {
       expect(cs.title).toBeUndefined();
       expect(cs.description).toBeUndefined();
       expect(cs.concepts).toBeEmpty();
+      expect(cs.rules).toBeEmpty();
     });
   });
 });
diff --git a/test/import/FSHImporter.CodeSystem.test.ts b/test/import/FSHImporter.CodeSystem.test.ts
index cc27994..f289e94 100644
--- a/test/import/FSHImporter.CodeSystem.test.ts
+++ b/test/import/FSHImporter.CodeSystem.test.ts
@@ -1,4 +1,5 @@
 import { importSingleText } from '../testhelpers/importSingleText';
+import { assertCaretValueRule } from '../testhelpers/asserts';
 import { loggerSpy } from '../testhelpers/loggerSpy';
 
 describe('FSHImporter', () => {
@@ -270,5 +271,41 @@ describe('FSHImporter', () => {
         expect(loggerSpy.getLastMessage()).toMatch(/File: Zoo\.fsh.*Line: 5\D/s);
       });
     });
+
+    describe('#CaretValueRule', () => {
+      it('should parse a code system that uses a CaretValueRule', () => {
+        const input = `
+          CodeSystem: ZOO
+          * ^publisher = "Matt"
+          `;
+        const result = importSingleText(input);
+        const codeSystem = result.codeSystems.get('ZOO');
+        assertCaretValueRule(codeSystem.rules[0], '', 'publisher', 'Matt');
+      });
+
+      it('should parse a code system that uses CaretValueRules alongside concepts', () => {
+        const input = `
+        CodeSystem: ZOO
+        * #lion
+        * ^publisher = "Damon"
+        `;
+        const result = importSingleText(input, 'Zoo.fsh');
+        const codeSystem = result.codeSystems.get('ZOO');
+        expect(codeSystem.concepts[0].code).toBe('lion');
+        expect(codeSystem.concepts[0].sourceInfo.file).toBe('Zoo.fsh');
+        assertCaretValueRule(codeSystem.rules[0], '', 'publisher', 'Damon');
+      });
+
+      it('should log an error when a CaretValueRule contains a path before ^', () => {
+        const input = `
+        CodeSystem: ZOO
+        * somepath ^publisher = "Marky Mark"
+        `;
+        const result = importSingleText(input, 'Simple.fsh');
+        const codeSystem = result.codeSystems.get('ZOO');
+        expect(codeSystem.rules).toHaveLength(0);
+        expect(loggerSpy.getLastMessage()).toMatch(/File: Simple\.fsh.*Line: 3\D/s);
+      });
+    });
   });
 });
diff --git a/test/testhelpers/testdefs/package/StructureDefinition-CodeSystem.json b/test/testhelpers/testdefs/package/StructureDefinition-CodeSystem.json
new file mode 100644
index 0000000..58f02fe
--- /dev/null
+++ b/test/testhelpers/testdefs/package/StructureDefinition-CodeSystem.json
@@ -0,0 +1,1 @@
+{"resourceType":"StructureDefinition","id":"CodeSystem","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/CodeSystem","version":"4.0.1","name":"CodeSystem","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":"The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content.","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":"CodeSystem","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":"CodeSystem","path":"CodeSystem","short":"Declares the existence of and describes a code system or code system supplement","definition":"The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content.","min":0,"max":"*","base":{"path":"CodeSystem","min":0,"max":"*"},"constraint":[{"key":"csd-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}')"},{"key":"csd-1","severity":"error","human":"Within a code system definition, all the codes SHALL be unique","expression":"concept.code.combine($this.descendants().concept.code).isDistinct()","xpath":"count(distinct-values(descendant::f:concept/f:code/@value))=count(descendant::f:concept)"},{"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"}],"isModifier":false,"isSummary":false,"mapping":[{"identity":"rim","map":"Entity. Role, or Act"},{"identity":"rim","map":"N/A"}]},{"id":"CodeSystem.id","path":"CodeSystem.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":"CodeSystem.meta","path":"CodeSystem.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":"CodeSystem.implicitRules","path":"CodeSystem.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":"CodeSystem.language","path":"CodeSystem.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":"CodeSystem.text","path":"CodeSystem.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":"CodeSystem.contained","path":"CodeSystem.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":"CodeSystem.extension","path":"CodeSystem.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":"CodeSystem.modifierExtension","path":"CodeSystem.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":"CodeSystem.url","path":"CodeSystem.url","short":"Canonical identifier for this code system, represented as a URI (globally unique) (Coding.system)","definition":"An absolute URI that is used to identify this code system 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 code system is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the code system is stored on different servers. This is used in [Coding](datatypes.html#Coding).system.","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 code system to be referenced by a single globally unique identifier.","min":0,"max":"1","base":{"path":"CodeSystem.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"}]},{"id":"CodeSystem.identifier","path":"CodeSystem.identifier","short":"Additional identifier for the code system (business identifier)","definition":"A formal identifier that is used to identify this code system 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 code system outside of FHIR, where it is not possible to use the logical URI.  Note that HL7 defines at least three identifiers for many of its code systems - the FHIR canonical URL, the OID and the V2 Table 0396 mnemonic code.","requirements":"Allows externally provided and/or usable business identifiers to be easily associated with the module.","min":0,"max":"*","base":{"path":"CodeSystem.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":"CodeSystem.version","path":"CodeSystem.version","short":"Business version of the code system (Coding.version)","definition":"The identifier that is used to identify this version of the code system when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the code system 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. This is used in [Coding](datatypes.html#Coding).version.","comment":"There may be different code system 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 code system with the format [url]|[version].","min":0,"max":"1","base":{"path":"CodeSystem.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":"CodeSystem.name","path":"CodeSystem.name","short":"Name for this code system (computer friendly)","definition":"A natural language name identifying the code system. 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.","requirements":"Support human navigation and code generation.","min":0,"max":"1","base":{"path":"CodeSystem.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":"CodeSystem.title","path":"CodeSystem.title","short":"Name for this code system (human friendly)","definition":"A short, descriptive, user-friendly title for the code system.","comment":"This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.","min":0,"max":"1","base":{"path":"CodeSystem.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":"CodeSystem.status","path":"CodeSystem.status","short":"draft | active | retired | unknown","definition":"The date (and optionally time) when the code system resource was created or revised.","comment":"Allows filtering of code systems that are appropriate for use versus not.","min":1,"max":"1","base":{"path":"CodeSystem.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":"CodeSystem.experimental","path":"CodeSystem.experimental","short":"For testing purposes, not real usage","definition":"A Boolean value to indicate that this code system is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.","comment":"Allows filtering of code systems 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 code system.","min":0,"max":"1","base":{"path":"CodeSystem.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":"CodeSystem.date","path":"CodeSystem.date","short":"Date last changed","definition":"The date  (and optionally time) when the code system was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the code system changes.","comment":"Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the code system. 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":"CodeSystem.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"}]},{"id":"CodeSystem.publisher","path":"CodeSystem.publisher","short":"Name of the publisher (organization or individual)","definition":"The name of the organization or individual that published the code system.","comment":"Usually an organization but may be an individual. The publisher (or steward) of the code system is the organization or individual primarily responsible for the maintenance and upkeep of the code system. 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 code system. This item SHOULD be populated unless the information is available from context.","requirements":"Helps establish the \"authority/credibility\" of the code system.  May also allow for contact.","min":0,"max":"1","base":{"path":"CodeSystem.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":"CodeSystem.contact","path":"CodeSystem.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":"CodeSystem.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":"CodeSystem.description","path":"CodeSystem.description","short":"Natural language description of the code system","definition":"A free text natural language description of the code system from a consumer's perspective.","comment":"This description can be used to capture details such as why the code system 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 code system 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 code system is presumed to be the predominant language in the place the code system was created).","alias":["Scope","Purpose"],"min":0,"max":"1","base":{"path":"CodeSystem.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":"CodeSystem.useContext","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status","valueCode":"trial-use"}],"path":"CodeSystem.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 code system 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":"CodeSystem.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":"CodeSystem.jurisdiction","path":"CodeSystem.jurisdiction","short":"Intended jurisdiction for code system (if applicable)","definition":"A legal or geographic region in which the code system is intended to be used.","comment":"It may be possible for the code system to be used in jurisdictions other than those for which it was originally designed or intended.","min":0,"max":"*","base":{"path":"CodeSystem.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":"CodeSystem.purpose","path":"CodeSystem.purpose","short":"Why this code system is defined","definition":"Explanation of why this code system is needed and why it has been designed as it has.","comment":"This element does not describe the usage of the code system. 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 code system.","min":0,"max":"1","base":{"path":"CodeSystem.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":"CodeSystem.copyright","path":"CodeSystem.copyright","short":"Use and/or publishing restrictions","definition":"A copyright statement relating to the code system and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the code system.","comment":"... Sometimes, the copyright differs between the code system 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 code system and/or its content.","alias":["License","Restrictions"],"min":0,"max":"1","base":{"path":"CodeSystem.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":"CodeSystem.caseSensitive","path":"CodeSystem.caseSensitive","short":"If code comparison is case sensitive","definition":"If code comparison is case sensitive when codes within this system are compared to each other.","comment":"If this value is missing, then it is not specified whether a code system is case sensitive or not. When the rule is not known, Postel's law should be followed: produce codes with the correct case, and accept codes in any case. This element is primarily provided to support validation software.","min":0,"max":"1","base":{"path":"CodeSystem.caseSensitive","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":"CodeSystem.valueSet","path":"CodeSystem.valueSet","short":"Canonical reference to the value set with entire code system","definition":"Canonical reference to the value set that contains the entire code system.","comment":"The definition of the value set SHALL include all codes from this code system and only codes from this code system, and it SHALL be immutable.","min":0,"max":"1","base":{"path":"CodeSystem.valueSet","min":0,"max":"1"},"type":[{"code":"canonical","targetProfile":["http://hl7.org/fhir/StructureDefinition/ValueSet"]}],"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":"CodeSystem.hierarchyMeaning","path":"CodeSystem.hierarchyMeaning","short":"grouped-by | is-a | part-of | classified-with","definition":"The meaning of the hierarchy of concepts as represented in this resource.","comment":"Note that other representations might have a different hierarchy or none at all, and represent the information using properties.","min":0,"max":"1","base":{"path":"CodeSystem.hierarchyMeaning","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":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"CodeSystemHierarchyMeaning"}],"strength":"required","description":"The meaning of the hierarchy of concepts in a code system.","valueSet":"http://hl7.org/fhir/ValueSet/codesystem-hierarchy-meaning|4.0.1"}},{"id":"CodeSystem.compositional","path":"CodeSystem.compositional","short":"If code system defines a compositional grammar","definition":"The code system defines a compositional (post-coordination) grammar.","comment":"Note that the code system resource does not define what the compositional grammar is, only whether or not there is one.","alias":["grammar"],"min":0,"max":"1","base":{"path":"CodeSystem.compositional","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":"CodeSystem.versionNeeded","path":"CodeSystem.versionNeeded","short":"If definitions are not stable","definition":"This flag is used to signify that the code system does not commit to concept permanence across versions. If true, a version must be specified when referencing this code system.","comment":"Best practice is that code systems do not redefine concepts, or that if concepts are redefined, a new code system definition is created. But this is not always possible, so some code systems may be defined as 'versionNeeded'.\n\nMost code systems occasionally refine the displays defined for concepts between versions. Contexts in which the concept display values are validated may require that the version be specified for some code systems irrespective of the value of this property.","min":0,"max":"1","base":{"path":"CodeSystem.versionNeeded","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":"CodeSystem.content","path":"CodeSystem.content","short":"not-present | example | fragment | complete | supplement","definition":"The extent of the content of the code system (the concepts and codes it defines) are represented in this resource instance.","min":1,"max":"1","base":{"path":"CodeSystem.content","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":"CodeSystemContentMode"}],"strength":"required","description":"The extent of the content of the code system (the concepts and codes it defines) are represented in a code system resource.","valueSet":"http://hl7.org/fhir/ValueSet/codesystem-content-mode|4.0.1"}},{"id":"CodeSystem.supplements","path":"CodeSystem.supplements","short":"Canonical URL of Code System this adds designations and properties to","definition":"The canonical URL of the code system that this code system supplement is adding designations and properties to.","comment":"The most common use of a code system supplement is to add additional language support.","min":0,"max":"1","base":{"path":"CodeSystem.supplements","min":0,"max":"1"},"type":[{"code":"canonical","targetProfile":["http://hl7.org/fhir/StructureDefinition/CodeSystem"]}],"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":"CodeSystem.count","path":"CodeSystem.count","short":"Total concepts in the code system","definition":"The total number of concepts defined by the code system. Where the code system has a compositional grammar, the basis of this count is defined by the system steward.","comment":"The count of concepts defined in this resource cannot be more than this value but may be less for several reasons - see the content element.","min":0,"max":"1","base":{"path":"CodeSystem.count","min":0,"max":"1"},"type":[{"code":"unsignedInt"}],"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":"CodeSystem.filter","path":"CodeSystem.filter","short":"Filter that can be used in a value set","definition":"A filter that can be used in a value set compose statement when selecting concepts using a filter.","comment":"Note that filters defined in code systems usually require custom code on the part of any terminology engine that will make them available for use in value set filters. For this reason, they are generally only seen in high value published terminologies.","min":0,"max":"*","base":{"path":"CodeSystem.filter","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":true},{"id":"CodeSystem.filter.id","path":"CodeSystem.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":"CodeSystem.filter.extension","path":"CodeSystem.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":"CodeSystem.filter.modifierExtension","path":"CodeSystem.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":"CodeSystem.filter.code","path":"CodeSystem.filter.code","short":"Code that identifies the filter","definition":"The code that identifies this filter when it is used as a filter in [ValueSet](valueset.html#).compose.include.filter.","min":1,"max":"1","base":{"path":"CodeSystem.filter.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":true},{"id":"CodeSystem.filter.description","path":"CodeSystem.filter.description","short":"How or why the filter is used","definition":"A description of how or why the filter is used.","min":0,"max":"1","base":{"path":"CodeSystem.filter.description","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},{"id":"CodeSystem.filter.operator","path":"CodeSystem.filter.operator","short":"= | is-a | descendent-of | is-not-a | regex | in | not-in | generalizes | exists","definition":"A list of operators that can be used with the filter.","min":1,"max":"*","base":{"path":"CodeSystem.filter.operator","min":1,"max":"*"},"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"}},{"id":"CodeSystem.filter.value","path":"CodeSystem.filter.value","short":"What to use for the value","definition":"A description of what the value for the filter should be.","min":1,"max":"1","base":{"path":"CodeSystem.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},{"id":"CodeSystem.property","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name","valueString":"Property"}],"path":"CodeSystem.property","short":"Additional information supplied about each concept","definition":"A property defines an additional slot through which additional information can be provided about a concept.","min":0,"max":"*","base":{"path":"CodeSystem.property","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":true},{"id":"CodeSystem.property.id","path":"CodeSystem.property.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":"CodeSystem.property.extension","path":"CodeSystem.property.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":"CodeSystem.property.modifierExtension","path":"CodeSystem.property.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":"CodeSystem.property.code","path":"CodeSystem.property.code","short":"Identifies the property on the concepts, and when referred to in operations","definition":"A code that is used to identify the property. The code is used internally (in CodeSystem.concept.property.code) and also externally, such as in property filters.","min":1,"max":"1","base":{"path":"CodeSystem.property.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":true},{"id":"CodeSystem.property.uri","path":"CodeSystem.property.uri","short":"Formal identifier for the property","definition":"Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system.","min":0,"max":"1","base":{"path":"CodeSystem.property.uri","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},{"id":"CodeSystem.property.description","path":"CodeSystem.property.description","short":"Why the property is defined, and/or what it conveys","definition":"A description of the property- why it is defined, and how its value might be used.","min":0,"max":"1","base":{"path":"CodeSystem.property.description","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},{"id":"CodeSystem.property.type","path":"CodeSystem.property.type","short":"code | Coding | string | integer | boolean | dateTime | decimal","definition":"The type of the property value. Properties of type \"code\" contain a code defined by the code system (e.g. a reference to another defined concept).","min":1,"max":"1","base":{"path":"CodeSystem.property.type","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":"PropertyType"}],"strength":"required","description":"The type of a property value.","valueSet":"http://hl7.org/fhir/ValueSet/concept-property-type|4.0.1"}},{"id":"CodeSystem.concept","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name","valueString":"ConceptDefinition"}],"path":"CodeSystem.concept","short":"Concepts in the code system","definition":"Concepts that are in the code system. The concept definitions are inherently hierarchical, but the definitions must be consulted to determine what the meanings of the hierarchical relationships are.","comment":"If this is empty, it means that the code system resource does not represent the content of the code system.","min":0,"max":"*","base":{"path":"CodeSystem.concept","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":"CodeSystem.concept.id","path":"CodeSystem.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":"CodeSystem.concept.extension","path":"CodeSystem.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":"CodeSystem.concept.modifierExtension","path":"CodeSystem.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":"CodeSystem.concept.code","path":"CodeSystem.concept.code","short":"Code that identifies concept","definition":"A code - a text symbol - that uniquely identifies the concept within the code system.","min":1,"max":"1","base":{"path":"CodeSystem.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},{"id":"CodeSystem.concept.display","path":"CodeSystem.concept.display","short":"Text to display to the user","definition":"A human readable string that is the recommended default way to present this concept to a user.","min":0,"max":"1","base":{"path":"CodeSystem.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},{"id":"CodeSystem.concept.definition","path":"CodeSystem.concept.definition","short":"Formal definition","definition":"The formal definition of the concept. The code system resource does not make formal definitions required, because of the prevalence of legacy systems. However, they are highly recommended, as without them there is no formal meaning associated with the concept.","min":0,"max":"1","base":{"path":"CodeSystem.concept.definition","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":"CodeSystem.concept.designation","path":"CodeSystem.concept.designation","short":"Additional representations for the concept","definition":"Additional representations for the concept - 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).","requirements":"Many concept definition systems support multiple representations, in multiple languages, and for multiple purposes.","min":0,"max":"*","base":{"path":"CodeSystem.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":"CodeSystem.concept.designation.id","path":"CodeSystem.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":"CodeSystem.concept.designation.extension","path":"CodeSystem.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":"CodeSystem.concept.designation.modifierExtension","path":"CodeSystem.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":"CodeSystem.concept.designation.language","path":"CodeSystem.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":"CodeSystem.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":"CodeSystem.concept.designation.use","path":"CodeSystem.concept.designation.use","short":"Details how this designation would be used","definition":"A code that details how this designation would be used.","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":"CodeSystem.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":"CodeSystem.concept.designation.value","path":"CodeSystem.concept.designation.value","short":"The text value for this designation","definition":"The text value for this designation.","min":1,"max":"1","base":{"path":"CodeSystem.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":"CodeSystem.concept.property","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name","valueString":"ConceptProperty"}],"path":"CodeSystem.concept.property","short":"Property value for the concept","definition":"A property value for this concept.","min":0,"max":"*","base":{"path":"CodeSystem.concept.property","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":"CodeSystem.concept.property.id","path":"CodeSystem.concept.property.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":"CodeSystem.concept.property.extension","path":"CodeSystem.concept.property.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":"CodeSystem.concept.property.modifierExtension","path":"CodeSystem.concept.property.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":"CodeSystem.concept.property.code","path":"CodeSystem.concept.property.code","short":"Reference to CodeSystem.property.code","definition":"A code that is a reference to CodeSystem.property.code.","min":1,"max":"1","base":{"path":"CodeSystem.concept.property.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},{"id":"CodeSystem.concept.property.value[x]","path":"CodeSystem.concept.property.value[x]","short":"Value of the property for this concept","definition":"The value of this property.","min":1,"max":"1","base":{"path":"CodeSystem.concept.property.value[x]","min":1,"max":"1"},"type":[{"code":"code"},{"code":"Coding"},{"code":"string"},{"code":"integer"},{"code":"boolean"},{"code":"dateTime"},{"code":"decimal"}],"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":"CodeSystem.concept.concept","path":"CodeSystem.concept.concept","short":"Child Concepts (is-a/contains/categorizes)","definition":"Defines children of a concept to produce a hierarchy of concepts. The nature of the relationships is variable (is-a/contains/categorizes) - see hierarchyMeaning.","min":0,"max":"*","base":{"path":"CodeSystem.concept.concept","min":0,"max":"*"},"contentReference":"#CodeSystem.concept","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":"CodeSystem","path":"CodeSystem","short":"Declares the existence of and describes a code system or code system supplement","definition":"The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content.","min":0,"max":"*","constraint":[{"key":"csd-1","severity":"error","human":"Within a code system definition, all the codes SHALL be unique","expression":"concept.code.combine($this.descendants().concept.code).isDistinct()","xpath":"count(distinct-values(descendant::f:concept/f:code/@value))=count(descendant::f:concept)"},{"key":"csd-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":"CodeSystem.url","path":"CodeSystem.url","short":"Canonical identifier for this code system, represented as a URI (globally unique) (Coding.system)","definition":"An absolute URI that is used to identify this code system 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 code system is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the code system is stored on different servers. This is used in [Coding](datatypes.html#Coding).system.","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 code system 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"}]},{"id":"CodeSystem.identifier","path":"CodeSystem.identifier","short":"Additional identifier for the code system (business identifier)","definition":"A formal identifier that is used to identify this code system 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 code system outside of FHIR, where it is not possible to use the logical URI.  Note that HL7 defines at least three identifiers for many of its code systems - the FHIR canonical URL, the OID and the V2 Table 0396 mnemonic code.","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":"CodeSystem.version","path":"CodeSystem.version","short":"Business version of the code system (Coding.version)","definition":"The identifier that is used to identify this version of the code system when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the code system 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. This is used in [Coding](datatypes.html#Coding).version.","comment":"There may be different code system 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 code system 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":"CodeSystem.name","path":"CodeSystem.name","short":"Name for this code system (computer friendly)","definition":"A natural language name identifying the code system. 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.","requirements":"Support human navigation and code generation.","min":0,"max":"1","type":[{"code":"string"}],"condition":["inv-0"],"isSummary":true},{"id":"CodeSystem.title","path":"CodeSystem.title","short":"Name for this code system (human friendly)","definition":"A short, descriptive, user-friendly title for the code system.","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":"CodeSystem.status","path":"CodeSystem.status","short":"draft | active | retired | unknown","definition":"The date (and optionally time) when the code system resource was created or revised.","comment":"Allows filtering of code systems that are appropriate for use versus not.","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":"CodeSystem.experimental","path":"CodeSystem.experimental","short":"For testing purposes, not real usage","definition":"A Boolean value to indicate that this code system is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.","comment":"Allows filtering of code systems 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 code system.","min":0,"max":"1","type":[{"code":"boolean"}],"isSummary":true,"mapping":[{"identity":"workflow","map":"Definition.experimental"},{"identity":"w5","map":"FiveWs.class"}]},{"id":"CodeSystem.date","path":"CodeSystem.date","short":"Date last changed","definition":"The date  (and optionally time) when the code system was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the code system changes.","comment":"Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the code system. 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"}]},{"id":"CodeSystem.publisher","path":"CodeSystem.publisher","short":"Name of the publisher (organization or individual)","definition":"The name of the organization or individual that published the code system.","comment":"Usually an organization but may be an individual. The publisher (or steward) of the code system is the organization or individual primarily responsible for the maintenance and upkeep of the code system. 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 code system. This item SHOULD be populated unless the information is available from context.","requirements":"Helps establish the \"authority/credibility\" of the code system.  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":"CodeSystem.contact","path":"CodeSystem.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":"CodeSystem.description","path":"CodeSystem.description","short":"Natural language description of the code system","definition":"A free text natural language description of the code system from a consumer's perspective.","comment":"This description can be used to capture details such as why the code system 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 code system 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 code system is presumed to be the predominant language in the place the code system was created).","alias":["Scope","Purpose"],"min":0,"max":"1","type":[{"code":"markdown"}],"mapping":[{"identity":"workflow","map":"Definition.description"},{"identity":"rim","map":"N/A"}]},{"id":"CodeSystem.useContext","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status","valueCode":"trial-use"}],"path":"CodeSystem.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 code system 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":"CodeSystem.jurisdiction","path":"CodeSystem.jurisdiction","short":"Intended jurisdiction for code system (if applicable)","definition":"A legal or geographic region in which the code system is intended to be used.","comment":"It may be possible for the code system 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":"CodeSystem.purpose","path":"CodeSystem.purpose","short":"Why this code system is defined","definition":"Explanation of why this code system is needed and why it has been designed as it has.","comment":"This element does not describe the usage of the code system. 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 code system.","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":"CodeSystem.copyright","path":"CodeSystem.copyright","short":"Use and/or publishing restrictions","definition":"A copyright statement relating to the code system and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the code system.","comment":"... Sometimes, the copyright differs between the code system 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 code system 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":"CodeSystem.caseSensitive","path":"CodeSystem.caseSensitive","short":"If code comparison is case sensitive","definition":"If code comparison is case sensitive when codes within this system are compared to each other.","comment":"If this value is missing, then it is not specified whether a code system is case sensitive or not. When the rule is not known, Postel's law should be followed: produce codes with the correct case, and accept codes in any case. This element is primarily provided to support validation software.","min":0,"max":"1","type":[{"code":"boolean"}],"isSummary":true},{"id":"CodeSystem.valueSet","path":"CodeSystem.valueSet","short":"Canonical reference to the value set with entire code system","definition":"Canonical reference to the value set that contains the entire code system.","comment":"The definition of the value set SHALL include all codes from this code system and only codes from this code system, and it SHALL be immutable.","min":0,"max":"1","type":[{"code":"canonical","targetProfile":["http://hl7.org/fhir/StructureDefinition/ValueSet"]}],"isSummary":true},{"id":"CodeSystem.hierarchyMeaning","path":"CodeSystem.hierarchyMeaning","short":"grouped-by | is-a | part-of | classified-with","definition":"The meaning of the hierarchy of concepts as represented in this resource.","comment":"Note that other representations might have a different hierarchy or none at all, and represent the information using properties.","min":0,"max":"1","type":[{"code":"code"}],"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"CodeSystemHierarchyMeaning"}],"strength":"required","description":"The meaning of the hierarchy of concepts in a code system.","valueSet":"http://hl7.org/fhir/ValueSet/codesystem-hierarchy-meaning|4.0.1"}},{"id":"CodeSystem.compositional","path":"CodeSystem.compositional","short":"If code system defines a compositional grammar","definition":"The code system defines a compositional (post-coordination) grammar.","comment":"Note that the code system resource does not define what the compositional grammar is, only whether or not there is one.","alias":["grammar"],"min":0,"max":"1","type":[{"code":"boolean"}],"isSummary":true},{"id":"CodeSystem.versionNeeded","path":"CodeSystem.versionNeeded","short":"If definitions are not stable","definition":"This flag is used to signify that the code system does not commit to concept permanence across versions. If true, a version must be specified when referencing this code system.","comment":"Best practice is that code systems do not redefine concepts, or that if concepts are redefined, a new code system definition is created. But this is not always possible, so some code systems may be defined as 'versionNeeded'.\n\nMost code systems occasionally refine the displays defined for concepts between versions. Contexts in which the concept display values are validated may require that the version be specified for some code systems irrespective of the value of this property.","min":0,"max":"1","type":[{"code":"boolean"}],"isSummary":true},{"id":"CodeSystem.content","path":"CodeSystem.content","short":"not-present | example | fragment | complete | supplement","definition":"The extent of the content of the code system (the concepts and codes it defines) are represented in this resource instance.","min":1,"max":"1","type":[{"code":"code"}],"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"CodeSystemContentMode"}],"strength":"required","description":"The extent of the content of the code system (the concepts and codes it defines) are represented in a code system resource.","valueSet":"http://hl7.org/fhir/ValueSet/codesystem-content-mode|4.0.1"}},{"id":"CodeSystem.supplements","path":"CodeSystem.supplements","short":"Canonical URL of Code System this adds designations and properties to","definition":"The canonical URL of the code system that this code system supplement is adding designations and properties to.","comment":"The most common use of a code system supplement is to add additional language support.","min":0,"max":"1","type":[{"code":"canonical","targetProfile":["http://hl7.org/fhir/StructureDefinition/CodeSystem"]}],"isSummary":true},{"id":"CodeSystem.count","path":"CodeSystem.count","short":"Total concepts in the code system","definition":"The total number of concepts defined by the code system. Where the code system has a compositional grammar, the basis of this count is defined by the system steward.","comment":"The count of concepts defined in this resource cannot be more than this value but may be less for several reasons - see the content element.","min":0,"max":"1","type":[{"code":"unsignedInt"}],"isSummary":true},{"id":"CodeSystem.filter","path":"CodeSystem.filter","short":"Filter that can be used in a value set","definition":"A filter that can be used in a value set compose statement when selecting concepts using a filter.","comment":"Note that filters defined in code systems usually require custom code on the part of any terminology engine that will make them available for use in value set filters. For this reason, they are generally only seen in high value published terminologies.","min":0,"max":"*","type":[{"code":"BackboneElement"}],"isSummary":true},{"id":"CodeSystem.filter.code","path":"CodeSystem.filter.code","short":"Code that identifies the filter","definition":"The code that identifies this filter when it is used as a filter in [ValueSet](valueset.html#).compose.include.filter.","min":1,"max":"1","type":[{"code":"code"}],"isSummary":true},{"id":"CodeSystem.filter.description","path":"CodeSystem.filter.description","short":"How or why the filter is used","definition":"A description of how or why the filter is used.","min":0,"max":"1","type":[{"code":"string"}],"isSummary":true},{"id":"CodeSystem.filter.operator","path":"CodeSystem.filter.operator","short":"= | is-a | descendent-of | is-not-a | regex | in | not-in | generalizes | exists","definition":"A list of operators that can be used with the filter.","min":1,"max":"*","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"}},{"id":"CodeSystem.filter.value","path":"CodeSystem.filter.value","short":"What to use for the value","definition":"A description of what the value for the filter should be.","min":1,"max":"1","type":[{"code":"string"}],"isSummary":true},{"id":"CodeSystem.property","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name","valueString":"Property"}],"path":"CodeSystem.property","short":"Additional information supplied about each concept","definition":"A property defines an additional slot through which additional information can be provided about a concept.","min":0,"max":"*","type":[{"code":"BackboneElement"}],"isSummary":true},{"id":"CodeSystem.property.code","path":"CodeSystem.property.code","short":"Identifies the property on the concepts, and when referred to in operations","definition":"A code that is used to identify the property. The code is used internally (in CodeSystem.concept.property.code) and also externally, such as in property filters.","min":1,"max":"1","type":[{"code":"code"}],"isSummary":true},{"id":"CodeSystem.property.uri","path":"CodeSystem.property.uri","short":"Formal identifier for the property","definition":"Reference to the formal meaning of the property. One possible source of meaning is the [Concept Properties](codesystem-concept-properties.html) code system.","min":0,"max":"1","type":[{"code":"uri"}],"isSummary":true},{"id":"CodeSystem.property.description","path":"CodeSystem.property.description","short":"Why the property is defined, and/or what it conveys","definition":"A description of the property- why it is defined, and how its value might be used.","min":0,"max":"1","type":[{"code":"string"}],"isSummary":true},{"id":"CodeSystem.property.type","path":"CodeSystem.property.type","short":"code | Coding | string | integer | boolean | dateTime | decimal","definition":"The type of the property value. Properties of type \"code\" contain a code defined by the code system (e.g. a reference to another defined concept).","min":1,"max":"1","type":[{"code":"code"}],"isSummary":true,"binding":{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName","valueString":"PropertyType"}],"strength":"required","description":"The type of a property value.","valueSet":"http://hl7.org/fhir/ValueSet/concept-property-type|4.0.1"}},{"id":"CodeSystem.concept","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name","valueString":"ConceptDefinition"}],"path":"CodeSystem.concept","short":"Concepts in the code system","definition":"Concepts that are in the code system. The concept definitions are inherently hierarchical, but the definitions must be consulted to determine what the meanings of the hierarchical relationships are.","comment":"If this is empty, it means that the code system resource does not represent the content of the code system.","min":0,"max":"*","type":[{"code":"BackboneElement"}]},{"id":"CodeSystem.concept.code","path":"CodeSystem.concept.code","short":"Code that identifies concept","definition":"A code - a text symbol - that uniquely identifies the concept within the code system.","min":1,"max":"1","type":[{"code":"code"}]},{"id":"CodeSystem.concept.display","path":"CodeSystem.concept.display","short":"Text to display to the user","definition":"A human readable string that is the recommended default way to present this concept to a user.","min":0,"max":"1","type":[{"code":"string"}]},{"id":"CodeSystem.concept.definition","path":"CodeSystem.concept.definition","short":"Formal definition","definition":"The formal definition of the concept. The code system resource does not make formal definitions required, because of the prevalence of legacy systems. However, they are highly recommended, as without them there is no formal meaning associated with the concept.","min":0,"max":"1","type":[{"code":"string"}]},{"id":"CodeSystem.concept.designation","path":"CodeSystem.concept.designation","short":"Additional representations for the concept","definition":"Additional representations for the concept - 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).","requirements":"Many concept definition systems support multiple representations, in multiple languages, and for multiple purposes.","min":0,"max":"*","type":[{"code":"BackboneElement"}]},{"id":"CodeSystem.concept.designation.language","path":"CodeSystem.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":"CodeSystem.concept.designation.use","path":"CodeSystem.concept.designation.use","short":"Details how this designation would be used","definition":"A code that details how this designation would be used.","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":"CodeSystem.concept.designation.value","path":"CodeSystem.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":"CodeSystem.concept.property","extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name","valueString":"ConceptProperty"}],"path":"CodeSystem.concept.property","short":"Property value for the concept","definition":"A property value for this concept.","min":0,"max":"*","type":[{"code":"BackboneElement"}]},{"id":"CodeSystem.concept.property.code","path":"CodeSystem.concept.property.code","short":"Reference to CodeSystem.property.code","definition":"A code that is a reference to CodeSystem.property.code.","min":1,"max":"1","type":[{"code":"code"}]},{"id":"CodeSystem.concept.property.value[x]","path":"CodeSystem.concept.property.value[x]","short":"Value of the property for this concept","definition":"The value of this property.","min":1,"max":"1","type":[{"code":"code"},{"code":"Coding"},{"code":"string"},{"code":"integer"},{"code":"boolean"},{"code":"dateTime"},{"code":"decimal"}]},{"id":"CodeSystem.concept.concept","path":"CodeSystem.concept.concept","short":"Child Concepts (is-a/contains/categorizes)","definition":"Defines children of a concept to produce a hierarchy of concepts. The nature of the relationships is variable (is-a/contains/categorizes) - see hierarchyMeaning.","min":0,"max":"*","contentReference":"#CodeSystem.concept"}]}}
\ No newline at end of file