|
91 | 91 | context "with an MMR vaccine" do |
92 | 92 | let(:vaccine) { build(:vaccine, :mmr) } |
93 | 93 |
|
94 | | - it { should eq("38598009") } |
| 94 | + context "and first dose" do |
| 95 | + let(:dose_sequence) { 1 } |
| 96 | + |
| 97 | + it { should eq("38598009") } |
| 98 | + end |
| 99 | + |
| 100 | + context "and second dose" do |
| 101 | + let(:dose_sequence) { 2 } |
| 102 | + |
| 103 | + it { should eq("170433008") } |
| 104 | + end |
95 | 105 | end |
96 | 106 |
|
97 | 107 | context "with an MMRV vaccine" do |
98 | 108 | let(:vaccine) { build(:vaccine, :mmrv) } |
99 | 109 |
|
100 | | - it { should eq("432636005") } |
| 110 | + context "and first dose" do |
| 111 | + let(:dose_sequence) { 1 } |
| 112 | + |
| 113 | + it { should eq("432636005") } |
| 114 | + end |
| 115 | + |
| 116 | + context "and second dose" do |
| 117 | + let(:dose_sequence) { 2 } |
| 118 | + |
| 119 | + it { should eq("433733003") } |
| 120 | + end |
101 | 121 | end |
102 | 122 | end |
103 | 123 |
|
|
145 | 165 | context "with an MMR vaccine" do |
146 | 166 | let(:vaccine) { build(:vaccine, :mmr) } |
147 | 167 |
|
148 | | - it do |
149 | | - expect(vaccine.snomed_procedure_term).to eq( |
150 | | - "Administration of vaccine product containing only Measles " \ |
151 | | - "morbillivirus and Mumps orthorubulavirus and Rubella virus " \ |
152 | | - "antigens" |
153 | | - ) |
| 168 | + context "with dose sequence 1" do |
| 169 | + it do |
| 170 | + expect(vaccine.snomed_procedure_term(dose_sequence: 1)).to eq( |
| 171 | + "Administration of vaccine product containing only Measles " \ |
| 172 | + "morbillivirus and Mumps orthorubulavirus and Rubella virus " \ |
| 173 | + "antigens" |
| 174 | + ) |
| 175 | + end |
| 176 | + end |
| 177 | + |
| 178 | + context "with dose sequence 2" do |
| 179 | + it do |
| 180 | + expect(vaccine.snomed_procedure_term(dose_sequence: 2)).to eq( |
| 181 | + "Administration of second dose of vaccine product containing only " \ |
| 182 | + "Measles morbillivirus and Mumps orthorubulavirus and Rubella virus " \ |
| 183 | + "antigens" |
| 184 | + ) |
| 185 | + end |
154 | 186 | end |
155 | 187 | end |
156 | 188 |
|
157 | 189 | context "with an MMRV vaccine" do |
158 | 190 | let(:vaccine) { build(:vaccine, :mmrv) } |
159 | 191 |
|
160 | | - it do |
161 | | - expect(vaccine.snomed_procedure_term).to eq( |
162 | | - "Administration of vaccine product containing only Human " \ |
163 | | - "alphaherpesvirus 3 and Measles morbillivirus and Mumps " \ |
164 | | - "orthorubulavirus and Rubella virus antigens" |
165 | | - ) |
| 192 | + context "with dose sequence 1" do |
| 193 | + it do |
| 194 | + expect(vaccine.snomed_procedure_term(dose_sequence: 1)).to eq( |
| 195 | + "Administration of vaccine product containing only Human " \ |
| 196 | + "alphaherpesvirus 3 and Measles morbillivirus and Mumps " \ |
| 197 | + "orthorubulavirus and Rubella virus antigens" |
| 198 | + ) |
| 199 | + end |
| 200 | + end |
| 201 | + |
| 202 | + context "with dose sequence 2" do |
| 203 | + it do |
| 204 | + expect(vaccine.snomed_procedure_term(dose_sequence: 2)).to eq( |
| 205 | + "Administration of second dose of vaccine product containing " \ |
| 206 | + "only Human alphaherpesvirus 3 and Measles morbillivirus and " \ |
| 207 | + "Mumps orthorubulavirus and Rubella virus antigens" |
| 208 | + ) |
| 209 | + end |
166 | 210 | end |
167 | 211 | end |
168 | 212 | end |
|
0 commit comments