{ "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.", "_filename": "StructureDefinition-questionnaire-maxOccurs.json", "package_name": "hl7.fhir.r2.core", "date": "2013-07-04", "publisher": "HL7", "fhirVersion": "1.0.2", "name": "Maximum repetitions", "mapping": [ { "uri": "http://hl7.org/v3", "name": "RIM", "identity": "rim" } ], "abstract": false, "type": null, "experimental": null, "resourceType": "StructureDefinition", "title": null, "package_version": "1.0.2", "snapshot": { "element": [ { "constraint": [ { "key": "inv-2", "human": "maxOccurs can't be more than one if repeats is false", "xpath": "f:valueInteger/@value<=1 or parent::*/f:repeats/@value=true()", "severity": "error" } ], "path": "Extension", "min": 0, "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.", "short": "Maximum repetitions", "comments": "Only relevant if the element has repeats=true and there's a need to constrain the number of allowed repetitions.", "mapping": [ { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "max": "1", "base": { "max": "*", "min": 0, "path": "Extension" } }, { "path": "Extension.id", "min": 0, "definition": "unique id for the element within a resource (for internal references).", "short": "xml:id (or equivalent in JSON)", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "id" } ], "representation": [ "xmlAttr" ], "max": "1", "base": { "max": "1", "min": 0, "path": "Extension.id" } }, { "max": "0", "min": 0, "base": { "max": "*", "min": 0, "path": "Extension.extension" }, "name": "extension", "path": "Extension.extension", "type": [ { "code": "Extension" } ], "short": "Extension", "definition": "An Extension" }, { "path": "Extension.url", "min": 1, "definition": "Source of the definition for the extension code - a logical name or a URL.", "short": "identifies the meaning of the extension", "fixedUri": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs", "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" } ], "representation": [ "xmlAttr" ], "max": "1", "base": { "max": "1", "min": 1, "path": "Extension.url" } }, { "max": "1", "min": 1, "base": { "max": "1", "min": 0, "path": "Extension.value[x]" }, "path": "Extension.valueInteger", "type": [ { "code": "integer" } ], "short": "Value of extension", "mapping": [ { "map": "N/A", "identity": "rim" } ], "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)." } ] }, "status": "draft", "id": "61b7ba67-f33c-4d08-9266-60e587b80610", "kind": "datatype", "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs", "context": [ "Questionnaire.group", "Questionnaire.group.group", "Questionnaire.group.question" ], "base": "http://hl7.org/fhir/StructureDefinition/Extension", "version": null, "differential": { "element": [ { "constraint": [ { "key": "inv-2", "human": "maxOccurs can't be more than one if repeats is false", "xpath": "f:valueInteger/@value<=1 or parent::*/f:repeats/@value=true()", "severity": "error" } ], "path": "Extension", "min": 0, "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.", "short": "Maximum repetitions", "comments": "Only relevant if the element has repeats=true and there's a need to constrain the number of allowed repetitions.", "mapping": [ { "map": "N/A - MIF rather than RIM level", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "max": "1" }, { "max": "0", "name": "extension", "path": "Extension.extension" }, { "path": "Extension.url", "type": [ { "code": "uri" } ], "fixedUri": "http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs" }, { "min": 1, "path": "Extension.value[x]", "type": [ { "code": "integer" } ] } ] }, "contact": [ { "telecom": [ { "value": "http://www.hl7.org", "system": "other" } ] } ], "contextType": "resource", "constrainedType": "Extension" }