PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.r2b.examples@1.4.0
    http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter
{
  "description": "Identifies a filter to apply when looking up candidate answers for the question.",
  "_filename": "StructureDefinition-questionnaire-referenceFilter.json",
  "package_name": "hl7.fhir.r2b.examples",
  "date": null,
  "derivation": "constraint",
  "publisher": "HL7",
  "fhirVersion": "1.6.0",
  "name": "Filter to apply when looking up references",
  "mapping": [ {
    "uri": "http://hl7.org/v3",
    "name": "RIM",
    "identity": "rim"
  } ],
  "baseType": "Extension",
  "abstract": false,
  "type": null,
  "experimental": "false",
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "1.4.0",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "inv-13",
        "human": "Allowed reference filter can only be specified for items of type 'reference'",
        "xpath": "parent::*/f:type/@value='reference'",
        "severity": "error",
        "expression": "$parent.type='reference'"
      } ],
      "path": "Extension",
      "min": 0,
      "definition": "Identifies a filter to apply when looking up candidate answers for the question.",
      "isModifier": false,
      "short": "Filter to apply when looking up references",
      "comments": "The filter may include $subj and/or $encounter which should be substituted by the implementer with the subject and/or encounter id relevant in the context in which the questionnaire is being populated.",
      "mapping": [ {
        "map": "N/A - MIF rather than RIM level",
        "identity": "rim"
      } ],
      "mustSupport": false,
      "max": "1",
      "maxLength": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "Extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references).",
      "isModifier": false,
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "id"
      } ],
      "mustSupport": false,
      "representation": [ "xmlAttr" ],
      "max": "1",
      "maxLength": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "name": "extension",
      "type": [ {
        "code": "Extension"
      } ],
      "mustSupport": false,
      "max": "0",
      "maxLength": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.url",
      "min": 1,
      "definition": "Source of the definition for the extension code - a logical name or a URL.",
      "isModifier": false,
      "short": "identifies the meaning of the extension",
      "fixedUri": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
      "comments": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition should be version specific.  This will ideally be the URI for the Resource Profile defining the extension, with the code for the extension after a #.",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "mustSupport": false,
      "representation": [ "xmlAttr" ],
      "max": "1",
      "maxLength": 0,
      "base": {
        "max": "1",
        "min": 1,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "path": "Extension.valueString",
      "min": 1,
      "definition": "Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).",
      "isModifier": false,
      "short": "Value of extension",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": false,
      "max": "1",
      "maxLength": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    } ]
  },
  "status": "draft",
  "id": "9db5cb5e-f5f0-4246-a52c-e3c26d19b8a5",
  "kind": "datatype",
  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
  "context": [ "Questionnaire.item", "Questionnaire.item.item" ],
  "version": null,
  "differential": {
    "element": [ {
      "constraint": [ {
        "key": "inv-13",
        "human": "Allowed reference filter can only be specified for items of type 'reference'",
        "xpath": "parent::*/f:type/@value='reference'",
        "severity": "error",
        "expression": "$parent.type='reference'"
      } ],
      "path": "Extension",
      "min": 0,
      "definition": "Identifies a filter to apply when looking up candidate answers for the question.",
      "isModifier": false,
      "short": "Filter to apply when looking up references",
      "comments": "The filter may include $subj and/or $encounter which should be substituted by the implementer with the subject and/or encounter id relevant in the context in which the questionnaire is being populated.",
      "mapping": [ {
        "map": "N/A - MIF rather than RIM level",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "mustSupport": false,
      "max": "1",
      "maxLength": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.extension",
      "min": 0,
      "isModifier": false,
      "name": "extension",
      "mustSupport": false,
      "max": "0",
      "maxLength": 0,
      "base": {
        "max": "0",
        "min": 0,
        "path": "Extension.extension"
      },
      "isSummary": false
    }, {
      "path": "Extension.url",
      "min": 0,
      "isModifier": false,
      "fixedUri": "http://hl7.org/fhir/StructureDefinition/questionnaire-referenceFilter",
      "type": [ {
        "code": "uri"
      } ],
      "mustSupport": false,
      "maxLength": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.url"
      },
      "isSummary": false
    }, {
      "min": 1,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "path": "Extension.value[x]",
      "type": [ {
        "code": "string"
      } ],
      "isSummary": false,
      "maxLength": 0,
      "isModifier": false,
      "mustSupport": false
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "rank": 1,
      "value": "http://www.hl7.org",
      "system": "other"
    } ]
  } ],
  "contextType": "resource",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension"
}