Skip to content

Instantly share code, notes, and snippets.

@kiurchv
Created March 28, 2019 12:19
Show Gist options
  • Save kiurchv/32f7c5eb193e4acded031fc06556935a to your computer and use it in GitHub Desktop.
Save kiurchv/32f7c5eb193e4acded031fc06556935a to your computer and use it in GitHub Desktop.
Scenario: Get toCreateRequestContent field
Given capitation contract with the following fields exist:
| field | value |
| databaseId | "8b9482fe-6cb6-4855-a923-7ccd4d9b7aef" |
| contractNumber | "0000-9EAX-XT7X-3115" |
| contractorLegalEntityId | "e8d4b752-79e7-4906-835f-42397ac78b56" |
| contractorOwnerID | "f8feba9f-216d-4caf-bbaa-4228505351ad" |
| contractorPaymentDetails | {"MFO": "351005", "bank_name": "Банк номер 1", "payer_account": "32009102701026"} |
| contractorRmspAmount | 58813 |
| endDate | "2019-04-11" |
| externalContractorFlag | true |
| externalContractors | [{"contract": {"expires_at": "2020-03-27T11:53:29.256703", "issued_at": "2019-03-28T11:53:29.256701", "number": "1234567"}, "divisions": [{"id": "8256845e-b670-4869-a698-df45854aaa54", "medical_service": "Послуга ПМД", "name": "Бориспільське відділення Клініки Ноунейм"}], "legal_entity_id": "d5a85ff9-c574-4df2-a932-d4b9fa0c7ae6"}] |
| idForm | "17" |
| issueCity | "Київ" |
| nhsContractPrice | 105938.0 |
| nhsLegalEntityID | "6696a798-22a7-4670-97b4-3b7d274f2d11" |
| nhsPaymentMethod | "prepayment" |
| nhsSignerBase | "на підставі наказу" |
| nhsSignerID | "2c5ef867-310e-42f4-a581-27613e3ac2aa" |
| startDate | "2019-03-28" |
And my scope is "contract:read"
And my client type is "NHS"
And my client ID is "6696a798-22a7-4670-97b4-3b7d274f2d11"
When I request toCreateRequestContent of the capitation contract where databaseId is "8b9482fe-6cb6-4855-a923-7ccd4d9b7aef"
Then no errors should be returned
And I should receive requested item
And the toCreateRequestContent of the requested item should have the following fields:
| field | value |
| contract_number | "0000-9EAX-XT7X-3115" |
| contractor_legal_entity_id | "e8d4b752-79e7-4906-835f-42397ac78b56" |
| contractor_owner_id | "f8feba9f-216d-4caf-bbaa-4228505351ad" |
| contractor_payment_details | {"MFO": "351005", "bank_name": "Банк номер 1", "payer_account": "32009102701026"} |
| contractor_rmsp_amount | 58813 |
| end_date | "2019-04-11" |
| external_contractor_flag | true |
| external_contractors | [{"contract": {"expires_at": "2020-03-27T11:53:29.256703", "issued_at": "2019-03-28T11:53:29.256701", "number": "1234567"}, "divisions": [{"id": "8256845e-b670-4869-a698-df45854aaa54", "medical_service": "Послуга ПМД", "name": "Бориспільське відділення Клініки Ноунейм"}], "legal_entity_id": "d5a85ff9-c574-4df2-a932-d4b9fa0c7ae6"}] |
| id_form | "17" |
| issue_city | "Київ" |
| nhs_contract_price | 105938.0 |
| nhs_legal_entity_id | "6696a798-22a7-4670-97b4-3b7d274f2d11" |
| nhs_payment_method | "prepayment" |
| nhs_signer_base | "на підставі наказу" |
| nhs_signer_id | "2c5ef867-310e-42f4-a581-27613e3ac2aa" |
| start_date | "2019-03-28" |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment