
Package org.hl7.fhir.r5.tools
Class CDSHooksRequest
java.lang.Object
org.hl7.fhir.r5.model.Base
org.hl7.fhir.r5.model.LogicalBase
org.hl7.fhir.r5.tools.CDSHooksElement
org.hl7.fhir.r5.tools.CDSHooksRequest
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseDatatype,org.hl7.fhir.instance.model.api.ICompositeType
public class CDSHooksRequest
extends CDSHooksElement
implements org.hl7.fhir.instance.model.api.ICompositeType
This structure is defined to allow the FHIR Validator to validate a CDSHooks Request Body. TODO: This content will be moved to the CDS Hooks specification in the future
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class org.hl7.fhir.r5.model.Base
Base.ProfileSource, Base.ValidationInfo, Base.ValidationMode, Base.ValidationReason -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CDSHookContextHook-specific contextual data that the CDS service will needA structure holding an OAuth 2.0 bearer access token granting the CDS Service access to FHIR resources, along with supplemental information relating to the tokenprotected UrlTypeThe base URL of the CDS Client's FHIR server.protected CodeTypeThe hook that triggered this CDS Service callprotected UuidTypeWhile working in the CDS Client, a user can perform multiple actions in series or in parallel.An object containing key/value pairs of FHIR queries that this Request is requesting the CDS Client to perform and provide on each Request call.Fields inherited from class org.hl7.fhir.r5.tools.CDSHooksElement
extension -
Constructor Summary
ConstructorsConstructorDescriptionConstructorCDSHooksRequest(String hook, String hookInstance, CDSHookContext context) Constructor -
Method Summary
Modifier and TypeMethodDescriptioncopy()voidbooleanequalsDeep(Base other_) booleanequalsShallow(Base other_) fhirType()getHook()getNamedProperty(int _hash, String _name, boolean _checkValid) Base[]getProperty(int hash, String name, boolean checkValid) String[]getTypesForProperty(int hash, String name) booleanbooleanbooleanbooleanbooleanhasHook()booleanbooleanbooleanbooleanbooleanisEmpty()protected voidlistChildren(List<Property> children) makeProperty(int hash, String name) setContext(CDSHookContext value) setFhirServer(String value) setFhirServerElement(UrlType value) setHookElement(CodeType value) setHookInstance(String value) setHookInstanceElement(UuidType value) setProperty(int hash, String name, Base value) setProperty(String name, Base value) protected CDSHooksRequestMethods inherited from class org.hl7.fhir.r5.tools.CDSHooksElement
copyValues, getExtension, hasExtension, setExtensionMethods inherited from class org.hl7.fhir.r5.model.LogicalBase
getFHIRPublicationVersion, getIdBase, setIdBaseMethods inherited from class org.hl7.fhir.r5.model.Base
addDefinition, addFormatCommentsPost, addFormatCommentsPre, addValidationMessage, canHavePrimitiveValue, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyFormatComments, copyUserData, copyValues, dateTimeValue, equals, executeFunction, getChildByName, getChildValueByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getValidationInfo, getValidationMessages, getXhtml, hasFormatComment, hasFormatCommentPost, hasFormatCommentPre, hasPrimitiveValue, hasType, hasUserData, hasValidated, hasValidationInfo, hasValidationMessages, isBooleanPrimitive, isCopyUserData, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, removeChild, setCopyUserData, setUserData, setUserDataINN, setXhtmlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
Field Details
-
hook
The hook that triggered this CDS Service call -
hookInstance
While working in the CDS Client, a user can perform multiple actions in series or in parallel. For example, a clinician might prescribe two drugs in a row; each prescription action would be assigned a unique hookInstance. This allows a CDS Service to uniquely identify each hook invocation -
fhirServer
The base URL of the CDS Client's FHIR server. If fhirAuthorization is provided, this field is REQUIRED. The scheme MUST be https when production data is exchanged -
fhirAuthorization
A structure holding an OAuth 2.0 bearer access token granting the CDS Service access to FHIR resources, along with supplemental information relating to the token -
context
Hook-specific contextual data that the CDS service will need -
prefetchList
An object containing key/value pairs of FHIR queries that this Request is requesting the CDS Client to perform and provide on each Request call. The key is a string that describes the type of data being requested and the value is a string representing the FHIR query
-
-
Constructor Details
-
CDSHooksRequest
public CDSHooksRequest()Constructor -
CDSHooksRequest
Constructor
-
-
Method Details
-
getHookElement
- Returns:
hook(The hook that triggered this CDS Service call). This is the underlying object with id, value and extensions. The accessor "getHook" gives direct access to the value
-
hasHookElement
-
hasHook
-
setHookElement
- Parameters:
value-hook(The hook that triggered this CDS Service call). This is the underlying object with id, value and extensions. The accessor "getHook" gives direct access to the value
-
getHook
- Returns:
- The hook that triggered this CDS Service call
-
setHook
- Parameters:
value- The hook that triggered this CDS Service call
-
getHookInstanceElement
- Returns:
hookInstance(While working in the CDS Client, a user can perform multiple actions in series or in parallel. For example, a clinician might prescribe two drugs in a row; each prescription action would be assigned a unique hookInstance. This allows a CDS Service to uniquely identify each hook invocation). This is the underlying object with id, value and extensions. The accessor "getHookInstance" gives direct access to the value
-
hasHookInstanceElement
-
hasHookInstance
-
setHookInstanceElement
- Parameters:
value-hookInstance(While working in the CDS Client, a user can perform multiple actions in series or in parallel. For example, a clinician might prescribe two drugs in a row; each prescription action would be assigned a unique hookInstance. This allows a CDS Service to uniquely identify each hook invocation). This is the underlying object with id, value and extensions. The accessor "getHookInstance" gives direct access to the value
-
getHookInstance
- Returns:
- While working in the CDS Client, a user can perform multiple actions in series or in parallel. For example, a clinician might prescribe two drugs in a row; each prescription action would be assigned a unique hookInstance. This allows a CDS Service to uniquely identify each hook invocation
-
setHookInstance
- Parameters:
value- While working in the CDS Client, a user can perform multiple actions in series or in parallel. For example, a clinician might prescribe two drugs in a row; each prescription action would be assigned a unique hookInstance. This allows a CDS Service to uniquely identify each hook invocation
-
getFhirServerElement
- Returns:
fhirServer(The base URL of the CDS Client's FHIR server. If fhirAuthorization is provided, this field is REQUIRED. The scheme MUST be https when production data is exchanged). This is the underlying object with id, value and extensions. The accessor "getFhirServer" gives direct access to the value
-
hasFhirServerElement
-
hasFhirServer
-
setFhirServerElement
- Parameters:
value-fhirServer(The base URL of the CDS Client's FHIR server. If fhirAuthorization is provided, this field is REQUIRED. The scheme MUST be https when production data is exchanged). This is the underlying object with id, value and extensions. The accessor "getFhirServer" gives direct access to the value
-
getFhirServer
- Returns:
- The base URL of the CDS Client's FHIR server. If fhirAuthorization is provided, this field is REQUIRED. The scheme MUST be https when production data is exchanged
-
setFhirServer
- Parameters:
value- The base URL of the CDS Client's FHIR server. If fhirAuthorization is provided, this field is REQUIRED. The scheme MUST be https when production data is exchanged
-
getFhirAuthorization
- Returns:
fhirAuthorization(A structure holding an OAuth 2.0 bearer access token granting the CDS Service access to FHIR resources, along with supplemental information relating to the token)
-
hasFhirAuthorization
-
setFhirAuthorization
public CDSHooksRequest setFhirAuthorization(CDSHooksRequest.CDSHooksRequestFhirAuthorizationComponent value) - Parameters:
value-fhirAuthorization(A structure holding an OAuth 2.0 bearer access token granting the CDS Service access to FHIR resources, along with supplemental information relating to the token)
-
getContext
- Returns:
context(Hook-specific contextual data that the CDS service will need)
-
hasContext
-
setContext
- Parameters:
value-context(Hook-specific contextual data that the CDS service will need)
-
getPrefetchList
- Returns:
-
(An object containing key/value pairs of FHIR queries that this Request is requesting the CDS Client to perform and provide on each Request call. The key is a string that describes the type of data being requested and the value is a string representing the FHIR query)
invalid reference
#prefetch
-
setPrefetchList
public CDSHooksRequest setPrefetchList(List<CDSHooksRequest.CDSHooksRequestPrefetchComponent> thePrefetch) - Returns:
- Returns a reference to
thisfor easy method chaining
-
hasPrefetch
-
addPrefetch
-
listChildren
- Overrides:
listChildrenin classCDSHooksElement
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedPropertyin classCDSHooksElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getPropertyin classCDSHooksElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setPropertyin classCDSHooksElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setPropertyin classCDSHooksElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makePropertyin classCDSHooksElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForPropertyin classCDSHooksElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
- Overrides:
addChildin classCDSHooksElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classCDSHooksElement- Returns:
- the FHIR type name of the instance (not the java class name)
-
copy
- Specified by:
copyin classCDSHooksElement
-
copyValues
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeepin classCDSHooksElement
-
equalsShallow
- Overrides:
equalsShallowin classCDSHooksElement
-
isEmpty
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classCDSHooksElement
-