{"abstract":false,"base":"http://hl7.org/fhir/StructureDefinition/Extension","constrainedType":"Extension","contact":[{"telecom":[{"system":"other","value":"http://www.hl7.org"}]}],"context":["Questionnaire.item","Questionnaire.item.item"],"contextType":"resource","date":"2013-07-04","description":"The maximum number of times the group must appear or the minimum number of answers for a question - when greater than 1 and not unlimited.","differential":{"element":[{"comments":"Only relevant if the element has repeats=true and there's a need to constrain the number of allowed repetitions.","constraint":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-expression","valueString":"valueInteger <= 1 or $parent.repeats"}],"human":"maxOccurs can't be more than one if repeats is false","key":"inv-2","severity":"error","xpath":"f:valueInteger/@value<=1 or parent::*/f:repeats/@value=true()"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-expression","valueString":"$parent.type!='display'"}],"human":"maxOccurs can't exist for display items","key":"inv-4","severity":"error","xpath":"not(parent::*/f:type/@value='display')"}],"definition":"The maximum number of times the group must appear or the minimum number of answers for a question - when greater than 1 and not unlimited.","mapping":[{"identity":"rim","map":"N/A - MIF rather than RIM level"}],"max":"1","min":0,"path":"Extension","short":"Maximum repetitions","type":[{"code":"Extension"}]},{"max":"0","name":"extension","path":"Extension.extension"},{"fixedUri":"http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs","path":"Extension.url","type":[{"code":"uri"}]},{"min":1,"path":"Extension.value[x]","type":[{"code":"integer"}]}]},"fhirVersion":"1.1.0","id":"questionnaire-maxOccurs","kind":"datatype","mapping":[{"identity":"rim","name":"RIM","uri":"http://hl7.org/v3"}],"name":"Maximum repetitions","publisher":"HL7","resourceType":"StructureDefinition","snapshot":{"element":[{"base":{"max":"*","min":0,"path":"Extension"},"comments":"Only relevant if the element has repeats=true and there's a need to constrain the number of allowed repetitions.","constraint":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-expression","valueString":"valueInteger <= 1 or $parent.repeats"}],"human":"maxOccurs can't be more than one if repeats is false","key":"inv-2","severity":"error","xpath":"f:valueInteger/@value<=1 or parent::*/f:repeats/@value=true()"},{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/structuredefinition-expression","valueString":"$parent.type!='display'"}],"human":"maxOccurs can't exist for display items","key":"inv-4","severity":"error","xpath":"not(parent::*/f:type/@value='display')"}],"definition":"The maximum number of times the group must appear or the minimum number of answers for a question - when greater than 1 and not unlimited.","mapping":[{"identity":"rim","map":"N/A - MIF rather than RIM level"}],"max":"1","min":0,"path":"Extension","short":"Maximum repetitions","type":[{"code":"Extension"}]},{"base":{"max":"1","min":0,"path":"Extension.id"},"definition":"unique id for the element within a resource (for internal references).","mapping":[{"identity":"rim","map":"n/a"}],"max":"1","min":0,"path":"Extension.id","representation":["xmlAttr"],"short":"xml:id (or equivalent in JSON)","type":[{"code":"id"}]},{"base":{"max":"*","min":0,"path":"Extension.extension"},"definition":"An Extension","max":"0","min":0,"name":"extension","path":"Extension.extension","short":"Extension","type":[{"code":"Extension"}]},{"base":{"max":"1","min":1,"path":"Extension.url"},"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 #.","definition":"Source of the definition for the extension code - a logical name or a URL.","fixedUri":"http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs","mapping":[{"identity":"rim","map":"N/A"}],"max":"1","min":1,"path":"Extension.url","representation":["xmlAttr"],"short":"identifies the meaning of the extension","type":[{"code":"uri"}]},{"base":{"max":"1","min":0,"path":"Extension.value[x]"},"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).","mapping":[{"identity":"rim","map":"N/A"}],"max":"1","min":1,"path":"Extension.valueInteger","short":"Value of extension","type":[{"code":"integer"}]}]},"status":"draft","url":"http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs"}