diff --git a/api/consumer/readDocumentReference/tests/test_read_document_reference_consumer.py b/api/consumer/readDocumentReference/tests/test_read_document_reference_consumer.py index b2adb9e1e..b393d8c59 100644 --- a/api/consumer/readDocumentReference/tests/test_read_document_reference_consumer.py +++ b/api/consumer/readDocumentReference/tests/test_read_document_reference_consumer.py @@ -67,7 +67,7 @@ def test_read_document_reference_not_found(repository: DocumentPointerRepository { "code": "NO_RECORD_FOUND", "display": "No record found", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -101,7 +101,7 @@ def test_read_document_reference_missing_id(): { "code": "INVALID_PARAMETER", "display": "Invalid parameter", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -147,7 +147,7 @@ def test_read_document_reference_unauthorised_for_type( { "code": "ACCESS DENIED", "display": "Access has been denied to process this request", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -192,7 +192,7 @@ def test_document_reference_invalid_json(repository: DocumentPointerRepository): { "code": "INTERNAL_SERVER_ERROR", "display": "Unexpected internal server error", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, diff --git a/api/consumer/searchDocumentReference/tests/test_search_document_reference_consumer.py b/api/consumer/searchDocumentReference/tests/test_search_document_reference_consumer.py index dde8ec0e2..ec1c9fd67 100644 --- a/api/consumer/searchDocumentReference/tests/test_search_document_reference_consumer.py +++ b/api/consumer/searchDocumentReference/tests/test_search_document_reference_consumer.py @@ -576,7 +576,7 @@ def test_search_document_reference_missing_nhs_number( { "code": "INVALID_PARAMETER", "display": "Invalid parameter", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -620,7 +620,7 @@ def test_search_document_reference_invalid_nhs_number( { "code": "INVALID_NHS_NUMBER", "display": "Invalid NHS number", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -663,7 +663,7 @@ def test_search_document_reference_invalid_type(repository: DocumentPointerRepos { "code": "INVALID_CODE_SYSTEM", "display": "Invalid code system", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -708,7 +708,7 @@ def test_search_document_reference_invalid_category( { "code": "INVALID_CODE_SYSTEM", "display": "Invalid code system", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -803,7 +803,7 @@ def test_search_document_reference_invalid_json( { "code": "INTERNAL_SERVER_ERROR", "display": "Unexpected internal server error", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, diff --git a/api/consumer/searchPostDocumentReference/tests/test_search_post_document_reference_consumer.py b/api/consumer/searchPostDocumentReference/tests/test_search_post_document_reference_consumer.py index 82a604c60..0414c531f 100644 --- a/api/consumer/searchPostDocumentReference/tests/test_search_post_document_reference_consumer.py +++ b/api/consumer/searchPostDocumentReference/tests/test_search_post_document_reference_consumer.py @@ -330,7 +330,7 @@ def test_search_post_document_reference_missing_nhs_number( { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -374,7 +374,7 @@ def test_search_post_document_reference_invalid_nhs_number( { "code": "INVALID_NHS_NUMBER", "display": "Invalid NHS number", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -421,7 +421,7 @@ def test_search_post_document_reference_invalid_type( { "code": "INVALID_CODE_SYSTEM", "display": "Invalid code system", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -468,7 +468,7 @@ def test_search_document_reference_invalid_category( { "code": "INVALID_CODE_SYSTEM", "display": "Invalid code system", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -567,7 +567,7 @@ def test_search_post_document_reference_invalid_json_adds_operation_outcome( { "code": "INTERNAL_SERVER_ERROR", "display": "Unexpected internal server error", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, diff --git a/api/producer/createDocumentReference/tests/test_create_document_reference.py b/api/producer/createDocumentReference/tests/test_create_document_reference.py index 73496262e..c832afb02 100644 --- a/api/producer/createDocumentReference/tests/test_create_document_reference.py +++ b/api/producer/createDocumentReference/tests/test_create_document_reference.py @@ -209,7 +209,7 @@ def test_create_document_reference_without_related_value_exception( { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -246,7 +246,7 @@ def test_create_document_reference_no_body(): { "code": "BAD_REQUEST", "display": "Bad request", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -283,7 +283,7 @@ def test_create_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -298,7 +298,7 @@ def test_create_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -313,7 +313,7 @@ def test_create_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -328,7 +328,7 @@ def test_create_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -343,7 +343,7 @@ def test_create_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -358,7 +358,7 @@ def test_create_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -371,7 +371,7 @@ def test_create_document_reference_invalid_body(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", } @@ -417,7 +417,7 @@ def test_create_document_reference_empty_fields_in_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -458,7 +458,7 @@ def test_create_document_reference_invalid_resource(): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -499,7 +499,7 @@ def test_create_document_reference_with_no_custodian(): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -540,7 +540,7 @@ def test_create_document_reference_with_no_practiceSetting(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -581,7 +581,7 @@ def test_create_document_reference_with_invalid_docStatus(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -625,7 +625,7 @@ def test_create_document_reference_invalid_custodian_id(): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -669,7 +669,7 @@ def test_create_document_reference_invalid_pointer_type(): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -718,7 +718,7 @@ def test_create_document_reference_pointer_type_not_allowed( { "code": "AUTHOR_CREDENTIALS_ERROR", "display": "Author credentials error", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -763,7 +763,7 @@ def test_create_document_reference_invalid_category_type(): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -811,7 +811,7 @@ def test_create_document_reference_cannot_set_status_to_not_current(repository): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -855,7 +855,7 @@ def test_create_document_reference_no_relatesto_target(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -902,7 +902,7 @@ def test_create_document_reference_invalid_relatesto_target_producer_id(): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -953,7 +953,7 @@ def test_create_document_reference_invalid_relatesto_not_exists(repository): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -1012,7 +1012,7 @@ def test_create_document_reference_invalid_relatesto_nhs_number( { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -1074,7 +1074,7 @@ def test_create_document_reference_invalid_relatesto_type( { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -1121,7 +1121,7 @@ def test_create_document_reference_with_no_context_related_for_ssp_url( { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -1175,7 +1175,7 @@ def test_create_document_reference_with_no_asid_in_for_ssp_url( { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -1229,7 +1229,7 @@ def test_create_document_reference_with_invalid_asid_for_ssp_url( { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -1403,7 +1403,7 @@ def test_create_document_reference_supersede_fails_without_toggle( { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, diff --git a/api/producer/deleteDocumentReference/tests/test_delete_document_reference.py b/api/producer/deleteDocumentReference/tests/test_delete_document_reference.py index 7428170db..41a28e9d6 100644 --- a/api/producer/deleteDocumentReference/tests/test_delete_document_reference.py +++ b/api/producer/deleteDocumentReference/tests/test_delete_document_reference.py @@ -82,7 +82,7 @@ def test_delete_document_reference_invalid_id_in_path(): { "code": "INVALID_PARAMETER", "display": "Invalid parameter", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -119,7 +119,7 @@ def test_delete_document_reference_invalid_producer_id(): { "code": "AUTHOR_CREDENTIALS_ERROR", "display": "Author credentials error", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, diff --git a/api/producer/readDocumentReference/tests/test_read_document_reference_producer.py b/api/producer/readDocumentReference/tests/test_read_document_reference_producer.py index 1495b98a8..8d788dc5f 100644 --- a/api/producer/readDocumentReference/tests/test_read_document_reference_producer.py +++ b/api/producer/readDocumentReference/tests/test_read_document_reference_producer.py @@ -67,7 +67,7 @@ def test_read_document_reference_not_found(repository: DocumentPointerRepository { "code": "NO_RECORD_FOUND", "display": "No record found", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -101,7 +101,7 @@ def test_read_document_reference_missing_id(): { "code": "INVALID_PARAMETER", "display": "Invalid parameter", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -139,7 +139,7 @@ def test_read_document_reference_incorrect_ods_code(): { "code": "AUTHOR_CREDENTIALS_ERROR", "display": "Author credentials error", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -182,7 +182,7 @@ def test_read_document_reference_invalid_json(repository: DocumentPointerReposit { "code": "INTERNAL_SERVER_ERROR", "display": "Unexpected internal server error", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, diff --git a/api/producer/searchDocumentReference/tests/test_search_document_reference_producer.py b/api/producer/searchDocumentReference/tests/test_search_document_reference_producer.py index 848098dc9..b7683d1d0 100644 --- a/api/producer/searchDocumentReference/tests/test_search_document_reference_producer.py +++ b/api/producer/searchDocumentReference/tests/test_search_document_reference_producer.py @@ -107,7 +107,7 @@ def test_search_document_reference_missing_nhs_number( { "code": "INVALID_NHS_NUMBER", "display": "Invalid NHS number", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", }, ], }, @@ -155,7 +155,7 @@ def test_search_document_reference_invalid_nhs_number( { "code": "INVALID_NHS_NUMBER", "display": "Invalid NHS number", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -198,7 +198,7 @@ def test_search_document_reference_invalid_type(repository: DocumentPointerRepos { "code": "INVALID_CODE_SYSTEM", "display": "Invalid code system", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -243,7 +243,7 @@ def test_search_document_reference_invalid_category( { "code": "INVALID_CODE_SYSTEM", "display": "Invalid code system", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -500,7 +500,7 @@ def test_search_document_reference_invalid_json( { "code": "INTERNAL_SERVER_ERROR", "display": "Unexpected internal server error", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, diff --git a/api/producer/searchPostDocumentReference/tests/test_search_post_document_reference_producer.py b/api/producer/searchPostDocumentReference/tests/test_search_post_document_reference_producer.py index 63f4f7f5b..8948a9cee 100644 --- a/api/producer/searchPostDocumentReference/tests/test_search_post_document_reference_producer.py +++ b/api/producer/searchPostDocumentReference/tests/test_search_post_document_reference_producer.py @@ -115,7 +115,7 @@ def test_search_document_reference_missing_nhs_number( { "code": "BAD_REQUEST", "display": "Bad request", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -158,7 +158,7 @@ def test_search_document_reference_invalid_nhs_number( { "code": "INVALID_NHS_NUMBER", "display": "Invalid NHS number", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -203,7 +203,7 @@ def test_search_document_reference_invalid_type(repository: DocumentPointerRepos { "code": "INVALID_CODE_SYSTEM", "display": "Invalid code system", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -250,7 +250,7 @@ def test_search_document_reference_invalid_category( { "code": "INVALID_CODE_SYSTEM", "display": "Invalid code system", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -520,7 +520,7 @@ def test_search_post_document_reference_invalid_json_adds_operation_outcome( { "code": "INTERNAL_SERVER_ERROR", "display": "Unexpected internal server error", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, diff --git a/api/producer/updateDocumentReference/tests/test_update_document_reference.py b/api/producer/updateDocumentReference/tests/test_update_document_reference.py index 3b4f35128..91fc8a3f6 100644 --- a/api/producer/updateDocumentReference/tests/test_update_document_reference.py +++ b/api/producer/updateDocumentReference/tests/test_update_document_reference.py @@ -184,7 +184,7 @@ def test_create_document_reference_no_body(): { "code": "BAD_REQUEST", "display": "Bad request", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -223,7 +223,7 @@ def test_update_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -238,7 +238,7 @@ def test_update_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -253,7 +253,7 @@ def test_update_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -268,7 +268,7 @@ def test_update_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -283,7 +283,7 @@ def test_update_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -298,7 +298,7 @@ def test_update_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -311,7 +311,7 @@ def test_update_document_reference_invalid_body(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", } @@ -354,7 +354,7 @@ def test_update_document_reference_with_no_practiceSetting(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -395,7 +395,7 @@ def test_update_document_reference_no_id_in_path(): { "code": "INVALID_PARAMETER", "display": "Invalid parameter", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -436,7 +436,7 @@ def test_update_document_reference_id_mismatch(): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -478,7 +478,7 @@ def test_update_document_reference_invalid_resource(): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -519,7 +519,7 @@ def test_update_document_reference_invalid_producer_id(): { "code": "AUTHOR_CREDENTIALS_ERROR", "display": "Author credentials error", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -561,7 +561,7 @@ def test_update_document_reference_no_existing_pointer(repository): { "code": "NO_RECORD_FOUND", "display": "No record found", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -616,7 +616,7 @@ def test_update_document_reference_immutable_fields(repository): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -664,7 +664,7 @@ def test_update_document_reference_cannot_change_status_to_not_current(repositor { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -712,7 +712,7 @@ def test_update_document_reference_with_no_context_related_for_ssp_url(repositor { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -767,7 +767,7 @@ def test_create_document_reference_with_no_asid_in_for_ssp_url( { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -822,7 +822,7 @@ def test_create_document_reference_with_invalid_asid_for_ssp_url( { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -1005,7 +1005,7 @@ def test_update_document_reference_existing_invalid_json( { "code": "INTERNAL_SERVER_ERROR", "display": "Unexpected internal server error", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, diff --git a/api/producer/upsertDocumentReference/tests/test_upsert_document_reference.py b/api/producer/upsertDocumentReference/tests/test_upsert_document_reference.py index 8ea04b281..d32871b02 100644 --- a/api/producer/upsertDocumentReference/tests/test_upsert_document_reference.py +++ b/api/producer/upsertDocumentReference/tests/test_upsert_document_reference.py @@ -183,7 +183,7 @@ def test_upsert_document_reference_cannot_set_status_to_not_current(repository): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -228,7 +228,7 @@ def test_upsert_document_reference_invalid_category_type(): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -265,7 +265,7 @@ def test_upsert_document_reference_no_body(): { "code": "BAD_REQUEST", "display": "Bad request", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -302,7 +302,7 @@ def test_upsert_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -317,7 +317,7 @@ def test_upsert_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -332,7 +332,7 @@ def test_upsert_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -347,7 +347,7 @@ def test_upsert_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -362,7 +362,7 @@ def test_upsert_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -377,7 +377,7 @@ def test_upsert_document_reference_invalid_body(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -390,7 +390,7 @@ def test_upsert_document_reference_invalid_body(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", } @@ -433,7 +433,7 @@ def test_upsert_document_reference_invalid_resource(): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -474,7 +474,7 @@ def test_upsert_document_reference_with_no_practiceSetting(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -515,7 +515,7 @@ def test_upsert_document_reference_with_invalid_docStatus(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -557,7 +557,7 @@ def test_upsert_document_reference_invalid_producer_id(): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -597,7 +597,7 @@ def test_upsert_document_reference_with_no_custodian(): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -641,7 +641,7 @@ def test_upsert_document_reference_invalid_custodian_id(): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -685,7 +685,7 @@ def test_upsert_document_reference_invalid_pointer_type(): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -734,7 +734,7 @@ def test_upsert_document_reference_pointer_type_not_allowed( { "code": "AUTHOR_CREDENTIALS_ERROR", "display": "Author credentials error", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -778,7 +778,7 @@ def test_upsert_document_reference_no_relatesto_target(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ], }, @@ -825,7 +825,7 @@ def test_upsert_document_reference_invalid_relatesto_target_producer_id(): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -876,7 +876,7 @@ def test_upsert_document_reference_invalid_relatesto_not_exists(repository): { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -992,7 +992,7 @@ def test_upsert_document_reference_invalid_relatesto_nhs_number( { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -1054,7 +1054,7 @@ def test_upsert_document_reference_invalid_relatesto_type( { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -1101,7 +1101,7 @@ def test_upsert_document_reference_with_no_context_related_for_ssp_url( { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -1155,7 +1155,7 @@ def test_upsert_document_reference_with_no_asid_in_for_ssp_url( { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -1209,7 +1209,7 @@ def test_upsert_document_reference_with_invalid_asid_for_ssp_url( { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, @@ -1381,7 +1381,7 @@ def test_upsert_document_reference_supersede_fails_without_toggle( { "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", } ] }, diff --git a/layer/nrlf/core/codes.py b/layer/nrlf/core/codes.py index a1f6767b3..da5f4e5f2 100644 --- a/layer/nrlf/core/codes.py +++ b/layer/nrlf/core/codes.py @@ -42,7 +42,7 @@ class NRLResponseConcept(_CodeableConcept): class SpineErrorConcept(_CodeableConcept): - _SYSTEM = "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1" + _SYSTEM = "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode" _TEXT_MAP = { "ACCESS DENIED": "Access has been denied to process this request", "NO_RECORD_FOUND": "No record found", diff --git a/layer/nrlf/core/tests/test_decorators.py b/layer/nrlf/core/tests/test_decorators.py index ad9bb5a9c..ea9d65717 100644 --- a/layer/nrlf/core/tests/test_decorators.py +++ b/layer/nrlf/core/tests/test_decorators.py @@ -72,7 +72,7 @@ def decorated_function(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "AUTHOR_CREDENTIALS_ERROR", "display": "Author credentials error", } @@ -107,7 +107,7 @@ def decorated_function(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "INTERNAL_SERVER_ERROR", "display": "Unexpected internal server error", } @@ -432,7 +432,7 @@ def decorated_function(params) -> Response: "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "INVALID_PARAMETER", "display": "Invalid parameter", } @@ -447,7 +447,7 @@ def decorated_function(params) -> Response: "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "INVALID_PARAMETER", "display": "Invalid parameter", } @@ -524,7 +524,7 @@ def decorated_function(event, context, config, metadata, body) -> Response: "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -572,7 +572,7 @@ def decorated_function(event, context, config, metadata, body) -> Response: "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", } @@ -587,7 +587,7 @@ def decorated_function(event, context, config, metadata, body) -> Response: "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", } @@ -661,7 +661,7 @@ def decorated_function(event, context) -> Response: "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MISSING_OR_INVALID_HEADER", "display": "There is a required header missing or invalid", } @@ -709,7 +709,7 @@ def decorated_function(event, context, config, metadata) -> Response: "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MISSING_OR_INVALID_HEADER", "display": "There is a required header missing or invalid", } diff --git a/layer/nrlf/core/tests/test_pydantic_errors.py b/layer/nrlf/core/tests/test_pydantic_errors.py index 5d657253f..9a06a116e 100644 --- a/layer/nrlf/core/tests/test_pydantic_errors.py +++ b/layer/nrlf/core/tests/test_pydantic_errors.py @@ -23,7 +23,7 @@ def test_validate_content_missing_attachment(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -51,7 +51,7 @@ def test_validate_content_missing_content_type(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -79,7 +79,7 @@ def test_validate_content_missing_format(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -110,7 +110,7 @@ def test_validate_content_multiple_content_stability_extensions(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -140,7 +140,7 @@ def test_validate_content_invalid_content_stability_code(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -170,7 +170,7 @@ def test_validate_content_invalid_content_stability_display(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -202,7 +202,7 @@ def test_validate_content_invalid_content_stability_system(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -231,7 +231,7 @@ def test_validate_content_invalid_content_stability_url(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -277,7 +277,7 @@ def test_validate_multiple_codings(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -313,7 +313,7 @@ def test_validate_whitespace_strings(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -343,7 +343,7 @@ def test_validate_no_coding_where_mandatory(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -391,7 +391,7 @@ def test_validate_missing_system_from_coding_where_mandatory(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -426,7 +426,7 @@ def test_validate_missing_code_from_coding_where_mandatory(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -461,7 +461,7 @@ def test_validate_missing_display_from_coding_where_mandatory(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } diff --git a/layer/nrlf/core/tests/test_request.py b/layer/nrlf/core/tests/test_request.py index c296c9c8d..9451c9dd5 100644 --- a/layer/nrlf/core/tests/test_request.py +++ b/layer/nrlf/core/tests/test_request.py @@ -26,7 +26,7 @@ def test_parse_headers_empty_headers(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MISSING_OR_INVALID_HEADER", "display": "There is a required header missing or invalid", } @@ -87,7 +87,7 @@ def test_parse_headers_invalid_headers(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MISSING_OR_INVALID_HEADER", "display": "There is a required header missing or invalid", } @@ -168,7 +168,7 @@ def test_parse_body_valid_docref_with_duplicate_key(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", } @@ -200,7 +200,7 @@ def test_parse_body_no_body(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -233,7 +233,7 @@ def test_parse_body_invalid_docref_json(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", } @@ -265,7 +265,7 @@ def test_parse_body_invalid_json(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", } @@ -280,7 +280,7 @@ def test_parse_body_invalid_json(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", } @@ -295,7 +295,7 @@ def test_parse_body_invalid_json(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", } @@ -311,7 +311,7 @@ def test_parse_body_invalid_json(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", }, ], }, @@ -328,7 +328,7 @@ def test_parse_body_invalid_json(): { "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", }, ], }, @@ -344,7 +344,7 @@ def test_parse_body_invalid_json(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", } @@ -359,7 +359,7 @@ def test_parse_body_invalid_json(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", } @@ -391,7 +391,7 @@ def test_parse_body_not_json(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed", } diff --git a/layer/nrlf/core/tests/test_response.py b/layer/nrlf/core/tests/test_response.py index 1d04aeb06..5df175376 100644 --- a/layer/nrlf/core/tests/test_response.py +++ b/layer/nrlf/core/tests/test_response.py @@ -74,7 +74,7 @@ def test_from_exception(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "INTERNAL_SERVER_ERROR", "display": "Unexpected internal server error", } diff --git a/layer/nrlf/core/tests/test_validators.py b/layer/nrlf/core/tests/test_validators.py index 9ed0eea15..9f0f54f0e 100644 --- a/layer/nrlf/core/tests/test_validators.py +++ b/layer/nrlf/core/tests/test_validators.py @@ -88,7 +88,7 @@ def test_validation_result_add_error(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -183,7 +183,7 @@ def test_document_reference_validator_parse_invalid(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -198,7 +198,7 @@ def test_document_reference_validator_parse_invalid(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -239,7 +239,7 @@ def test_validate_document_reference_missing_fields(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -292,7 +292,7 @@ def test_validate_document_reference_extra_fields(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -320,7 +320,7 @@ def test_validate_document_reference_extra_fields_content(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "BAD_REQUEST", "display": "Bad request", } @@ -358,7 +358,7 @@ def test_validate_category_too_many_category(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -427,7 +427,7 @@ def test_validate_category_coding_display_mismatch( "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -459,7 +459,7 @@ def test_validate_category_coding_invalid_code(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -495,7 +495,7 @@ def test_validate_category_coding_invalid_system(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -531,7 +531,7 @@ def test_validate_type_coding_invalid_code(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -567,7 +567,7 @@ def test_validate_type_coding_invalid_system(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -628,7 +628,7 @@ def test_validate_type_coding_display_mismatch(type_str: str, display: str): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -663,7 +663,7 @@ def test_validate_author_too_many_authors(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -696,7 +696,7 @@ def test_validate_author_system_invalid(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -729,7 +729,7 @@ def test_validate_author_value_invalid(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -762,7 +762,7 @@ def test_validate_author_value_too_long(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -791,7 +791,7 @@ def test_validate_identifiers_invalid_systems(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -806,7 +806,7 @@ def test_validate_identifiers_invalid_systems(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -864,7 +864,7 @@ def test_validate_relates_to_invalid_code(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -922,7 +922,7 @@ def test_validate_ssp_content_without_any_context_related(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -956,7 +956,7 @@ def test_validate_asid_with_no_ssp_content(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -992,7 +992,7 @@ def test_validate_ssp_content_without_asid_in_context_related(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -1023,7 +1023,7 @@ def test_validate_ssp_content_with_invalid_asid_value(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -1075,7 +1075,7 @@ def test_validate_ssp_content_with_invalid_asid_value_and_multiple_related(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -1114,7 +1114,7 @@ def test_validate_ssp_content_with_multiple_asids(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -1146,7 +1146,7 @@ def test_validate_content_format_invalid_code_for_unstructured_document(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -1180,7 +1180,7 @@ def test_validate_content_format_invalid_code_for_structured_document(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -1208,7 +1208,7 @@ def test_validate_content_format_invalid_code_for_contact_details(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -1243,7 +1243,7 @@ def test_validate_practiceSetting_coding_invalid_system(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -1278,7 +1278,7 @@ def test_validate_practiceSetting_coding_invalid_code(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -1313,7 +1313,7 @@ def test_validate_practiceSetting_coding_mismatch_code_and_display(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -1352,7 +1352,7 @@ def test_validate_content_extension_invalid_code_and_display_mismatch(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -1381,7 +1381,7 @@ def test_validate_content_invalid_content_type(): "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } @@ -1464,7 +1464,7 @@ def test_validate_nrl_format_code_display_mismatch( "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity", } diff --git a/tests/features/consumer/readDocumentReference-failure.feature b/tests/features/consumer/readDocumentReference-failure.feature index 4cfa470be..f6ef1e0f4 100644 --- a/tests/features/consumer/readDocumentReference-failure.feature +++ b/tests/features/consumer/readDocumentReference-failure.feature @@ -17,7 +17,7 @@ Feature: Consumer - readDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "NO_RECORD_FOUND", "display": "No record found" } @@ -44,7 +44,7 @@ Feature: Consumer - readDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "NO_RECORD_FOUND", "display": "No record found" } @@ -69,7 +69,7 @@ Feature: Consumer - readDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "ACCESS DENIED", "display": "Access has been denied to process this request" } @@ -106,7 +106,7 @@ Feature: Consumer - readDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "ACCESS DENIED", "display": "Access has been denied to process this request" } @@ -131,7 +131,7 @@ Feature: Consumer - readDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "ACCESS DENIED", "display": "Access has been denied to process this request" } @@ -168,7 +168,7 @@ Feature: Consumer - readDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "ACCESS DENIED", "display": "Access has been denied to process this request" } diff --git a/tests/features/consumer/searchDocumentReference-failure.feature b/tests/features/consumer/searchDocumentReference-failure.feature index 97855b808..6113b714c 100644 --- a/tests/features/consumer/searchDocumentReference-failure.feature +++ b/tests/features/consumer/searchDocumentReference-failure.feature @@ -18,7 +18,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "invalid", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "INVALID_PARAMETER", "display": "Invalid parameter" }] @@ -44,7 +44,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "invalid", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "INVALID_PARAMETER", "display": "Invalid parameter" }] @@ -72,7 +72,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "code-invalid", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "INVALID_CODE_SYSTEM", "display": "Invalid code system" }] @@ -100,7 +100,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "code-invalid", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "INVALID_CODE_SYSTEM", "display": "Invalid code system" }] @@ -127,7 +127,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "invalid", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "INVALID_NHS_NUMBER", "display": "Invalid NHS number" }] @@ -153,7 +153,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "forbidden", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "ACCESS DENIED", "display": "Access has been denied to process this request" }] @@ -179,7 +179,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "forbidden", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "ACCESS DENIED", "display": "Access has been denied to process this request" }] @@ -240,7 +240,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "forbidden", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "ACCESS DENIED", "display": "Access has been denied to process this request" }] @@ -267,7 +267,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "code-invalid", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "INVALID_CODE_SYSTEM", "display": "Invalid code system" }] @@ -295,7 +295,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "code-invalid", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "INVALID_CODE_SYSTEM", "display": "Invalid code system" }] diff --git a/tests/features/consumer/searchPostDocumentReference-failure.feature b/tests/features/consumer/searchPostDocumentReference-failure.feature index 3c76f708a..2aa60a5b1 100644 --- a/tests/features/consumer/searchPostDocumentReference-failure.feature +++ b/tests/features/consumer/searchPostDocumentReference-failure.feature @@ -18,7 +18,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "invalid", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" }] @@ -44,7 +44,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "invalid", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" }] @@ -72,7 +72,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "code-invalid", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "INVALID_CODE_SYSTEM", "display": "Invalid code system" }] @@ -100,7 +100,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "code-invalid", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "INVALID_CODE_SYSTEM", "display": "Invalid code system" }] @@ -127,7 +127,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "invalid", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "INVALID_NHS_NUMBER", "display": "Invalid NHS number" }] @@ -153,7 +153,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "forbidden", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "ACCESS DENIED", "display": "Access has been denied to process this request" }] @@ -188,7 +188,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "forbidden", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "ACCESS DENIED", "display": "Access has been denied to process this request" }] @@ -211,7 +211,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "forbidden", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "ACCESS DENIED", "display": "Access has been denied to process this request" }] @@ -238,7 +238,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "code-invalid", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "INVALID_CODE_SYSTEM", "display": "Invalid code system" }] @@ -266,7 +266,7 @@ Feature: Consumer - searchDocumentReference - Failure Scenarios "code": "code-invalid", "details": { "coding": [{ - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "INVALID_CODE_SYSTEM", "display": "Invalid code system" }] diff --git a/tests/features/producer/createDocumentReference-duplicateField.feature b/tests/features/producer/createDocumentReference-duplicateField.feature index beed7225c..c7ccb4db2 100644 --- a/tests/features/producer/createDocumentReference-duplicateField.feature +++ b/tests/features/producer/createDocumentReference-duplicateField.feature @@ -46,7 +46,7 @@ Feature: Producer - createDocumentReference - Duplicate Field Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } @@ -113,7 +113,7 @@ Feature: Producer - createDocumentReference - Duplicate Field Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } diff --git a/tests/features/producer/createDocumentReference-failure.feature b/tests/features/producer/createDocumentReference-failure.feature index 6f064d065..9aa0bf9dc 100644 --- a/tests/features/producer/createDocumentReference-failure.feature +++ b/tests/features/producer/createDocumentReference-failure.feature @@ -35,7 +35,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -74,7 +74,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios # "details": { # "coding": [ # { - # "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + # "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", # "code": "BAD_REQUEST", # "display": "Bad request" # } @@ -107,7 +107,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -144,7 +144,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -181,7 +181,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -232,7 +232,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -282,7 +282,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "ACCESS DENIED", "display": "Access has been denied to process this request" } @@ -317,7 +317,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } @@ -354,7 +354,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "AUTHOR_CREDENTIALS_ERROR", "display": "Author credentials error" } @@ -392,7 +392,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -451,7 +451,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -514,7 +514,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -565,7 +565,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -601,7 +601,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -641,7 +641,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -685,7 +685,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -738,7 +738,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } @@ -796,7 +796,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } @@ -834,7 +834,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -892,7 +892,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -952,7 +952,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } @@ -1002,7 +1002,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } @@ -1034,7 +1034,7 @@ Feature: Producer - createDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } diff --git a/tests/features/producer/deleteDocumentReference-failure.feature b/tests/features/producer/deleteDocumentReference-failure.feature index 21e47e324..52fb6c3fc 100644 --- a/tests/features/producer/deleteDocumentReference-failure.feature +++ b/tests/features/producer/deleteDocumentReference-failure.feature @@ -30,7 +30,7 @@ Feature: Producer - deleteDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "AUTHOR_CREDENTIALS_ERROR", "display": "Author credentials error" } diff --git a/tests/features/producer/readDocumentReference-failure.feature b/tests/features/producer/readDocumentReference-failure.feature index ff2cce7d0..2a04dd097 100644 --- a/tests/features/producer/readDocumentReference-failure.feature +++ b/tests/features/producer/readDocumentReference-failure.feature @@ -16,7 +16,7 @@ Feature: Producer - readDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "NO_RECORD_FOUND", "display": "No record found" } @@ -41,7 +41,7 @@ Feature: Producer - readDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "ACCESS DENIED", "display": "Access has been denied to process this request" } @@ -64,7 +64,7 @@ Feature: Producer - readDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "ACCESS DENIED", "display": "Access has been denied to process this request" } @@ -90,7 +90,7 @@ Feature: Producer - readDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "AUTHOR_CREDENTIALS_ERROR", "display": "Author credentials error" } @@ -132,7 +132,7 @@ Feature: Producer - readDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "AUTHOR_CREDENTIALS_ERROR", "display": "Author credentials error" } diff --git a/tests/features/producer/updateDocumentReference-duplicateField.feature b/tests/features/producer/updateDocumentReference-duplicateField.feature index 89c73c843..596b1cf66 100644 --- a/tests/features/producer/updateDocumentReference-duplicateField.feature +++ b/tests/features/producer/updateDocumentReference-duplicateField.feature @@ -57,7 +57,7 @@ Feature: Producer - updateDocumentReference - Duplicate Field Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } @@ -135,7 +135,7 @@ Feature: Producer - updateDocumentReference - Duplicate Field Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } diff --git a/tests/features/producer/updateDocumentReference-failure.feature b/tests/features/producer/updateDocumentReference-failure.feature index e7c211ec7..4ddec580a 100644 --- a/tests/features/producer/updateDocumentReference-failure.feature +++ b/tests/features/producer/updateDocumentReference-failure.feature @@ -36,7 +36,7 @@ Feature: Producer - updateDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } @@ -81,7 +81,7 @@ Feature: Producer - updateDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } @@ -152,7 +152,7 @@ Feature: Producer - updateDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } @@ -223,7 +223,7 @@ Feature: Producer - updateDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -294,7 +294,7 @@ Feature: Producer - updateDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } diff --git a/tests/features/producer/upsertDocumentReference-duplicateField.feature b/tests/features/producer/upsertDocumentReference-duplicateField.feature index 5fcada22f..477012d0e 100644 --- a/tests/features/producer/upsertDocumentReference-duplicateField.feature +++ b/tests/features/producer/upsertDocumentReference-duplicateField.feature @@ -46,7 +46,7 @@ Feature: Producer - upsertDocumentReference - Duplicate Field Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } @@ -113,7 +113,7 @@ Feature: Producer - upsertDocumentReference - Duplicate Field Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } diff --git a/tests/features/producer/upsertDocumentReference-failure.feature b/tests/features/producer/upsertDocumentReference-failure.feature index f714fe282..192b6439a 100644 --- a/tests/features/producer/upsertDocumentReference-failure.feature +++ b/tests/features/producer/upsertDocumentReference-failure.feature @@ -26,7 +26,7 @@ Feature: Producer - upsertDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -64,7 +64,7 @@ Feature: Producer - upsertDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } @@ -104,7 +104,7 @@ Feature: Producer - upsertDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -142,7 +142,7 @@ Feature: Producer - upsertDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -181,7 +181,7 @@ Feature: Producer - upsertDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -222,7 +222,7 @@ Feature: Producer - upsertDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -259,7 +259,7 @@ Feature: Producer - upsertDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } @@ -317,7 +317,7 @@ Feature: Producer - upsertDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "MESSAGE_NOT_WELL_FORMED", "display": "Message not well formed" } @@ -356,7 +356,7 @@ Feature: Producer - upsertDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" } @@ -414,7 +414,7 @@ Feature: Producer - upsertDocumentReference - Failure Scenarios "details": { "coding": [ { - "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1", + "system": "https://fhir.nhs.uk/CodeSystem/Spine-ErrorOrWarningCode", "code": "UNPROCESSABLE_ENTITY", "display": "Unprocessable Entity" }