{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2019-01-22T21:25:44.623+00:00"
  },
  "url": "http://example.org/fhir/StructureDefinition/annotation-note-type",
  "name": "annotation-note-type",
  "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-note-type"
      },
      {
        "id": "Extension.value[x]:valueString",
        "path": "Extension.valueString",
        "sliceName": "valueString",
        "short": "Note type",
        "definition": "A string that describes the note type of an annotation (Pre-Op, Intra-Op, etc.).",
        "comment": "A string that describes the note type of an annotation (Pre-Op, Intra-Op, etc.).",
        "min": 1,
        "type": [
          {
            "code": "string"
          }
        ]
      }
    ]
  }
}