title: FHIR Profile/StructDef: How are children (sub-elements) of a named slice tied to the slice?
body: <p>I'm trying to figure out how to fully specify a sliced element.  If I'm reading the spec right, nameReference is the only place where a "sub element" of a slice can declare which slice it's "on".</p>
  
  <p>So, if telecom is sliced by use and system and I want to specify a constraint on home phone, I have to fix use and system to those values and then add my constraints on that slice.</p>
  
  <p>Consider:</p>
  
  <pre><code>Resource Example                  ElementDefinition attributes
  ================================  =====================================================================
  &lt;Patient&gt;                         name="Patient"
  ... snip ...
    &lt;telecom&gt;                       name="HomePhone"
      &lt;system value="phone" /&gt;      name="HomePhone.system", nameReference="HomePhone", fixedCode="phone"
      &lt;use value="home" /&gt;          name="HomePhone.use"   , nameReference="HomePhone", fixedCode="home"
      &lt;value value="5551234567" /&gt;  name="HomePhone.value" , nameReference="HomePhone"
    &lt;/telecom&gt;
  ... snip ...
  &lt;/Patient&gt;
  </code></pre>
  
  <p>In most examples, it appears that a dotted notation of Name has been used (as I've placed in the example).  But the specification doesn't require this and provides no format that could be reliably parsed.</p>
  
  <p>The problem is: nameReference and fixed[x] are mutually exclusive.  What's the correct way to handle this??</p>