pynetdicom.service_class.RelevantPatientInformationQueryServiceClass¶
-
class
pynetdicom.service_class.RelevantPatientInformationQueryServiceClass(assoc)[source][source]¶ Implementation of the Relevant Patient Information Query
Methods
SCP(req, context, info)The SCP implementation for the Relevant Patient Information Query Service Class. __init__(assoc)Create a new ServiceClass. is_valid_status(status)Return True if status is valid for the service class. validate_status(status, rsp)Validate status and set rsp.Status accordingly. Attributes
aeReturn the AE. dimseReturn the DIMSE service provider. statuses-
SCP(req, context, info)[source][source]¶ The SCP implementation for the Relevant Patient Information Query Service Class.
Parameters: - req (dimse_primitives.C_FIND) – The C-FIND request primitive sent by the peer.
- context (presentation.PresentationContext) – The presentation context that the SCP is operating under.
- info (dict) – A dict containing details about the association.
See also
ae.ApplicationEntity.on_c_find(),association.Association.send_c_find()Notes
C-FIND Request
Parameters
(M) Message ID(M) Affected SOP Class UID(M) Priority(M) IdentifierIdentifier
The C-FIND request Identifier shall contain:
- Key Attributes with values corresponding to Key Attributes contained in the Identifier of the request.
- (0040,A504) Content Template Sequence, which shall include a single sequence item containing (0040,DB00) Template Identifier and (0008,0105) Mapping Resource attributes, to identify the template structure used in the C-FIND responses.
- (0008,0005) Specific Character Set, if expanded or replacement character sets may be used in any of the Attributes in the request Identifier. It shall not be present otherwise.
C-FIND Response
Parameters
(U) Message ID(M) Message ID Being Responded To(U) Affected SOP Class UID(C) Identifier(M) StatusStatus
- Success
0x0000Success- Pending
0xFF00Matches are continuing, current match supplied0xFF01Matches are continuing, warning- Cancel
0xFE00Matching terminated due to cancel request- Failure
0x0122SOP class not supported0xA700Out of resources0xA900Identifier does not match SOP class0xC100More than one match found0xC200Unable to support requested template
References
-
ae¶ Return the AE.
-
dimse¶ Return the DIMSE service provider.
-
is_valid_status(status)[source]¶ Return True if status is valid for the service class.
Parameters: status (int) – The Status value to check for validity. Returns: True if the status is valid, False otherwise. Return type: bool
-
validate_status(status, rsp)[source]¶ Validate status and set rsp.Status accordingly.
Parameters: - status (pydicom.dataset.Dataset or int) – A Dataset containing a Status element or an int.
- rsp (dimse_primitive) – The response primitive to be sent to the peer.
Returns: rsp – The response primitie to be sent to the peer (containing a valid Status parameter).
Return type: dimse_primitive
-