careplan-activity-title.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="careplan-activity-title" />
  4   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
  5     <valueCode value="pc" />
  6   </extension>
  7   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
  8     <valueInteger value="1" />
  9   </extension>
 10   <url value="http://hl7.org/fhir/StructureDefinition/careplan-activity-title" />
 11   <version value="4.0.1" />
 12   <name value="activity-title" />
 13   <title value="Title" />
 14   <status value="draft" />
 15   <date value="2015-03-27" />
 16   <publisher value="Health Level Seven, Inc. - Patient Care WG" />
 17   <contact>
 18     <telecom>
 19       <system value="url" />
 20       <value value="http://hl7.org/special/committees/patientcare.html" />
 21     </telecom>
 22   </contact>
 23   <description value="Human-friendly name for the activity." />
 24   <fhirVersion value="4.0.1" />
 25   <mapping>
 26     <identity value="rim" />
 27     <uri value="http://hl7.org/v3" />
 28     <name value="RIM Mapping" />
 29   </mapping>
 30   <kind value="complex-type" />
 31   <abstract value="false" />
 32   <context>
 33     <type value="element" />
 34     <expression value="CarePlan.activity" />
 35   </context>
 36   <type value="Extension" />
 37   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
 38   <derivation value="constraint" />
 39   <snapshot>
 40     <element id="Extension">
 41       <path value="Extension" />
 42       <short value="Label for activity" />
 43       <definition value="Human-friendly name for the activity." />
 44       <min value="0" />
 45       <max value="1" />
 46       <base>
 47         <path value="Extension" />
 48         <min value="0" />
 49         <max value="*" />
 50       </base>
 51       <condition value="ele-1" />
 52       <constraint>
 53         <key value="ele-1" />
 54         <severity value="error" />
 55         <human value="All FHIR elements must have a @value or children" />
 56         <expression value="hasValue() or (children().count() > id.count())" />
 57         <xpath value="@value|f:*|h:div" />
 58         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 59       </constraint>
 60       <constraint>
 61         <key value="ext-1" />
 62         <severity value="error" />
 63         <human value="Must have either extensions or value[x], not both" />
 64         <expression value="extension.exists() != value.exists()" />
 65         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
 66         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
 67       </constraint>
 68       <isModifier value="false" />
 69     </element>
 70     <element id="Extension.id">
 71       <path value="Extension.id" />
 72       <representation value="xmlAttr" />
 73       <short value="Unique id for inter-element referencing" />
 74       <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
 75       <min value="0" />
 76       <max value="1" />
 77       <base>
 78         <path value="Element.id" />
 79         <min value="0" />
 80         <max value="1" />
 81       </base>
 82       <type>
 83         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 84           <valueUrl value="string" />
 85         </extension>
 86         <code value="http://hl7.org/fhirpath/System.String" />
 87       </type>
 88       <isModifier value="false" />
 89       <isSummary value="false" />
 90       <mapping>
 91         <identity value="rim" />
 92         <map value="n/a" />
 93       </mapping>
 94     </element>
 95     <element id="Extension.extension">
 96       <path value="Extension.extension" />
 97       <slicing>
 98         <discriminator>
 99           <type value="value" />
100           <path value="url" />
101         </discriminator>
102         <description value="Extensions are always sliced by (at least) url" />
103         <rules value="open" />
104       </slicing>
105       <short value="Extension" />
106       <definition value="An Extension" />
107       <min value="0" />
108       <max value="0" />
109       <base>
110         <path value="Element.extension" />
111         <min value="0" />
112         <max value="*" />
113       </base>
114       <type>
115         <code value="Extension" />
116       </type>
117       <constraint>
118         <key value="ele-1" />
119         <severity value="error" />
120         <human value="All FHIR elements must have a @value or children" />
121         <expression value="hasValue() or (children().count() > id.count())" />
122         <xpath value="@value|f:*|h:div" />
123         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
124       </constraint>
125       <constraint>
126         <key value="ext-1" />
127         <severity value="error" />
128         <human value="Must have either extensions or value[x], not both" />
129         <expression value="extension.exists() != value.exists()" />
130         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])" />
131         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
132       </constraint>
133       <isModifier value="false" />
134       <isSummary value="false" />
135     </element>
136     <element id="Extension.url">
137       <path value="Extension.url" />
138       <representation value="xmlAttr" />
139       <short value="identifies the meaning of the extension" />
140       <definition value="Source of the definition for the extension code - a logical name or a URL." />
141       <comment value="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 SHALL be a URI for the Structure Definition defining the extension." />
142       <min value="1" />
143       <max value="1" />
144       <base>
145         <path value="Extension.url" />
146         <min value="1" />
147         <max value="1" />
148       </base>
149       <type>
150         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
151           <valueUrl value="uri" />
152         </extension>
153         <code value="http://hl7.org/fhirpath/System.String" />
154       </type>
155       <fixedUri value="http://hl7.org/fhir/StructureDefinition/careplan-activity-title" />
156       <isModifier value="false" />
157       <isSummary value="false" />
158       <mapping>
159         <identity value="rim" />
160         <map value="N/A" />
161       </mapping>
162     </element>
163     <element id="Extension.value[x]">
164       <path value="Extension.value[x]" />
165       <short value="Value of extension" />
166       <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/extensibility.html) for a list)." />
167       <min value="1" />
168       <max value="1" />
169       <base>
170         <path value="Extension.value[x]" />
171         <min value="0" />
172         <max value="1" />
173       </base>
174       <type>
175         <code value="string" />
176       </type>
177       <constraint>
178         <key value="ele-1" />
179         <severity value="error" />
180         <human value="All FHIR elements must have a @value or children" />
181         <expression value="hasValue() or (children().count() > id.count())" />
182         <xpath value="@value|f:*|h:div" />
183         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
184       </constraint>
185       <isModifier value="false" />
186       <isSummary value="false" />
187       <mapping>
188         <identity value="rim" />
189         <map value="N/A" />
190       </mapping>
191     </element>
192   </snapshot>
193   <differential>
194     <element id="Extension">
195       <path value="Extension" />
196       <short value="Label for activity" />
197       <definition value="Human-friendly name for the activity." />
198       <min value="0" />
199       <max value="1" />
200     </element>
201     <element id="Extension.extension">
202       <path value="Extension.extension" />
203       <max value="0" />
204     </element>
205     <element id="Extension.url">
206       <path value="Extension.url" />
207       <fixedUri value="http://hl7.org/fhir/StructureDefinition/careplan-activity-title" />
208     </element>
209     <element id="Extension.value[x]">
210       <path value="Extension.value[x]" />
211       <min value="1" />
212       <type>
213         <code value="string" />
214       </type>
215     </element>
216   </differential>
217 </StructureDefinition>