Skip to main content

Invoke

The invoke operation is used to invoke a specific operation either at the system, type or instance level. The request body is a parameters resource that contains the input for the operation.

What is required will be dependent on the operation that is being invoked. This is defined under OperationDefinition.parameter. Invocations will return the result as a Parameters resource.

API

System level

R4

iguhealth api invoke_system r4 --data $Parameters

R4B

iguhealth api invoke_system r4b --data $Parameters

Type level

R4

iguhealth api invoke_type r4 $ResourceType --data $Parameters

R4B

iguhealth api invoke_type r4b $ResourceType --data $Parameters

Instance level

R4

iguhealth api invoke_instance r4 $ResourceType $ResourceId --data $Parameters

R4B

iguhealth api invoke_instance r4b $ResourceType $ResourceId --data $Parameters

Example

iguhealth api invoke_type r4 ValueSet expand --data '{"resourceType": "Parameters", "parameter": [{"name": "url", "valueUri": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"}] }'