ActivityDefinitionPlanDefinition-i-create-clone
type: OperationDefinition
node role: treeRoot
resource.id:
  value: ActivityDefinitionPlanDefinition-i-create-clone
domain resource.text:
  narrative.status:
    value: generated
  narrative.div: Generated Narrative: OperationDefinition ActivityDefinitionPlanDefinition-i-create-clone URL: [base]/ActivityDefinition/[id]/$create-clone URL: [base]/PlanDefinition/[id]/$create-clone Parameters Use Name Scope Cardinality Type Binding Documentation IN clone-operation 0..1 Coding minor-version/major-version/copy Coding from codesystem: http://ehealth.sundhed.dk/cs/ehealth-clone-operation. IN default-clone-behavior 0..1 boolean true/false. False signifies deep-clone mode where the list of deep-clone-references determine which resources should be cloned. IN deep-clone-references 0..* Reference References to resources to create as new resources rather than referencing the existing ones.
operation definition.url:
  value: http://ehealth.sundhed.dk/fhir/OperationDefinition/ActivityDefinitionPlanDefinition-i-create-clone
operation definition.version:
  value: 10.0.0
operation definition.name:
  value: create-clone
operation definition.title:
  value: Create a clone of an ActivityDefinition
operation definition.status:
  value: active
operation definition.kind:
  value: operation
operation definition.date:
  value: 2026-08-06T13:17:54+00:00
operation definition.publisher:
  value: Den telemedicinske infrastruktur (eHealth Infrastructure)
operation definition.contact:
  index: 0
  contact detail.name:
    value: Den telemedicinske infrastruktur (eHealth Infrastructure)
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: http://ehealth.sundhed.dk
operation definition.description:
  value: ### Input - resourceId: reference to the ActivityDefinition resource that should be cloned - clone_operation: minor-version/major-version/copy Coding from codesystem: http://ehealth.sundhed.dk/cs/ehealth-clone-operation - default-clone-behavior: true/false. False signifies deep-clone mode where the list of deep-clone-references determine which resources should be cloned - deep-clone-references: References to resources to create as new resources rather than referencing the existing ones. ### Output Bundle containing all resources that were created during the operation. ### Validation - New business versions require that the user has modifier-role: owner or co-author for the resource - New copy does not require that the user has a modifier-role. - New business version can be made only when no draft resource exists (having identical base identifier). - Read/search/create privileges are required for the resource types affected by $create-clone
operation definition.jurisdiction:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: urn:iso:std:iso:3166
    coding.code:
      value: DK
    coding.display:
      value: Denmark
operation definition.affects state:
  value: true
operation definition.code:
  value: create-clone
operation definition.resource:
  value: ActivityDefinition
  index: 0
operation definition.resource:
  value: PlanDefinition
  index: 1
operation definition.system:
  value: false
operation definition.type:
  value: false
operation definition.instance:
  value: true
operation definition.parameter:
  index: 0
  operation definition.parameter.name:
    value: clone-operation
  operation definition.parameter.use:
    value: in
  operation definition.parameter.min:
    value: 0
  operation definition.parameter.max:
    value: 1
  operation definition.parameter.documentation:
    value: minor-version/major-version/copy Coding from codesystem: http://ehealth.sundhed.dk/cs/ehealth-clone-operation.
  operation definition.parameter.type:
    value: Coding
operation definition.parameter:
  index: 1
  operation definition.parameter.name:
    value: default-clone-behavior
  operation definition.parameter.use:
    value: in
  operation definition.parameter.min:
    value: 0
  operation definition.parameter.max:
    value: 1
  operation definition.parameter.documentation:
    value: true/false. False signifies deep-clone mode where the list of deep-clone-references determine which resources should be cloned.
  operation definition.parameter.type:
    value: boolean
operation definition.parameter:
  index: 2
  operation definition.parameter.name:
    value: deep-clone-references
  operation definition.parameter.use:
    value: in
  operation definition.parameter.min:
    value: 0
  operation definition.parameter.max:
    value: *
  operation definition.parameter.documentation:
    value: References to resources to create as new resources rather than referencing the existing ones.
  operation definition.parameter.type:
    value: Reference