{
  "resourceType": "StructureDefinition",
  "id": "allergyintolerance-certainty",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pc"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 1
    }
  ],
  "url": "http://hl7.org/fhir/StructureDefinition/allergyintolerance-certainty",
  "name": "certainty",
  "title": "certainty",
  "status": "draft",
  "date": "2015-02-21",
  "publisher": "Health Level Seven, Inc. - FHIR WG",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "HL7"
        }
      ]
    }
  ],
  "description": "Statement about the degree of clinical certainty that the specific substance was the cause of the manifestation in this reaction event.",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "AllergyIntolerance.reaction"
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Certainty that the substance was the cause of the manifestation",
        "definition": "Statement about the degree of clinical certainty that the specific substance was the cause of the manifestation in this reaction event.",
        "comment": "When certainty is missing, it means no information exists (although it could be in narrative).  By contrast, the unknown code is used when there is an explicit assertion that certainty is not known, such as when a patient eats a meal and it is unknown which food caused the reaction.",
        "min": 0,
        "max": "1",
        "mapping": [
          {
            "identity": "rim",
            "map": "uncertaintyCode"
          }
        ]
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/allergyintolerance-certainty"
      },
      {
        "id": "Extension.valueCode",
        "path": "Extension.valueCode",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "AllergyIntoleranceCertainty"
            }
          ],
          "strength": "required",
          "description": "Statement about the degree of clinical certainty that a specific substance was the cause of the manifestation in a reaction event.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/reaction-event-certainty"
          }
        }
      }
    ]
  }
}