{
  "resourceType": "StructureDefinition",
  "constrainedType": "Extension",
  "base": "http://hl7.org/fhir/StructureDefinition/Extension",
  "id": "spark275",
  "meta": {
    "versionId": "spark275",
    "lastUpdated": "2015-10-02T12:19:55.123+00:00"
  },
  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs",
  "name": "Minimum repetitions",
  "status": "draft",
  "date": "2013-07-04",
  "publisher": "HL7",
  "contact": [
    {
      "telecom": [
        {
          "system": "other",
          "value": "http://www.hl7.org"
        }
      ]
    }
  ],
  "description": "The minimum number of times the group must appear or the minimum number of answers for a question - when greater than 1.",
  "fhirVersion": "1.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM"
    }
  ],
  "kind": "datatype",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Questionnaire.group",
    "Questionnaire.group.group",
    "Questionnaire.group.question"
  ],
  "snapshot": {
    "element": [
      {
        "comments": "Default assumption for \"required\" elements is minOccurs=1.",
        "id": "Extension",
        "path": "Extension",
        "short": "Minimum repetitions",
        "definition": "The minimum number of times the group must appear or the minimum number of answers for a question - when greater than 1.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "inv-1",
            "severity": "error",
            "human": "minOccurs can't be more than one if required is false",
            "xpath": "f:valueInteger/@value=0 or parent::*/f:required/@value=true()",
            "source": "http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A - MIF rather than RIM level"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "comments": "Default assumption for \"required\" elements is minOccurs=1.",
        "path": "Extension",
        "short": "Minimum repetitions",
        "definition": "The minimum number of times the group must appear or the minimum number of answers for a question - when greater than 1.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "inv-1",
            "severity": "error",
            "human": "minOccurs can't be more than one if required is false",
            "xpath": "f:valueInteger/@value=0 or parent::*/f:required/@value=true()"
          }
        ],
        "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-minOccurs"
      },
      {
        "path": "Extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "integer"
          }
        ]
      }
    ]
  }
}