{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "version": {
          "$ref": "#/$defs/__schema1"
        },
        "subject": {
          "$ref": "#/$defs/__schema2"
        },
        "recordedAt": {
          "$ref": "#/$defs/__schema3"
        },
        "provenance": {
          "$ref": "#/$defs/__schema5"
        },
        "links": {
          "$ref": "#/$defs/__schema10"
        },
        "extensions": {
          "$ref": "#/$defs/__schema12"
        },
        "schemaVersion": {
          "$ref": "#/$defs/__schema15"
        },
        "names": {
          "$ref": "#/$defs/__schema16"
        },
        "aliases": {
          "$ref": "#/$defs/__schema18"
        },
        "kind": {
          "type": "string",
          "const": "lab.biomarker"
        },
        "description": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "id",
        "version",
        "names",
        "aliases",
        "kind",
        "description"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "version": {
          "$ref": "#/$defs/__schema1"
        },
        "subject": {
          "$ref": "#/$defs/__schema2"
        },
        "recordedAt": {
          "$ref": "#/$defs/__schema3"
        },
        "provenance": {
          "$ref": "#/$defs/__schema5"
        },
        "links": {
          "$ref": "#/$defs/__schema10"
        },
        "extensions": {
          "$ref": "#/$defs/__schema12"
        },
        "schemaVersion": {
          "$ref": "#/$defs/__schema15"
        },
        "names": {
          "$ref": "#/$defs/__schema16"
        },
        "aliases": {
          "$ref": "#/$defs/__schema18"
        },
        "kind": {
          "type": "string",
          "const": "lab.test"
        },
        "biomarker": {
          "$ref": "#/$defs/__schema19"
        },
        "measurement": {
          "type": "object",
          "properties": {
            "property": {
              "$ref": "#/$defs/__schema0"
            },
            "specimens": {
              "minItems": 1,
              "maxItems": 50,
              "type": "array",
              "items": {
                "$ref": "#/$defs/__schema20"
              }
            },
            "timing": {
              "$ref": "#/$defs/__schema0"
            },
            "scale": {
              "type": "string",
              "enum": [
                "quantitative",
                "ordinal",
                "nominal",
                "narrative"
              ]
            },
            "method": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "unspecified"
                    }
                  },
                  "required": [
                    "kind"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "specified"
                    },
                    "code": {
                      "$ref": "#/$defs/__schema0"
                    }
                  },
                  "required": [
                    "kind",
                    "code"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "required": [
            "property",
            "specimens",
            "timing",
            "scale",
            "method"
          ],
          "additionalProperties": false
        },
        "resultKinds": {
          "minItems": 1,
          "maxItems": 3,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema22"
          }
        },
        "supportedUnits": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema1"
          }
        },
        "preferredUnit": {
          "$ref": "#/$defs/__schema1"
        },
        "externalMappings": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema23"
          }
        }
      },
      "required": [
        "id",
        "version",
        "names",
        "aliases",
        "kind",
        "biomarker",
        "measurement",
        "resultKinds",
        "supportedUnits",
        "externalMappings"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema1"
        },
        "revision": {
          "$ref": "#/$defs/__schema25"
        },
        "subject": {
          "$ref": "#/$defs/__schema26"
        },
        "recordedAt": {
          "$ref": "#/$defs/__schema27"
        },
        "provenance": {
          "$ref": "#/$defs/__schema28"
        },
        "links": {
          "$ref": "#/$defs/__schema29"
        },
        "extensions": {
          "$ref": "#/$defs/__schema30"
        },
        "schemaVersion": {
          "$ref": "#/$defs/__schema31"
        },
        "source": {
          "$ref": "#/$defs/__schema32"
        },
        "kind": {
          "type": "string",
          "const": "lab.specimen"
        },
        "type": {
          "$ref": "#/$defs/__schema20"
        },
        "collected": {
          "$ref": "#/$defs/__schema34"
        },
        "collectionMethod": {
          "$ref": "#/$defs/__schema20"
        },
        "bodySite": {
          "$ref": "#/$defs/__schema20"
        }
      },
      "required": [
        "id",
        "revision",
        "kind",
        "type",
        "collected"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema1"
        },
        "revision": {
          "$ref": "#/$defs/__schema25"
        },
        "subject": {
          "$ref": "#/$defs/__schema26"
        },
        "recordedAt": {
          "$ref": "#/$defs/__schema27"
        },
        "provenance": {
          "$ref": "#/$defs/__schema28"
        },
        "links": {
          "$ref": "#/$defs/__schema29"
        },
        "extensions": {
          "$ref": "#/$defs/__schema30"
        },
        "schemaVersion": {
          "$ref": "#/$defs/__schema31"
        },
        "source": {
          "$ref": "#/$defs/__schema32"
        },
        "kind": {
          "type": "string",
          "const": "lab.result"
        },
        "test": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "identified"
                },
                "definition": {
                  "$ref": "#/$defs/__schema19"
                }
              },
              "required": [
                "kind",
                "definition"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "unresolved"
                },
                "label": {
                  "$ref": "#/$defs/__schema1"
                }
              },
              "required": [
                "kind",
                "label"
              ],
              "additionalProperties": false
            }
          ]
        },
        "collected": {
          "$ref": "#/$defs/__schema34"
        },
        "specimen": {
          "$ref": "#/$defs/__schema9"
        },
        "status": {
          "type": "string",
          "enum": [
            "preliminary",
            "final",
            "corrected",
            "amended",
            "cancelled",
            "entered_in_error"
          ]
        },
        "review": {
          "type": "string",
          "enum": [
            "unreviewed",
            "accepted",
            "excluded"
          ]
        },
        "raw": {
          "type": "object",
          "properties": {
            "label": {
              "$ref": "#/$defs/__schema1"
            },
            "value": {
              "type": "string",
              "maxLength": 512
            },
            "unit": {
              "$ref": "#/$defs/__schema1"
            },
            "reference": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "label",
            "value"
          ],
          "additionalProperties": false
        },
        "value": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "quantity"
                },
                "comparator": {
                  "type": "string",
                  "enum": [
                    "=",
                    "<",
                    "<=",
                    ">",
                    ">="
                  ]
                },
                "value": {
                  "$ref": "#/$defs/__schema35"
                },
                "unit": {
                  "$ref": "#/$defs/__schema1"
                }
              },
              "required": [
                "kind",
                "comparator",
                "value",
                "unit"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "category"
                },
                "coding": {
                  "$ref": "#/$defs/__schema20"
                }
              },
              "required": [
                "kind",
                "coding"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "text"
                },
                "text": {
                  "$ref": "#/$defs/__schema1"
                }
              },
              "required": [
                "kind",
                "text"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "absent"
                },
                "reason": {
                  "$ref": "#/$defs/__schema0"
                }
              },
              "required": [
                "kind",
                "reason"
              ],
              "additionalProperties": false
            }
          ]
        },
        "referenceRanges": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema36"
          }
        }
      },
      "required": [
        "id",
        "revision",
        "kind",
        "test",
        "collected",
        "status",
        "review",
        "raw",
        "value",
        "referenceRanges"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema1"
        },
        "revision": {
          "$ref": "#/$defs/__schema25"
        },
        "subject": {
          "$ref": "#/$defs/__schema26"
        },
        "recordedAt": {
          "$ref": "#/$defs/__schema27"
        },
        "provenance": {
          "$ref": "#/$defs/__schema28"
        },
        "links": {
          "$ref": "#/$defs/__schema29"
        },
        "extensions": {
          "$ref": "#/$defs/__schema30"
        },
        "schemaVersion": {
          "$ref": "#/$defs/__schema31"
        },
        "source": {
          "$ref": "#/$defs/__schema32"
        },
        "kind": {
          "type": "string",
          "const": "lab.report"
        },
        "laboratory": {
          "type": "object",
          "properties": {
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "name": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        "issued": {
          "$ref": "#/$defs/__schema34"
        },
        "received": {
          "$ref": "#/$defs/__schema34"
        },
        "status": {
          "type": "string",
          "enum": [
            "preliminary",
            "final",
            "corrected",
            "amended",
            "cancelled",
            "entered_in_error"
          ]
        },
        "results": {
          "maxItems": 10000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema9"
          }
        },
        "specimens": {
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema9"
          }
        },
        "panels": {
          "maxItems": 1000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema40"
          }
        }
      },
      "required": [
        "id",
        "revision",
        "kind",
        "status",
        "results",
        "specimens"
      ],
      "additionalProperties": false
    }
  ],
  "$defs": {
    "__schema0": {
      "type": "string",
      "maxLength": 256,
      "pattern": "^[a-z][a-z0-9.-]*:[A-Za-z0-9_.-]+$"
    },
    "__schema1": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512
    },
    "__schema2": {
      "$ref": "#/$defs/__schema1"
    },
    "__schema3": {
      "$ref": "#/$defs/__schema4"
    },
    "__schema4": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "__schema5": {
      "$ref": "#/$defs/__schema6"
    },
    "__schema6": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "manual"
            },
            "source": {
              "$ref": "#/$defs/__schema7"
            }
          },
          "required": [
            "kind",
            "source"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "sensor"
            },
            "source": {
              "$ref": "#/$defs/__schema7"
            }
          },
          "required": [
            "kind",
            "source"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "imported"
            },
            "source": {
              "$ref": "#/$defs/__schema7"
            },
            "mapper": {
              "$ref": "#/$defs/__schema8"
            }
          },
          "required": [
            "kind",
            "source",
            "mapper"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "derived"
            },
            "source": {
              "$ref": "#/$defs/__schema7"
            },
            "algorithm": {
              "$ref": "#/$defs/__schema8"
            },
            "inputs": {
              "minItems": 1,
              "maxItems": 1000,
              "type": "array",
              "items": {
                "$ref": "#/$defs/__schema9"
              }
            }
          },
          "required": [
            "kind",
            "source",
            "algorithm",
            "inputs"
          ],
          "additionalProperties": false
        }
      ]
    },
    "__schema7": {
      "type": "object",
      "properties": {
        "provider": {
          "$ref": "#/$defs/__schema1"
        },
        "externalId": {
          "$ref": "#/$defs/__schema1"
        },
        "device": {
          "$ref": "#/$defs/__schema1"
        },
        "originalSource": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "provider"
      ],
      "additionalProperties": false
    },
    "__schema8": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "version": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "id",
        "version"
      ],
      "additionalProperties": false
    },
    "__schema9": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema1"
        },
        "revision": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "id",
        "revision"
      ],
      "additionalProperties": false
    },
    "__schema10": {
      "maxItems": 1000,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema11"
      }
    },
    "__schema11": {
      "type": "object",
      "properties": {
        "relation": {
          "type": "string",
          "enum": [
            "part_of",
            "same_activity_as",
            "derived_from"
          ]
        },
        "target": {
          "$ref": "#/$defs/__schema9"
        }
      },
      "required": [
        "relation",
        "target"
      ],
      "additionalProperties": false
    },
    "__schema12": {
      "$ref": "#/$defs/__schema13"
    },
    "__schema13": {
      "type": "object",
      "propertyNames": {
        "$ref": "#/$defs/__schema0"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema14"
      }
    },
    "__schema14": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema14"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema14"
          }
        }
      ]
    },
    "__schema15": {
      "type": "string",
      "const": "0.0.0-local"
    },
    "__schema16": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema17"
      }
    },
    "__schema17": {
      "type": "object",
      "properties": {
        "language": {
          "type": "string",
          "minLength": 2,
          "maxLength": 35
        },
        "text": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "language",
        "text"
      ],
      "additionalProperties": false
    },
    "__schema18": {
      "maxItems": 200,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema17"
      }
    },
    "__schema19": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "version": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "id",
        "version"
      ],
      "additionalProperties": false
    },
    "__schema20": {
      "type": "object",
      "properties": {
        "system": {
          "$ref": "#/$defs/__schema1"
        },
        "code": {
          "$ref": "#/$defs/__schema1"
        },
        "version": {
          "$ref": "#/$defs/__schema21"
        },
        "display": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "system",
        "code"
      ],
      "additionalProperties": false
    },
    "__schema21": {
      "$ref": "#/$defs/__schema1"
    },
    "__schema22": {
      "type": "string",
      "enum": [
        "quantity",
        "category",
        "text"
      ]
    },
    "__schema23": {
      "type": "object",
      "properties": {
        "coding": {
          "type": "object",
          "properties": {
            "system": {
              "$ref": "#/$defs/__schema1"
            },
            "code": {
              "$ref": "#/$defs/__schema1"
            },
            "version": {
              "$ref": "#/$defs/__schema21"
            },
            "display": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "system",
            "code",
            "display"
          ],
          "additionalProperties": false
        },
        "relationship": {
          "type": "string",
          "enum": [
            "equivalent",
            "broader",
            "narrower",
            "related"
          ]
        },
        "review": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "source_verified",
                "unreviewed"
              ]
            },
            "checkedAt": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "sources": {
              "minItems": 1,
              "maxItems": 20,
              "type": "array",
              "items": {
                "$ref": "#/$defs/__schema24"
              }
            }
          },
          "required": [
            "status",
            "checkedAt",
            "sources"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "coding",
        "relationship",
        "review"
      ],
      "additionalProperties": false
    },
    "__schema24": {
      "type": "string",
      "format": "uri"
    },
    "__schema25": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "__schema26": {
      "$ref": "#/$defs/__schema1"
    },
    "__schema27": {
      "$ref": "#/$defs/__schema4"
    },
    "__schema28": {
      "$ref": "#/$defs/__schema6"
    },
    "__schema29": {
      "maxItems": 1000,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema11"
      }
    },
    "__schema30": {
      "$ref": "#/$defs/__schema13"
    },
    "__schema31": {
      "type": "string",
      "const": "0.0.0-local"
    },
    "__schema32": {
      "$ref": "#/$defs/__schema33"
    },
    "__schema33": {
      "type": "object",
      "properties": {
        "system": {
          "$ref": "#/$defs/__schema1"
        },
        "id": {
          "$ref": "#/$defs/__schema1"
        },
        "version": {
          "$ref": "#/$defs/__schema1"
        },
        "retrievedAt": {
          "$ref": "#/$defs/__schema4"
        }
      },
      "required": [
        "system",
        "id"
      ],
      "additionalProperties": false
    },
    "__schema34": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "instant"
            },
            "at": {
              "$ref": "#/$defs/__schema4"
            }
          },
          "required": [
            "kind",
            "at"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "interval"
            },
            "start": {
              "$ref": "#/$defs/__schema4"
            },
            "durationSeconds": {
              "type": "number",
              "minimum": 0,
              "maximum": 31536000
            }
          },
          "required": [
            "kind",
            "start",
            "durationSeconds"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "date"
            },
            "date": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "timezone": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "kind",
            "date"
          ],
          "additionalProperties": false
        }
      ]
    },
    "__schema35": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "string",
          "maxLength": 100,
          "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
        }
      ]
    },
    "__schema36": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "numeric"
            },
            "purpose": {
              "$ref": "#/$defs/__schema37"
            },
            "sourceKind": {
              "$ref": "#/$defs/__schema38"
            },
            "source": {
              "$ref": "#/$defs/__schema33"
            },
            "applicability": {
              "$ref": "#/$defs/__schema39"
            },
            "low": {
              "$ref": "#/$defs/__schema35"
            },
            "high": {
              "$ref": "#/$defs/__schema35"
            },
            "lowInclusive": {
              "type": "boolean"
            },
            "highInclusive": {
              "type": "boolean"
            },
            "unit": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "kind",
            "purpose",
            "sourceKind",
            "source",
            "unit"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "text"
            },
            "purpose": {
              "$ref": "#/$defs/__schema37"
            },
            "sourceKind": {
              "$ref": "#/$defs/__schema38"
            },
            "source": {
              "$ref": "#/$defs/__schema33"
            },
            "applicability": {
              "$ref": "#/$defs/__schema39"
            },
            "text": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "kind",
            "purpose",
            "sourceKind",
            "source",
            "text"
          ],
          "additionalProperties": false
        }
      ]
    },
    "__schema37": {
      "type": "string",
      "enum": [
        "reference",
        "decision_limit",
        "target"
      ]
    },
    "__schema38": {
      "type": "string",
      "enum": [
        "laboratory",
        "external"
      ]
    },
    "__schema39": {
      "$ref": "#/$defs/__schema1"
    },
    "__schema40": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/__schema1"
        },
        "name": {
          "$ref": "#/$defs/__schema1"
        },
        "results": {
          "maxItems": 10000,
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema9"
          }
        }
      },
      "required": [
        "id",
        "name",
        "results"
      ],
      "additionalProperties": false
    }
  },
  "title": "FitData lab schema",
  "description": "Structural schema for FitData domain records. Also run semantic and document reference validation."
}
