<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="16588057-ed45-40c9-93c6-46117712322a" />
  <meta>
    <lastUpdated value="2019-02-25T08:43:25.2204338+00:00" />
  </meta>
  <url value="http://medico-emr.net/stu3/sd/Procedure-CareIntervention-1" />
  <name value="Procedure-CareIntervention-1" />
  <status value="active" />
  <date value="2019-02-25T08:43:25.1476021+00:00" />
  <description value="medico: This procedure instance reprenents an executed care intervention. It maps to n1100mdc. &#xD;&#xA;The instance exists only, if n1100mdc.state &gt;= 10  - i.e. the care intervention was carried out - not neccessarily documented." />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Procedure" />
  <baseDefinition value="http://medico-emr.net/stu3/sd/Procedure-Base-1" />
  <derivation value="constraint" />
  <differential>
    <element id="Procedure">
      <path value="Procedure" />
      <definition value="medico: This procedure instance maps to n1100mdc. &#xD;&#xA;The instance exists only, if n1100mdc.state &gt;= 10  - i.e. the care intervention was carried out - not neccessarily documented." />
    </element>
    <element id="Procedure.id">
      <path value="Procedure.id" />
      <definition value="medico Format: CareIntervention-####" />
    </element>
    <element id="Procedure.meta">
      <path value="Procedure.meta" />
      <type>
        <code value="Meta" />
        <profile value="http://medico-emr.net/stu3/sd/Meta-ProfileOnly-1" />
      </type>
    </element>
    <element id="Procedure.meta.profile">
      <path value="Procedure.meta.profile" />
      <fixedUri value="http://medico-emr.net/stu3/sd/Procedure-CareIntervention-1" />
    </element>
    <element id="Procedure.extension">
      <path value="Procedure.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Procedure.extension:internalStatus">
      <path value="Procedure.extension" />
      <sliceName value="internalStatus" />
      <definition value="internal - may not be used outside Cerner&#xD;&#xA;the internal status which maps to n1100mdc.state" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://medico-emr.net/stu3/sd/MXT-Procdure-CareIntervention-InternalStatus-1" />
      </type>
    </element>
    <element id="Procedure.extension:singleDuration">
      <path value="Procedure.extension" />
      <sliceName value="singleDuration" />
      <definition value="medico: An extension to define the single duration or the procedure actually required. 'Single' means for one person and per one repitiion of the action/code. i.e. if 2 persons have to repeat the same code two times the overall duration would be 4-fold as high as this single-duration" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://medico-emr.net/stu3/sd/MXT-Procedure-CareIntervention-SingleDuration-1" />
      </type>
    </element>
    <element id="Procedure.identifier">
      <path value="Procedure.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="type.coding.code" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Procedure.identifier:medicoResourceId">
      <path value="Procedure.identifier" />
      <sliceName value="medicoResourceId" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Identifier" />
        <profile value="http://medico-emr.net/stu3/sd/Identifier-medicoResourceId-1" />
      </type>
    </element>
    <element id="Procedure.identifier:medicoResourceId.system">
      <path value="Procedure.identifier.system" />
      <definition value="Must be a constant underneath http://medico-emr.net/%KUNDE%/sid1/CareIntervention" />
      <comment value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier&#xD;&#xA;Dynamically resolved for validation&#xD;&#xA;--FixedValue=http://medico-emr.net/%KUNDE%/sid1/CareIntervention" />
    </element>
    <element id="Procedure.definition">
      <path value="Procedure.definition" />
      <definition value="medico: links to ActivityDefinition if this was an unplanned care intervention, is not present if this is a planned CareIntervention based on a care plan was performed" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://medico-emr.net/stu3/sd/ActivityDefinition-AdHocCareIntervention-1" />
      </type>
    </element>
    <element id="Procedure.definition.id">
      <path value="Procedure.definition.id" />
      <max value="0" />
    </element>
    <element id="Procedure.definition.reference">
      <path value="Procedure.definition.reference" />
      <min value="1" />
    </element>
    <element id="Procedure.definition.identifier">
      <path value="Procedure.definition.identifier" />
      <max value="0" />
    </element>
    <element id="Procedure.definition.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Procedure.definition.display" />
      <max value="0" />
    </element>
    <element id="Procedure.basedOn">
      <path value="Procedure.basedOn" />
      <definition value="medico: links to the CarePlan and the ProcedureRequest for care interventions that this Procedure fulfills, is not present if this was an unplanned care intervention." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://medico-emr.net/stu3/sd/CarePlan-CareInterventionPlan-1" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://medico-emr.net/stu3/sd/ProcedureRequest-CareInterventionRequest-1" />
      </type>
    </element>
    <element id="Procedure.basedOn.id">
      <path value="Procedure.basedOn.id" />
      <max value="0" />
    </element>
    <element id="Procedure.basedOn.reference">
      <path value="Procedure.basedOn.reference" />
      <min value="1" />
    </element>
    <element id="Procedure.basedOn.identifier">
      <path value="Procedure.basedOn.identifier" />
      <max value="0" />
    </element>
    <element id="Procedure.basedOn.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Procedure.basedOn.display" />
      <max value="0" />
    </element>
    <element id="Procedure.partOf">
      <path value="Procedure.partOf" />
      <max value="0" />
    </element>
    <element id="Procedure.status">
      <path value="Procedure.status" />
      <definition value="medico: maps to n1100mdc.state. These values map as follows:&#xD;&#xA;&#xD;&#xA;10 (&quot;abzeichnen zurückgenommen&quot;) --&gt; &quot;preparation&quot;&#xD;&#xA;&#xD;&#xA;20 (&quot;durchgeführt wie geplant&quot;) --&gt; &quot;completed&quot;&#xD;&#xA;21 (&quot;durchgeführt mit Änderungen&quot;) --&gt; &quot;completed&quot;&#xD;&#xA;22 (&quot;unvollständig dokumentiert&quot;)  --&gt; &quot;completed&quot;&#xD;&#xA;30 (&quot;nicht durchgeführt&quot;) --&gt; &quot;aborted&quot;  - in this case notDone is set to true, notDoneReason might contain a code" />
    </element>
    <element id="Procedure.notDone">
      <path value="Procedure.notDone" />
      <definition value="medico: this flag is set if status is &quot;aborted&quot;,&#xD;&#xA;if  n1010mdc.state has one of the values &quot;30&quot; (not done for generic reason), &quot;40&quot; (refused by patient)&#xD;&#xA;if a none-generic reason (i.e. 40) is present it is reflected in notDoneReason" />
    </element>
    <element id="Procedure.notDoneReason">
      <path value="Procedure.notDoneReason" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="coding.code" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Procedure.notDoneReason:NotDoneReasonRefused">
      <path value="Procedure.notDoneReason" />
      <sliceName value="NotDoneReasonRefused" />
    </element>
    <element id="Procedure.notDoneReason:NotDoneReasonRefused.coding">
      <path value="Procedure.notDoneReason.coding" />
      <min value="1" />
    </element>
    <element id="Procedure.notDoneReason:NotDoneReasonRefused.coding.system">
      <path value="Procedure.notDoneReason.coding.system" />
      <fixedUri value="http://medico-emr.net/cs1" />
    </element>
    <element id="Procedure.notDoneReason:NotDoneReasonRefused.coding.version">
      <path value="Procedure.notDoneReason.coding.version" />
      <max value="0" />
    </element>
    <element id="Procedure.notDoneReason:NotDoneReasonRefused.coding.code">
      <path value="Procedure.notDoneReason.coding.code" />
      <fixedCode value="NotDoneReasonRefused" />
    </element>
    <element id="Procedure.category">
      <path value="Procedure.category" />
      <definition value="medico: Classifies this Procedure as belonging to care internetions. It is the same category as in the corresponding ProcedureRequest" />
      <min value="1" />
    </element>
    <element id="Procedure.category.id">
      <path value="Procedure.category.id" />
      <max value="0" />
    </element>
    <element id="Procedure.category.coding">
      <path value="Procedure.category.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Procedure.category.coding.id">
      <path value="Procedure.category.coding.id" />
      <max value="0" />
    </element>
    <element id="Procedure.category.coding.system">
      <path value="Procedure.category.coding.system" />
      <min value="1" />
      <fixedUri value="http://medico-emr.net/cs1" />
    </element>
    <element id="Procedure.category.coding.version">
      <path value="Procedure.category.coding.version" />
      <max value="0" />
    </element>
    <element id="Procedure.category.coding.code">
      <path value="Procedure.category.coding.code" />
      <min value="1" />
      <fixedCode value="CategoryCareIntervention" />
    </element>
    <element id="Procedure.category.coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Procedure.category.coding.display" />
      <max value="0" />
    </element>
    <element id="Procedure.category.coding.userSelected">
      <path value="Procedure.category.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Procedure.category.text">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Procedure.category.text" />
      <max value="0" />
    </element>
    <element id="Procedure.code">
      <path value="Procedure.code" />
      <definition value="medico: This code matches its counterpart &quot;code&quot; - as defined in ProcedureRequest-CareInterventionRequest-1&#xD;&#xA;i.e. this code uses n1100mdc.cat - for the code system - and n1100mdc.srv for the code within that system&#xD;&#xA;see &quot;system&quot; and &quot;code&quot; within &quot;coding&quot;" />
    </element>
    <element id="Procedure.code.extension">
      <path value="Procedure.code.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Procedure.code.extension:quantity">
      <path value="Procedure.code.extension" />
      <sliceName value="quantity" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://medico-emr.net/stu3/sd/MXT-Procedure-Quantity-1" />
      </type>
    </element>
    <element id="Procedure.code.extension:quantity.valueInteger:valueInteger">
      <path value="Procedure.code.extension.valueInteger" />
      <sliceName value="valueInteger" />
      <min value="1" />
    </element>
    <element id="Procedure.code.coding.system">
      <path value="Procedure.code.coding.system" />
      <definition value="medico: System has this pattern:&#xD;&#xA;http://medico-emr.net/%KUND%/cs/CareInterventionCodeSystem/{n1100mdc.cat}" />
    </element>
    <element id="Procedure.code.coding.version">
      <path value="Procedure.code.coding.version" />
      <max value="0" />
    </element>
    <element id="Procedure.code.coding.code">
      <path value="Procedure.code.coding.code" />
      <definition value="medico: maps to n1100mdc.srv" />
    </element>
    <element id="Procedure.code.coding.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
        <valueBoolean value="true" />
      </extension>
      <path value="Procedure.code.coding.display" />
      <definition value="medico: name of the care intervention as in the code system - i.e. n7010srv.des" />
    </element>
    <element id="Procedure.subject">
      <path value="Procedure.subject" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Procedure.context">
      <path value="Procedure.context" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Procedure.performed[x]:performedPeriod">
      <path value="Procedure.performedPeriod" />
      <sliceName value="performedPeriod" />
      <type>
        <code value="Period" />
      </type>
    </element>
    <element id="Procedure.performed[x]:performedPeriod.id">
      <path value="Procedure.performedPeriod.id" />
      <max value="0" />
    </element>
    <element id="Procedure.performed[x]:performedPeriod.start">
      <path value="Procedure.performedPeriod.start" />
      <definition value="medico: matches n1100mdc.operd" />
    </element>
    <element id="Procedure.performed[x]:performedPeriod.end">
      <path value="Procedure.performedPeriod.end" />
      <definition value="medico:  not used" />
      <max value="0" />
    </element>
    <element id="Procedure.performer">
      <path value="Procedure.performer" />
      <definition value="medico: care givers taking part in providing care &#xD;&#xA;maps to n1100mdc.resp, resp1 ... resp4" />
      <min value="1" />
    </element>
    <element id="Procedure.performer.id">
      <path value="Procedure.performer.id" />
      <max value="0" />
    </element>
    <element id="Procedure.performer.role">
      <path value="Procedure.performer.role" />
      <max value="0" />
    </element>
    <element id="Procedure.performer.actor">
      <path value="Procedure.performer.actor" />
      <type>
        <code value="Reference" />
        <profile value="http://medico-emr.net/stu3/sd/Reference-medicoEmployeeResourceReference-1" />
        <targetProfile value="http://medico-emr.net/stu3/sd/Practitioner-Employee-1" />
      </type>
    </element>
    <element id="Procedure.performer.actor.identifier">
      <path value="Procedure.performer.actor.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="type.coding.system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Procedure.performer.onBehalfOf">
      <path value="Procedure.performer.onBehalfOf" />
      <max value="0" />
    </element>
    <element id="Procedure.location">
      <path value="Procedure.location" />
      <max value="0" />
    </element>
    <element id="Procedure.reasonCode">
      <path value="Procedure.reasonCode" />
      <max value="0" />
    </element>
    <element id="Procedure.bodySite">
      <path value="Procedure.bodySite" />
      <max value="0" />
    </element>
    <element id="Procedure.outcome">
      <path value="Procedure.outcome" />
      <max value="0" />
    </element>
    <element id="Procedure.note.id">
      <path value="Procedure.note.id" />
      <max value="0" />
    </element>
    <element id="Procedure.note.extension">
      <path value="Procedure.note.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Procedure.note.extension:specialDocumentation">
      <path value="Procedure.note.extension" />
      <sliceName value="specialDocumentation" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://medico-emr.net/stu3/sd/MXT-Annotation-SpecialDocumentation-1" />
      </type>
    </element>
    <element id="Procedure.note.author[x]:authorReference">
      <path value="Procedure.note.authorReference" />
      <sliceName value="authorReference" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://medico-emr.net/stu3/sd/Practitioner-User-1" />
      </type>
    </element>
    <element id="Procedure.note.author[x]:authorReference.id">
      <path value="Procedure.note.authorReference.id" />
      <max value="0" />
    </element>
    <element id="Procedure.note.author[x]:authorReference.reference">
      <path value="Procedure.note.authorReference.reference" />
      <min value="1" />
    </element>
    <element id="Procedure.note.author[x]:authorReference.identifier">
      <path value="Procedure.note.authorReference.identifier" />
      <max value="0" />
    </element>
    <element id="Procedure.note.time">
      <path value="Procedure.note.time" />
      <definition value="Indicates when this particular annotation was made.&#xD;&#xA;maps to n1013csc.chd if this is a special documentation" />
    </element>
    <element id="Procedure.note.text">
      <path value="Procedure.note.text" />
      <definition value="medico: matches n1100mdc.info&#xD;&#xA;&#xD;&#xA;in case if this note is a special documentation note: &#xD;&#xA;this will contain the concatenated content from description and freetext field of the SpecialDocumentation extension" />
    </element>
  </differential>
</StructureDefinition>