{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2019-01-22T21:20:53.837+00:00"
  },
  "url": "http://example.org/fhir/StructureDefinition/annotation-flagged",
  "name": "annotation-flagged",
  "status": "draft",
  "fhirVersion": "3.0.1",
  "kind": "complex-type",
  "abstract": false,
  "contextType": "datatype",
  "context": [
    "Annotation"
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Optional Extensions Element",
        "definition": "Optional Extension Element - found in all resources.",
        "constraint": [
          {
            "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')])"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://example.org/fhir/StructureDefinition/annotation-flagged"
      },
      {
        "id": "Extension.value[x]:valueBoolean",
        "path": "Extension.valueBoolean",
        "sliceName": "valueBoolean",
        "short": "Flagged note",
        "definition": "Flagged note signifies whether the note is flagged for some special reason.",
        "comment": "A boolean value representing a flagged status.",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "isModifier": false
      }
    ]
  }
}