{
  "resourceType": "StructureDefinition",
  "constrainedType": "Extension",
  "base": "http://hl7.org/fhir/StructureDefinition/Extension",
  "id": "spark148",
  "meta": {
    "versionId": "spark148",
    "lastUpdated": "2015-10-02T12:12:10.478+00:00"
  },
  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource",
  "name": "Allowed resource for reference",
  "status": "draft",
  "date": "2013-07-04",
  "publisher": "HL7",
  "contact": [
    {
      "telecom": [
        {
          "system": "other",
          "value": "http://www.hl7.org"
        }
      ]
    }
  ],
  "description": "Where the type for a question is \"Reference\", indicates a type of resource that is permitted.",
  "fhirVersion": "1.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM"
    }
  ],
  "kind": "datatype",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Questionnaire.group.question"
  ],
  "snapshot": {
    "element": [
      {
        "comments": "This extension only has meaning if the question.type = Reference.  If no allowedResource extensions are present, the presumption is that any type of resource is permitted.  If multiple are present, then any of the specified types are permitted.",
        "id": "Extension",
        "path": "Extension",
        "short": "Allowed resource for reference",
        "definition": "Where the type for a question is \"Reference\", indicates a type of resource that is permitted.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A - MIF rather than RIM level"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "comments": "This extension only has meaning if the question.type = Reference.  If no allowedResource extensions are present, the presumption is that any type of resource is permitted.  If multiple are present, then any of the specified types are permitted.",
        "path": "Extension",
        "short": "Allowed resource for reference",
        "definition": "Where the type for a question is \"Reference\", indicates a type of resource that is permitted.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A - MIF rather than RIM level"
          }
        ]
      },
      {
        "name": "extension",
        "path": "Extension.extension",
        "max": "0"
      },
      {
        "path": "Extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource"
      },
      {
        "path": "Extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "description": "One of the resource types defined as part of FHIR.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/resource-types"
          }
        }
      }
    ]
  }
}