PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.r2b.core@1.4.0
    http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs
{
  "description": "The minimum number of times the group must appear or the minimum number of answers for a question - when greater than 1.",
  "_filename": "StructureDefinition-questionnaire-minOccurs.json",
  "package_name": "hl7.fhir.r2b.core",
  "date": null,
  "derivation": "constraint",
  "publisher": "HL7",
  "fhirVersion": "1.6.0",
  "name": "Minimum repetitions",
  "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-3",
        "human": "minOccurs can't exist for display items",
        "xpath": "not(parent::*/f:type/@value='display')",
        "severity": "error",
        "expression": "$parent.type!='display'"
      }, {
        "key": "inv-1",
        "human": "minOccurs can't be more than one if required is false",
        "xpath": "f:valueInteger/@value=0 or parent::*/f:required/@value=true()",
        "severity": "error",
        "expression": "valueInteger = 0 or $parent.required.exists()"
      } ],
      "path": "Extension",
      "min": 0,
      "definition": "The minimum number of times the group must appear or the minimum number of answers for a question - when greater than 1.",
      "isModifier": false,
      "short": "Minimum repetitions",
      "comments": "Default assumption for \"required\" elements is minOccurs=1.",
      "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-minOccurs",
      "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.valueInteger",
      "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": "integer"
      } ],
      "mustSupport": false,
      "max": "1",
      "maxLength": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "Extension.value[x]"
      },
      "isSummary": false
    } ]
  },
  "status": "draft",
  "id": "eff3a3aa-4f5b-4c0e-84ad-0cb9768c6491",
  "kind": "datatype",
  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs",
  "context": [ "Questionnaire.item", "Questionnaire.item.item" ],
  "version": null,
  "differential": {
    "element": [ {
      "constraint": [ {
        "key": "inv-3",
        "human": "minOccurs can't exist for display items",
        "xpath": "not(parent::*/f:type/@value='display')",
        "severity": "error",
        "expression": "$parent.type!='display'"
      }, {
        "key": "inv-1",
        "human": "minOccurs can't be more than one if required is false",
        "xpath": "f:valueInteger/@value=0 or parent::*/f:required/@value=true()",
        "severity": "error",
        "expression": "valueInteger = 0 or $parent.required.exists()"
      } ],
      "path": "Extension",
      "min": 0,
      "definition": "The minimum number of times the group must appear or the minimum number of answers for a question - when greater than 1.",
      "isModifier": false,
      "short": "Minimum repetitions",
      "comments": "Default assumption for \"required\" elements is minOccurs=1.",
      "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-minOccurs",
      "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": "integer"
      } ],
      "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"
}