COMPLETED and CANCELED are Final States for a UPS instance. The attributes and values of the UPS instance must meet certain requirements before it may be placed in either of the Final States.
Note: A UPS instance is in the SCHEDULED state when created. See CC.1.1 for rules governing state transitions.
Attributes shall be valued as indicated by the Final State Codes in the Final State Column of Table CC.2.5-3 before the Procedure Step State (0074,1000) may be set to COMPLETED or CANCELED (i.e. Final State).
Performing systems are encouraged to ensure that the values for all attributes reasonably reflect what was done and the Final State of the UPS. This may include blanking attributes which are permitted to be empty and for which no reasonable value can be determined. The UPS contents should make it clear whether the step was completed, what work was done, what results were produced and whether the results are usable. See PS 3.17 Section GGG.7 for a discussion of methods to convey things like partial completion.
Note: The SCU may choose not to distribute, or otherwise make available, some or all instances created during the procedure step and referenced in the Output Information Sequence (0040,4033).
Final State Codes
|Final State Code||Meaning|
|R||The UPS State shall not be set to COMPLETED or CANCELED if this attribute does not have a value.|
|RC||The UPS State shall not be set to COMPLETED or CANCELED if the condition is met and this attribute does not have a value.|
|P||The UPS State shall not be set to COMPLETED if this attribute does not have a value, but may be set to CANCELED.|
|X||The UPS State shall not be set to CANCELED if this attribute does not have a value, but may be set to COMPLETED.|
|O||The UPS State may be set to either COMPLETED or CANCELED if this attribute does not have a value.|