# text.div
plan

# rest[].resource[].searchParam[].documentation
Search the contents of the resource's data using a fulltext search

# rest[].resource[].searchParam[].documentation
Return resources linked to by the given target

# rest[].resource[].searchParam[].documentation
Only return resources which were last updated as specified by the given range

# rest[].resource[].searchParam[].documentation
Search for resources which have the given profile

# rest[].resource[].searchParam[].documentation
Search for resources which have the given security labels

# rest[].resource[].searchParam[].documentation
Search for resources which have the given source value (Resource.meta.source)

# rest[].resource[].searchParam[].documentation
Search for resources which have the given tag

# rest[].resource[].searchParam[].documentation
Search the contents of the resource's narrative using a fulltext search

# rest[].resource[].searchParam[].documentation
A use context assigned to the activity definition

# rest[].resource[].searchParam[].documentation
A quantity- or range-valued use context assigned to the activity definition

# rest[].resource[].searchParam[].documentation
A type of use context assigned to the activity definition

# rest[].resource[].searchParam[].documentation
A use context type and value assigned to the activity definition

# rest[].resource[].searchParam[].documentation
The activity definition publication date

# rest[].resource[].searchParam[].documentation
The description of the activity definition

# rest[].resource[].searchParam[].documentation
The time during which the activity definition is intended to be in use

# rest[].resource[].searchParam[].documentation
External identifier for the activity definition

# rest[].resource[].searchParam[].documentation
The intended audience of the plan definition

# rest[].resource[].searchParam[].documentation
Intended jurisdiction for the activity definition

# rest[].resource[].searchParam[].documentation
Reference to either Organization, CareTeam, Practitioner

# rest[].resource[].searchParam[].documentation
Role of Organization, CareTeam, Practitioner

# rest[].resource[].searchParam[].documentation
Computationally friendly name of the activity definition

# rest[].resource[].searchParam[].documentation
Name of the publisher of the activity definition

# rest[].resource[].searchParam[].documentation
The current status of the activity definition

# rest[].resource[].searchParam[].documentation
The human-friendly name of the activity definition

# rest[].resource[].searchParam[].documentation
The uri that identifies the activity definition

# rest[].resource[].searchParam[].documentation
The business version of the activity definition

# rest[].resource[].operation[].documentation
### 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

# rest[].resource[].searchParam[].documentation
Search the contents of the resource's data using a fulltext search

# rest[].resource[].searchParam[].documentation
Search the contents of the resource's data using a filter

# rest[].resource[].searchParam[].documentation
Return resources linked to by the given target

# rest[].resource[].searchParam[].documentation
Only return resources which were last updated as specified by the given range

# rest[].resource[].searchParam[].documentation
Search for resources which have the given profile

# rest[].resource[].searchParam[].documentation
Search for resources which have the given security labels

# rest[].resource[].searchParam[].documentation
Search for resources which have the given source value (Resource.meta.source)

# rest[].resource[].searchParam[].documentation
Search for resources which have the given tag

# rest[].resource[].searchParam[].documentation
Search the contents of the resource's narrative using a fulltext search

# rest[].resource[].searchParam[].documentation
Mime type of the content, with charset etc.

# rest[].resource[].searchParam[].documentation
Organization which maintains the document

# rest[].resource[].searchParam[].documentation
When this document reference was created

# rest[].resource[].searchParam[].documentation
The Organization which is intended to use the DocumentReference

# rest[].resource[].searchParam[].documentation
Role of Organization related to modification of the DocumentReference

# rest[].resource[].searchParam[].documentation
Time of service that is being documented

# rest[].resource[].searchParam[].documentation
Additional details about where the content was created (e.g. clinical specialty)

# rest[].resource[].searchParam[].documentation
A use context assigned to the DocumentReference

# rest[].resource[].searchParam[].documentation
A type of use context assigned to the DocumentReference

# rest[].resource[].searchParam[].documentation
A use context type and value assigned to the DocumentReference

# rest[].resource[].searchParam[].documentation
Search the contents of the resource's data using a fulltext search

# rest[].resource[].searchParam[].documentation
Return resources linked to by the given target

# rest[].resource[].searchParam[].documentation
Only return resources which were last updated as specified by the given range

# rest[].resource[].searchParam[].documentation
Search for resources which have the given profile

# rest[].resource[].searchParam[].documentation
Search for resources which have the given security labels

# rest[].resource[].searchParam[].documentation
Search for resources which have the given source value (Resource.meta.source)

# rest[].resource[].searchParam[].documentation
Search for resources which have the given tag

# rest[].resource[].searchParam[].documentation
Search the contents of the resource's narrative using a fulltext search

# rest[].resource[].searchParam[].documentation
A use context assigned to the plan definition

# rest[].resource[].searchParam[].documentation
A quantity- or range-valued use context assigned to the plan definition

# rest[].resource[].searchParam[].documentation
A type of use context assigned to the plan definition

# rest[].resource[].searchParam[].documentation
A use context type and value assigned to the plan definition

# rest[].resource[].searchParam[].documentation
Activity or plan definitions used by plan definition

# rest[].resource[].searchParam[].documentation
The time during which the plan definition is intended to be in use

# rest[].resource[].searchParam[].documentation
External identifier for the plan definition

# rest[].resource[].searchParam[].documentation
The intended audience of the plan definition

# rest[].resource[].searchParam[].documentation
Intended jurisdiction for the plan definition

# rest[].resource[].searchParam[].documentation
Reference to either Organization, CareTeam, Practitioner

# rest[].resource[].searchParam[].documentation
Role of Organization, CareTeam, Practitioner

# rest[].resource[].searchParam[].documentation
Computationally friendly name of the plan definition

# rest[].resource[].searchParam[].documentation
Name of the publisher of the plan definition

# rest[].resource[].searchParam[].documentation
The current status of the plan definition

# rest[].resource[].searchParam[].documentation
The human-friendly name of the plan definition

# rest[].resource[].searchParam[].documentation
The type of artifact the plan (e.g. order-set, eca-rule, protocol)

# rest[].resource[].searchParam[].documentation
The uri that identifies the plan definition

# rest[].resource[].searchParam[].documentation
The business version of the plan definition

# rest[].resource[].operation[].documentation
Import a Plandefinition
### Parameters
- planDefinitionPackage: Binary package produced by the export operation
### Output
Bundle containing the created resources. PlanDefinitions, ActivityDefinitions, and Questionnaires will be created. Imports QFFD DocumentReference into Document-Transformation service.Libraries and Organizations are used to find the corresponding resources on the target system.

# rest[].resource[].operation[].documentation
Export a PlanDefinition.
### Export Contents
The export contains the PlanDefinition including referenced resources:- PlanDefinitions
- ActivityDefinitions
- Questionnaires
- Libraries
- Organizations
- DocumentReference + QFDD

Each resource is returned in a separate JSon file.
### Parameters
- exclude: references to ActivityDefinitions or PlanDefinitions to exclude from the export.
### Output
Output can be found in Binary.content. This is a Base64 encoded .zip file containing JSon files.
All returned objects are Fhir resources. See the implementation guide for details

# rest[].resource[].operation[].documentation
### Input
- resourceId: reference to the PlanDefinition 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

# rest[].resource[].operation[].documentation
Create a careplan with service requests for a specific episodeOfCare using the PlanDefinition as a template. If using POST the operation will persist resources and return the careplan. If using GET the operation will return transient resources in a transaction bundle. The bundle with transient careplan and servicerequest resources can then be modified before being persisted using a FHIR transaction.

# rest[].operation[].documentation
Provides the number of resources currently stored on the server, broken down by resource type