@@ -286,6 +286,168 @@ def get_expected_imms(expected_action_flag):
286286 "CONVERSION_ERRORS" : ''
287287 }
288288 ]
289+
290+ @staticmethod
291+ def get_test_data_resource ():
292+ """
293+ The returned resource includes details about the practitioner, patient,
294+ vaccine code, location, and other relevant fields.
295+ """
296+ return {
297+ "resourceType" : "Immunization" ,
298+ "contained" : [
299+ {
300+ "resourceType" : "Practitioner" ,
301+ "id" : "Pract1" ,
302+ "name" : [
303+ {
304+ "family" : "O'Reilly" ,
305+ "given" : ["Ellena" ]
306+ }
307+ ]
308+ },
309+ {
310+ "resourceType" : "Patient" ,
311+ "id" : "Pat1" ,
312+ "identifier" : [
313+ {
314+ "system" : "https://fhir.nhs.uk/Id/nhs-number" ,
315+ "value" : "9674963871"
316+ }
317+ ],
318+ "name" : [
319+ {
320+ "family" : "GREIR" ,
321+ "given" : ["SABINA" ]
322+ }
323+ ],
324+ "gender" : "female" ,
325+ "birthDate" : "2019-01-31" ,
326+ "address" : [
327+ {
328+ "postalCode" : "GU14 6TU"
329+ }
330+ ]
331+ }
332+ ],
333+ "extension" : [
334+ {
335+ "url" : "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-VaccinationProcedure" ,
336+ "valueCodeableConcept" : {
337+ "coding" : [
338+ {
339+ "system" : "http://snomed.info/sct" ,
340+ "code" : "1303503001" ,
341+ "display" :
342+ "Administration of vaccine product containing only Human orthopneumovirus antigen (procedure)"
343+ }
344+ ]
345+ }
346+ }
347+ ],
348+ "identifier" : [
349+ {
350+ "system" : "https://www.ravs.england.nhs.uk/" ,
351+ "value" : "0001_RSV_v5_RUN_2_CDFDPS-742_valid_dose_1"
352+ }
353+ ],
354+ "status" : "completed" ,
355+ "vaccineCode" : {
356+ "coding" : [
357+ {
358+ "system" : "http://snomed.info/sct" ,
359+ "code" : "42605811000001109" ,
360+ "display" :
361+ "Abrysvo vaccine powder and solvent for solution for injection 0.5ml vials (Pfizer Ltd) (product)"
362+ }
363+ ]
364+ },
365+ "patient" : {
366+ "reference" : "#Pat1"
367+ },
368+ "occurrenceDateTime" : "2024-06-10T18:33:25+00:00" ,
369+ "recorded" : "2024-06-10T18:33:25+00:00" ,
370+ "primarySource" : True ,
371+ "manufacturer" : {
372+ "display" : "Pfizer"
373+ },
374+ "location" : {
375+ "type" : "Location" ,
376+ "identifier" : {
377+ "value" : "J82067" ,
378+ "system" : "https://fhir.nhs.uk/Id/ods-organization-code"
379+ }
380+ },
381+ "lotNumber" : "RSVTEST" ,
382+ "expirationDate" : "2024-12-31" ,
383+ "site" : {
384+ "coding" : [
385+ {
386+ "system" : "http://snomed.info/sct" ,
387+ "code" : "368208006" ,
388+ "display" : "Left upper arm structure (body structure)"
389+ }
390+ ]
391+ },
392+ "route" : {
393+ "coding" : [
394+ {
395+ "system" : "http://snomed.info/sct" ,
396+ "code" : "78421000" ,
397+ "display" : "Intramuscular route (qualifier value)"
398+ }
399+ ]
400+ },
401+ "doseQuantity" : {
402+ "value" : 0.5 ,
403+ "unit" : "Milliliter (qualifier value)" ,
404+ "system" : "http://unitsofmeasure.org" ,
405+ "code" : "258773002"
406+ },
407+ "performer" : [
408+ {
409+ "actor" : {
410+ "reference" : "#Pract1"
411+ }
412+ },
413+ {
414+ "actor" : {
415+ "type" : "Organization" ,
416+ "identifier" : {
417+ "system" : "https://fhir.nhs.uk/Id/ods-organization-code" ,
418+ "value" : "X0X0X"
419+ }
420+ }
421+ }
422+ ],
423+ "reasonCode" : [
424+ {
425+ "coding" : [
426+ {
427+ "code" : "Test" ,
428+ "system" : "http://snomed.info/sct"
429+ }
430+ ]
431+ }
432+ ],
433+ "protocolApplied" : [
434+ {
435+ "targetDisease" : [
436+ {
437+ "coding" : [
438+ {
439+ "system" : "http://snomed.info/sct" ,
440+ "code" : "840539006" ,
441+ "display" : "Disease caused by severe acute respiratory syndrome coronavirus 2"
442+ }
443+ ]
444+ }
445+ ],
446+ "doseNumberPositiveInt" : 1
447+ }
448+ ],
449+ "id" : "ca8ba2c6-2383-4465-b456-c1174c21cf31"
450+ }
289451
290452
291453class ErrorValuesForTests :
@@ -440,166 +602,3 @@ def get_expected_imms_error_output(expected_action_flag):
440602 "CONVERSION_ERRORS" : ''
441603 }
442604 ]
443-
444- @staticmethod
445- def get_test_data_resource ():
446- """
447- The returned resource includes details about the practitioner, patient,
448- vaccine code, location, and other relevant fields.
449- """
450- return {
451- "resourceType" : "Immunization" ,
452- "contained" : [
453- {
454- "resourceType" : "Practitioner" ,
455- "id" : "Pract1" ,
456- "name" : [
457- {
458- "family" : "O'Reilly" ,
459- "given" : ["Ellena" ]
460- }
461- ]
462- },
463- {
464- "resourceType" : "Patient" ,
465- "id" : "Pat1" ,
466- "identifier" : [
467- {
468- "system" : "https://fhir.nhs.uk/Id/nhs-number" ,
469- "value" : "9674963871"
470- }
471- ],
472- "name" : [
473- {
474- "family" : "GREIR" ,
475- "given" : ["SABINA" ]
476- }
477- ],
478- "gender" : "female" ,
479- "birthDate" : "2019-01-31" ,
480- "address" : [
481- {
482- "postalCode" : "GU14 6TU"
483- }
484- ]
485- }
486- ],
487- "extension" : [
488- {
489- "url" : "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-VaccinationProcedure" ,
490- "valueCodeableConcept" : {
491- "coding" : [
492- {
493- "system" : "http://snomed.info/sct" ,
494- "code" : "1303503001" ,
495- "display" :
496- "Administration of vaccine product containing only Human orthopneumovirus antigen (procedure)"
497- }
498- ]
499- }
500- }
501- ],
502- "identifier" : [
503- {
504- "system" : "https://www.ravs.england.nhs.uk/" ,
505- "value" : "0001_RSV_v5_RUN_2_CDFDPS-742_valid_dose_1"
506- }
507- ],
508- "status" : "completed" ,
509- "vaccineCode" : {
510- "coding" : [
511- {
512- "system" : "http://snomed.info/sct" ,
513- "code" : "42605811000001109" ,
514- "display" :
515- "Abrysvo vaccine powder and solvent for solution for injection 0.5ml vials (Pfizer Ltd) (product)"
516- }
517- ]
518- },
519- "patient" : {
520- "reference" : "#Pat1"
521- },
522- "occurrenceDateTime" : "2024-06-10T18:33:25+00:00" ,
523- "recorded" : "2024-06-10T18:33:25+00:00" ,
524- "primarySource" : True ,
525- "manufacturer" : {
526- "display" : "Pfizer"
527- },
528- "location" : {
529- "type" : "Location" ,
530- "identifier" : {
531- "value" : "J82067" ,
532- "system" : "https://fhir.nhs.uk/Id/ods-organization-code"
533- }
534- },
535- "lotNumber" : "RSVTEST" ,
536- "expirationDate" : "2024-12-31" ,
537- "site" : {
538- "coding" : [
539- {
540- "system" : "http://snomed.info/sct" ,
541- "code" : "368208006" ,
542- "display" : "Left upper arm structure (body structure)"
543- }
544- ]
545- },
546- "route" : {
547- "coding" : [
548- {
549- "system" : "http://snomed.info/sct" ,
550- "code" : "78421000" ,
551- "display" : "Intramuscular route (qualifier value)"
552- }
553- ]
554- },
555- "doseQuantity" : {
556- "value" : 0.5 ,
557- "unit" : "Milliliter (qualifier value)" ,
558- "system" : "http://unitsofmeasure.org" ,
559- "code" : "258773002"
560- },
561- "performer" : [
562- {
563- "actor" : {
564- "reference" : "#Pract1"
565- }
566- },
567- {
568- "actor" : {
569- "type" : "Organization" ,
570- "identifier" : {
571- "system" : "https://fhir.nhs.uk/Id/ods-organization-code" ,
572- "value" : "X0X0X"
573- }
574- }
575- }
576- ],
577- "reasonCode" : [
578- {
579- "coding" : [
580- {
581- "code" : "Test" ,
582- "system" : "http://snomed.info/sct"
583- }
584- ]
585- }
586- ],
587- "protocolApplied" : [
588- {
589- "targetDisease" : [
590- {
591- "coding" : [
592- {
593- "system" : "http://snomed.info/sct" ,
594- "code" : "840539006" ,
595- "display" : "Disease caused by severe acute respiratory syndrome coronavirus 2"
596- }
597- ]
598- }
599- ],
600- "doseNumberPositiveInt" : 1
601- }
602- ],
603- "id" : "ca8ba2c6-2383-4465-b456-c1174c21cf31"
604- }
605-
0 commit comments