Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Content of the Protocol Terminators

Page Tree
root@none
sortcreation
searchBoxtrue

XDR Client Integration Testing

This page tries to gather all the specification of Integration testing for the XDR client component, including several aspects such as the description, inputs, results and last passed date.

Note

Work in progress!

Note
titlePlease Note:

These test definitions match the code implementation. The same Id and Test Name is used in method definitions.

Please follow the same convention and remember to reflect the code changes in these tables and vice-versa.

For each new test please add a new table and keep it updated.

Initial Information

If the epSOS Consent Service provider is able to decode the received consent document IDs but the deprecating of the consent document failed, it responds with an ebXML Registry Response that contains a respective status indicator (see below).The response MUST contain a RegistryErrorList element that indicates the failure condition.

The response status MUST be set to “urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure”. A failure location MUST NOT be given. The severity of each registry error message MUST be set to ”urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error”. Multiple registry error messages MAY be included within a single <rs:RegistryErrorList> element.

epSOS Consent Service allows for all of the XDS-b error messages defined in Table 4.1-11 of [IHE ITI TF - 3].

eDispensation

If the epSOS Dispensation Service provider is able to decode the received message but the processing of one or more dispensations failed, it responds with an ebXML Registry response That contains a respective status indicator (see below).The response MUST contain a RegistryErrorList element that indicates the failure condition.

If none of the eDispensations was processed succesfully, the response status MUST be set to “urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure”. If at least one EDispensation was processed successfully, the response status MUST be set to “urn:ihe:iti:2007:ResponseStatusType:PartialSuccess”.

A failure location MUST be provided if the error does not apply to all provided eDispensation documents. It MUST NOT be given if the error applies to all provided documents.

The severity of each registry error message MUST be set to ”urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error”. Multiple registry error messages MAY be included within a single <rs:RegistryErrorList> element. 

Tests

Table Color

Status
titleCommon
Status
colourYellow
titleConsent Service
Status
colourGreen
titleDispensation Service

Test #0 : "testSubmitConsent"

Test IdPT_CLIENT_XDR_#0
Name

testSubmitConsent

Description

This test performs a simple submitting action for a consent.

It is a simple test designed uniquely for testing the normal work-flow of the XDR.

Test InputsA Consent submitting action with a valid document.
Expected Results

N/A

Last Passed Date
Status
colourRed
titleN/A

Test #1 : "testSubmitED"

Test IdPT_CLIENT_XDR_#1
Name

testSubmitED

Description

This test performs a simple submitting action for a eDispensation.

It is a simple test designed uniquely for testing the normal work-flow of the XDR.

Test InputsA eDispensation submitting action with a valid document.
Expected Results

N/A

Last Passed Date
Status
colourRed
titleN/A

Test #2 : "testSubmitNoEP"

Test IdPT_CLIENT_XDR_#2
Name

testSubmitNoEP

Description

(ERROR)

No matching ePrescription was found.

Test InputsA eDispensation submitting action for an nonexistent ePrescription.
Expected Results

Response Status: Failure

Message: No Match
Code: 4105
Last Passed Date
Status
colourRed
titleN/A

Test #3 : "testSubmitDispEP"

Test IdPT_CLIENT_XDR_#3
Name

testSubmitDispEP

Description

(ERROR)

ePrescription has already been dispensed.

Test InputsA eDispensation submitting action for an already dispensed ePrescription.
Expected Results

Response Status: Failure

Message: Invalid Dispensation
Code: 4106
Last Passed Date
Status
colourRed
titleN/A

Test #4 : "testSubmitLowAuth"

Test IdPT_CLIENT_XDR_#4
Name

testSubmitLowAuth

Description

(ERROR)

Country A requests a higher authentication trust level than assigned to the HCP (e.g. password-based login is not accepted for the requested operation).

Test InputsA eDispensation/Consent submitting action for an already dispensed ePrescription.
Expected Results

Response Status: Failure

Message: Weak Authentication
Code: 4702
Last Passed Date
Status
colourRed
titleN/A

Test #5 : "testSubmitNoSign"

Test IdPT_CLIENT_XDR_#5
Name

testSubmitNoSign

Description

(ERROR)

The eDispensation service provider only accepts dispensation data that is digitally signed by an HCP.

Test InputsA eDispensation submitting action with no digital signature.
Expected Results

Response Status: Failure

Message: No Signature
Code: 4704
Last Passed Date
Status
colourRed
titleN/A

Test #6 : "testSubmitNoPDF"

Test IdPT_CLIENT_XDR_#6
Name

testSubmitNoPDF

Description

(ERROR)

The service consumer did not provide the source coded PDF document for an eDispensation.

Test InputsA eDispensation submitting action with no PDF document.
Expected Results

Response Status: Failure

Message: Original data missing
Code: 4107
Last Passed Date
Status
colourRed
titleN/A

Test #7 : "testSubmitNoDoc"

Test IdPT_CLIENT_XDR_#7
Name

testSubmitNoPDF

Description

(ERROR)

The service consumer did not provide the epSOS pivot coded document for an eDispensation.

Test InputsA eDispensation submitting action with no epSOS pivot coded document for an eDispensation.
Expected Results

Response Status: Failure

Message: Original data missing
Code: 4107
Last Passed Date
Status
colourRed
titleN/A

Test #8 : "testSubmitUnsupCons"

Test IdPT_CLIENT_XDR_#8
Name

testSubmitNoPDF

Description

(ERROR)

Country A does not allow for consent giving or revoking in other countries

Test InputsA consent submitting to a Country A that does not support consent giving or revoking.
Expected Results

Response Status: Failure

Message: Policy Violation
Code: 4705
Last Passed Date
Status
colourRed
titleN/A

Test #9 : "testSubmitUnsppPol"

Test IdPT_CLIENT_XDR_#9
Name

testSubmitUnsppPol

Description

(ERROR)

The provided privacy policy identifiers not supported by country A.

Test InputsA consent submitting to a Country A that does not support the given policy.
Expected Results

Response Status: Failure

Message: Unknown policy
Code: 4706
Last Passed Date
Status
colourRed
titleN/A

Test #10 : "testSubmitCmplxCons"

Test IdPT_CLIENT_XDR_#10
Name

testSubmitCmplxCons

Description

(ERROR)

Country-A requires for a general consent for epSOS that MUST have been given in country A before more specific consents can be accepted.

Test InputsA consent submitting to a Country A that does not support complex consents.
Expected Results

Response Status: Failure

Message: No consent
Code: 4701
Last Passed Date
Status
colourRed
titleN/A


Test #X : "testXXXX"

Test Numberx
NametestXXXX
Description

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam fermentum vestibulum est.

Cras rhoncus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

Test Inputs

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam fermentum vestibulum est.

Cras rhoncus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

Expected ResultsN/A
Last Passed Date
Status
colourRed
titleN/A