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