
Package org.hl7.fhir.r5.tools
Class CDSHookOrderSelectContext
java.lang.Object
org.hl7.fhir.r5.model.Base
org.hl7.fhir.r5.model.LogicalBase
org.hl7.fhir.r5.tools.CDSHookContext
org.hl7.fhir.r5.tools.CDSHookOrderSelectContext
- 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 CDSHookOrderSelectContext
extends CDSHookContext
implements org.hl7.fhir.instance.model.api.ICompositeType
This structure is defined to allow the FHIR Validator to validate a CDSHooks order-select context. TODO: This content will be moved to the CDS Hooks specification in the future
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r5.model.Base
Base.ProfileSource, Base.ValidationInfo, Base.ValidationMode, Base.ValidationReason -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BundleFHIR Bundle of MedicationRequest, NutritionOrder, ServiceRequest, VisionPrescription with draft statusprotected IdTypeThe FHIR Encounter.id of the current encounter in contextprotected IdTypeThe FHIR Patient.id of the current patient in contextThe selections field references FHIR resources in the draftOrders Bundle.protected UrlTypeFor this hook, the user is expected to be of type Practitioner, PractitionerRole, Patient, or RelatedPerson. -
Constructor Summary
ConstructorsConstructorDescriptionConstructorCDSHookOrderSelectContext(String userId, String patientId, Bundle draftOrders) Constructor -
Method Summary
Modifier and TypeMethodDescriptionaddSelections(String value) copy()voidbooleanequalsDeep(Base other_) booleanequalsShallow(Base other_) fhirType()getNamedProperty(int _hash, String _name, boolean _checkValid) Base[]getProperty(int hash, String name, boolean checkValid) String[]getTypesForProperty(int hash, String name) booleanbooleanbooleanbooleanbooleanbooleanbooleanhasSelections(String value) booleanbooleanbooleanisEmpty()protected voidlistChildren(List<Property> children) makeProperty(int hash, String name) setDraftOrders(Bundle value) setEncounterId(String value) setEncounterIdElement(IdType value) setPatientId(String value) setPatientIdElement(IdType value) setProperty(int hash, String name, Base value) setProperty(String name, Base value) setSelectionsList(List<UriType> theSelections) setUserIdElement(UrlType value) protected CDSHookOrderSelectContextMethods inherited from class org.hl7.fhir.r5.tools.CDSHookContext
copyValuesMethods 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
-
userId
For this hook, the user is expected to be of type Practitioner, PractitionerRole, Patient, or RelatedPerson. Patient or RelatedPerson are appropriate when a patient or their proxy are viewing the record. For example, Practitioner/abc or Patient/123. -
patientId
The FHIR Patient.id of the current patient in context -
encounterId
The FHIR Encounter.id of the current encounter in context -
selectionsList
The selections field references FHIR resources in the draftOrders Bundle. For example, MedicationRequest/103 -
draftOrders
FHIR Bundle of MedicationRequest, NutritionOrder, ServiceRequest, VisionPrescription with draft status
-
-
Constructor Details
-
CDSHookOrderSelectContext
public CDSHookOrderSelectContext()Constructor -
CDSHookOrderSelectContext
Constructor
-
-
Method Details
-
getUserIdElement
- Returns:
userId(For this hook, the user is expected to be of type Practitioner, PractitionerRole, Patient, or RelatedPerson. Patient or RelatedPerson are appropriate when a patient or their proxy are viewing the record. For example, Practitioner/abc or Patient/123.). This is the underlying object with id, value and extensions. The accessor "getUserId" gives direct access to the value
-
hasUserIdElement
-
hasUserId
-
setUserIdElement
- Parameters:
value-userId(For this hook, the user is expected to be of type Practitioner, PractitionerRole, Patient, or RelatedPerson. Patient or RelatedPerson are appropriate when a patient or their proxy are viewing the record. For example, Practitioner/abc or Patient/123.). This is the underlying object with id, value and extensions. The accessor "getUserId" gives direct access to the value
-
getUserId
- Returns:
- For this hook, the user is expected to be of type Practitioner, PractitionerRole, Patient, or RelatedPerson. Patient or RelatedPerson are appropriate when a patient or their proxy are viewing the record. For example, Practitioner/abc or Patient/123.
-
setUserId
- Parameters:
value- For this hook, the user is expected to be of type Practitioner, PractitionerRole, Patient, or RelatedPerson. Patient or RelatedPerson are appropriate when a patient or their proxy are viewing the record. For example, Practitioner/abc or Patient/123.
-
getPatientIdElement
- Returns:
patientId(The FHIR Patient.id of the current patient in context). This is the underlying object with id, value and extensions. The accessor "getPatientId" gives direct access to the value
-
hasPatientIdElement
-
hasPatientId
-
setPatientIdElement
- Parameters:
value-patientId(The FHIR Patient.id of the current patient in context). This is the underlying object with id, value and extensions. The accessor "getPatientId" gives direct access to the value
-
getPatientId
- Returns:
- The FHIR Patient.id of the current patient in context
-
setPatientId
- Parameters:
value- The FHIR Patient.id of the current patient in context
-
getEncounterIdElement
- Returns:
encounterId(The FHIR Encounter.id of the current encounter in context). This is the underlying object with id, value and extensions. The accessor "getEncounterId" gives direct access to the value
-
hasEncounterIdElement
-
hasEncounterId
-
setEncounterIdElement
- Parameters:
value-encounterId(The FHIR Encounter.id of the current encounter in context). This is the underlying object with id, value and extensions. The accessor "getEncounterId" gives direct access to the value
-
getEncounterId
- Returns:
- The FHIR Encounter.id of the current encounter in context
-
setEncounterId
- Parameters:
value- The FHIR Encounter.id of the current encounter in context
-
getSelectionsList
- Returns:
-
(The selections field references FHIR resources in the draftOrders Bundle. For example, MedicationRequest/103)
invalid reference
#selections
-
setSelectionsList
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasSelections
-
addSelectionsElement
- Returns:
-
(The selections field references FHIR resources in the draftOrders Bundle. For example, MedicationRequest/103)
invalid reference
#selections
-
addSelections
- Parameters:
value-(The selections field references FHIR resources in the draftOrders Bundle. For example, MedicationRequest/103)invalid reference
#selections
-
hasSelections
- Parameters:
value-(The selections field references FHIR resources in the draftOrders Bundle. For example, MedicationRequest/103)invalid reference
#selections
-
getDraftOrders
- Returns:
draftOrders(FHIR Bundle of MedicationRequest, NutritionOrder, ServiceRequest, VisionPrescription with draft status)
-
hasDraftOrders
-
setDraftOrders
- Parameters:
value-draftOrders(FHIR Bundle of MedicationRequest, NutritionOrder, ServiceRequest, VisionPrescription with draft status)
-
listChildren
- Overrides:
listChildrenin classBase
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getNamedPropertyin classBase- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getPropertyin classBase- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
setPropertyin classBase- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
- Overrides:
setPropertyin classBase- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- Overrides:
makePropertyin classBase- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
getTypesForPropertyin classBase- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classCDSHookContext- Returns:
- the FHIR type name of the instance (not the java class name)
-
copy
- Specified by:
copyin classCDSHookContext
-
copyValues
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeepin classBase
-
equalsShallow
- Overrides:
equalsShallowin classBase
-
isEmpty
-