|
712 | 712 | its(:nhs_immunisations_api_snomed_procedure_term) do |
713 | 713 | should eq "Seasonal influenza vaccination 111 (procedure)" |
714 | 714 | end |
| 715 | + |
| 716 | + its(:nhs_immunisations_api_snomed_reason_code) { should eq "453684005" } |
| 717 | + |
| 718 | + its(:nhs_immunisations_api_snomed_reason_term) do |
| 719 | + should eq "Disease outbreak (event)" |
| 720 | + end |
715 | 721 | end |
716 | 722 |
|
717 | 723 | context "with a record with not full dose" do |
|
752 | 758 | its(:performed_ods_code) { should eq "B0C4P" } |
753 | 759 | its(:nhs_immunisations_api_primary_source) { should be true } |
754 | 760 |
|
| 761 | + its(:nhs_immunisations_api_snomed_reason_code) { should eq "453684005" } |
| 762 | + |
| 763 | + its(:nhs_immunisations_api_snomed_reason_term) do |
| 764 | + should eq "Disease outbreak (event)" |
| 765 | + end |
| 766 | + |
755 | 767 | its(:notes) do |
756 | 768 | should eq "Performing organisation display name: Acme Healthcare" |
757 | 769 | end |
|
796 | 808 | its(:location_name) { should be_nil } |
797 | 809 | its(:performed_ods_code) { should eq "B0C4P" } |
798 | 810 |
|
| 811 | + its(:nhs_immunisations_api_snomed_reason_code) { should eq "453684005" } |
| 812 | + |
| 813 | + its(:nhs_immunisations_api_snomed_reason_term) do |
| 814 | + should eq "Disease outbreak (event)" |
| 815 | + end |
| 816 | + |
799 | 817 | its(:notes) do |
800 | 818 | should eq "Performing organisation display name: Acme Healthcare" |
801 | 819 | end |
|
849 | 867 | should eq "Influenza vaccination given by other healthcare provider (situation)" |
850 | 868 | end |
851 | 869 |
|
| 870 | + its(:nhs_immunisations_api_snomed_reason_code) { should be_nil } |
| 871 | + its(:nhs_immunisations_api_snomed_reason_term) { should be_nil } |
| 872 | + |
852 | 873 | its(:notes) { should be_nil } |
853 | 874 | end |
854 | 875 |
|
|
894 | 915 | should eq "Administration of first intranasal seasonal influenza vaccination" |
895 | 916 | end |
896 | 917 |
|
| 918 | + its(:nhs_immunisations_api_snomed_reason_code) { should eq "453684005" } |
| 919 | + |
| 920 | + its(:nhs_immunisations_api_snomed_reason_term) do |
| 921 | + should eq "Disease outbreak (event)" |
| 922 | + end |
| 923 | + |
897 | 924 | its(:notes) do |
898 | 925 | should include( |
899 | 926 | "SNOMED product code: 43207411000001106", |
|
932 | 959 | its(:performed_ods_code) { should eq "B12345" } |
933 | 960 | its(:nhs_immunisations_api_primary_source) { should be false } |
934 | 961 |
|
935 | | - its(:notes) do |
936 | | - should include( |
937 | | - "Reported dose number string: Dose sequence not recorded" |
938 | | - ) |
939 | | - end |
940 | | - |
941 | 962 | its(:nhs_immunisations_api_snomed_procedure_code) do |
942 | 963 | should eq "955651000000100" |
943 | 964 | end |
944 | 965 |
|
945 | 966 | its(:nhs_immunisations_api_snomed_procedure_term) do |
946 | 967 | should eq "Influenza vaccination given by other healthcare provider (situation)" |
947 | 968 | end |
| 969 | + |
| 970 | + its(:nhs_immunisations_api_snomed_reason_code) { should be_nil } |
| 971 | + its(:nhs_immunisations_api_snomed_reason_term) { should be_nil } |
| 972 | + |
| 973 | + its(:notes) do |
| 974 | + should include( |
| 975 | + "Reported dose number string: Dose sequence not recorded" |
| 976 | + ) |
| 977 | + end |
948 | 978 | end |
949 | 979 |
|
950 | 980 | context "with a record that is nasal flu, and is missing dose quantity (from real GP)" do |
|
982 | 1012 | should eq "Administration of first intranasal seasonal influenza vaccination" |
983 | 1013 | end |
984 | 1014 |
|
| 1015 | + its(:nhs_immunisations_api_snomed_reason_code) { should be_nil } |
| 1016 | + its(:nhs_immunisations_api_snomed_reason_term) { should be_nil } |
| 1017 | + |
985 | 1018 | its(:notes) { should be_nil } |
986 | 1019 | end |
987 | 1020 |
|
|
1018 | 1051 | should eq "Administration of first intranasal seasonal influenza vaccination" |
1019 | 1052 | end |
1020 | 1053 |
|
| 1054 | + its(:nhs_immunisations_api_snomed_reason_code) { should be_nil } |
| 1055 | + its(:nhs_immunisations_api_snomed_reason_term) { should be_nil } |
| 1056 | + |
1021 | 1057 | its(:notes) { should be_nil } |
1022 | 1058 | end |
1023 | 1059 |
|
|
1058 | 1094 | should eq "Administration of first inactivated seasonal influenza vaccination" |
1059 | 1095 | end |
1060 | 1096 |
|
| 1097 | + its(:nhs_immunisations_api_snomed_reason_code) { should be_nil } |
| 1098 | + its(:nhs_immunisations_api_snomed_reason_term) { should be_nil } |
| 1099 | + |
1061 | 1100 | its(:notes) { should be_nil } |
1062 | 1101 | end |
1063 | 1102 |
|
|
1103 | 1142 | should eq "Administration of first intranasal seasonal influenza vaccination" |
1104 | 1143 | end |
1105 | 1144 |
|
| 1145 | + its(:nhs_immunisations_api_snomed_reason_code) { should eq "723620004" } |
| 1146 | + its(:nhs_immunisations_api_snomed_reason_term) { should be_nil } |
| 1147 | + |
1106 | 1148 | its(:notes) { should be_nil } |
1107 | 1149 | end |
1108 | 1150 |
|
|
1148 | 1190 | should eq "Administration of first intranasal seasonal influenza vaccination" |
1149 | 1191 | end |
1150 | 1192 |
|
| 1193 | + its(:nhs_immunisations_api_snomed_reason_code) { should be_nil } |
| 1194 | + its(:nhs_immunisations_api_snomed_reason_term) { should be_nil } |
| 1195 | + |
1151 | 1196 | its(:notes) { should be_nil } |
1152 | 1197 | end |
1153 | 1198 |
|
|
1182 | 1227 | its(:outcome) { should eq "administered" } |
1183 | 1228 | its(:performed_ods_code) { should eq "B12345" } |
1184 | 1229 |
|
| 1230 | + its(:nhs_immunisations_api_snomed_procedure_code) { should be_nil } |
| 1231 | + its(:nhs_immunisations_api_snomed_procedure_term) { should be_nil } |
| 1232 | + |
| 1233 | + its(:nhs_immunisations_api_snomed_reason_code) { should be_nil } |
| 1234 | + its(:nhs_immunisations_api_snomed_reason_term) { should be_nil } |
| 1235 | + |
1185 | 1236 | its(:notes) do |
1186 | 1237 | should include( |
1187 | 1238 | "Reported dose number string: Dose sequence not recorded" |
1188 | 1239 | ) |
1189 | 1240 | end |
1190 | | - |
1191 | | - its(:nhs_immunisations_api_snomed_procedure_code) { should be_nil } |
1192 | | - its(:nhs_immunisations_api_snomed_procedure_term) { should be_nil } |
1193 | 1241 | end |
1194 | 1242 | end |
1195 | 1243 |
|
|
1242 | 1290 | should eq "Administration of vaccine product containing only Human papillomavirus antigen (procedure)" |
1243 | 1291 | end |
1244 | 1292 |
|
| 1293 | + its(:nhs_immunisations_api_snomed_reason_code) { should eq "723620004" } |
| 1294 | + its(:nhs_immunisations_api_snomed_reason_term) { should be_nil } |
| 1295 | + |
1245 | 1296 | its(:notes) { should be_nil } |
1246 | 1297 | end |
1247 | 1298 | end |
|
1287 | 1338 | its(:performed_ods_code) { should eq "R1L" } |
1288 | 1339 | its(:nhs_immunisations_api_primary_source) { should be true } |
1289 | 1340 |
|
1290 | | - its(:notes) { should include("Reported dose number string: Unknown") } |
1291 | | - |
1292 | 1341 | its(:nhs_immunisations_api_snomed_procedure_code) do |
1293 | 1342 | should eq "871874000" |
1294 | 1343 | end |
|
1298 | 1347 | "Neisseria meningitidis serogroup A, C, W135 and Y " \ |
1299 | 1348 | "antigens (procedure)" |
1300 | 1349 | end |
| 1350 | + |
| 1351 | + its(:nhs_immunisations_api_snomed_reason_code) { should eq "723620004" } |
| 1352 | + its(:nhs_immunisations_api_snomed_reason_term) { should be_nil } |
| 1353 | + |
| 1354 | + its(:notes) { should include("Reported dose number string: Unknown") } |
1301 | 1355 | end |
1302 | 1356 | end |
1303 | 1357 |
|
|
1342 | 1396 | its(:performed_ods_code) { should eq "R1L" } |
1343 | 1397 | its(:nhs_immunisations_api_primary_source) { should be true } |
1344 | 1398 |
|
1345 | | - its(:notes) { should include("Reported dose number string: Unknown") } |
1346 | | - |
1347 | 1399 | its(:nhs_immunisations_api_snomed_procedure_code) do |
1348 | 1400 | should eq "866186002" |
1349 | 1401 | end |
|
1353 | 1405 | "Clostridium tetani and Corynebacterium diphtheriae " \ |
1354 | 1406 | "and Human poliovirus antigens (procedure)" |
1355 | 1407 | end |
| 1408 | + |
| 1409 | + its(:nhs_immunisations_api_snomed_reason_code) { should eq "723620004" } |
| 1410 | + its(:nhs_immunisations_api_snomed_reason_term) { should be_nil } |
| 1411 | + |
| 1412 | + its(:notes) { should include("Reported dose number string: Unknown") } |
1356 | 1413 | end |
1357 | 1414 | end |
1358 | 1415 |
|
|
1401 | 1458 | its(:performed_ods_code) { should eq "R1L" } |
1402 | 1459 | its(:nhs_immunisations_api_primary_source) { should be true } |
1403 | 1460 |
|
1404 | | - its(:notes) { should include("Reported dose number string: Unknown") } |
1405 | | - |
1406 | 1461 | its(:nhs_immunisations_api_snomed_procedure_code) do |
1407 | 1462 | should eq "38598009" |
1408 | 1463 | end |
|
1412 | 1467 | "Measles morbillivirus and Mumps orthorubulavirus " \ |
1413 | 1468 | "and Rubella virus antigens (procedure)" |
1414 | 1469 | end |
| 1470 | + |
| 1471 | + its(:nhs_immunisations_api_snomed_reason_code) { should eq "723620004" } |
| 1472 | + its(:nhs_immunisations_api_snomed_reason_term) { should be_nil } |
| 1473 | + |
| 1474 | + its(:notes) { should include("Reported dose number string: Unknown") } |
1415 | 1475 | end |
1416 | 1476 | end |
1417 | 1477 |
|
|
1460 | 1520 | its(:performed_ods_code) { should eq "R1L" } |
1461 | 1521 | its(:nhs_immunisations_api_primary_source) { should be true } |
1462 | 1522 |
|
1463 | | - its(:notes) { should include("Reported dose number string: Unknown") } |
1464 | | - |
1465 | 1523 | its(:nhs_immunisations_api_snomed_procedure_code) do |
1466 | 1524 | should eq "432636005" |
1467 | 1525 | end |
|
1471 | 1529 | "Human alphaherpesvirus 3 and Measles morbillivirus " \ |
1472 | 1530 | "and Mumps orthorubulavirus and Rubella virus antigens" |
1473 | 1531 | end |
| 1532 | + |
| 1533 | + its(:nhs_immunisations_api_snomed_reason_code) { should eq "723620004" } |
| 1534 | + its(:nhs_immunisations_api_snomed_reason_term) { should be_nil } |
| 1535 | + |
| 1536 | + its(:notes) { should include("Reported dose number string: Unknown") } |
1474 | 1537 | end |
1475 | 1538 | end |
1476 | 1539 | end |
|
0 commit comments