us_core_test_kit 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/us_core_test_kit/custom_groups/v4.0.0/device_udi_pi_test.rb +1 -1
  3. data/lib/us_core_test_kit/custom_groups/v4.0.0/document_reference_custodian_test.rb +1 -1
  4. data/lib/us_core_test_kit/generated/v4.0.0/metadata.yml +4 -307
  5. data/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/metadata.yml +4 -6
  6. data/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/smokingstatus_patient_category_date_search_test.rb +0 -2
  7. data/lib/us_core_test_kit/generated/v5.0.1/metadata.yml +1920 -3525
  8. data/lib/us_core_test_kit/generated/v5.0.1/observation_sdoh_assessment/metadata.yml +0 -1
  9. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/metadata.yml +288 -0
  10. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_id_search_test.rb +42 -0
  11. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_must_support_test.rb +56 -0
  12. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_patient_authored_search_test.rb +49 -0
  13. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_patient_questionnaire_search_test.rb +48 -0
  14. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_patient_search_test.rb +63 -0
  15. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_patient_status_search_test.rb +48 -0
  16. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_patient_tag_authored_search_test.rb +50 -0
  17. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_patient_tag_search_test.rb +49 -0
  18. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_provenance_revinclude_search_test.rb +52 -0
  19. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_read_test.rb +26 -0
  20. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_reference_resolution_test.rb +39 -0
  21. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_validation_test.rb +40 -0
  22. data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response_group.rb +101 -0
  23. data/lib/us_core_test_kit/generated/v5.0.1/smokingstatus/metadata.yml +4 -6
  24. data/lib/us_core_test_kit/generated/v5.0.1/smokingstatus/smokingstatus_patient_category_date_search_test.rb +0 -2
  25. data/lib/us_core_test_kit/generated/v5.0.1/us_core_test_suite.rb +2 -0
  26. data/lib/us_core_test_kit/generator/group_generator.rb +5 -0
  27. data/lib/us_core_test_kit/generator/group_metadata_extractor.rb +5 -1
  28. data/lib/us_core_test_kit/generator/ig_metadata_extractor.rb +9 -0
  29. data/lib/us_core_test_kit/generator/must_support_metadata_extractor.rb +12 -0
  30. data/lib/us_core_test_kit/generator/special_cases.rb +4 -10
  31. data/lib/us_core_test_kit/read_test.rb +1 -1
  32. data/lib/us_core_test_kit/reference_resolution_test.rb +16 -4
  33. data/lib/us_core_test_kit/version.rb +1 -1
  34. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b73a4e0cf3b98f1b09f9a5bc3f56b93ba0cba8da4bbcde8c2127f2a3c09a94b
4
- data.tar.gz: 0f4d607e94bfa318a277cd35868c0fa167f32961570c8770515a11ca8dcbdf04
3
+ metadata.gz: 5065cd644a0b1a71df633c16670902c3f652888ba813dc89791c9f2812530a68
4
+ data.tar.gz: '04139c5a765c360de1e4a8eef004265fc1efb6695f9f175284773b3fcb188166'
5
5
  SHA512:
6
- metadata.gz: 47cc427c5706c733c03d0a2b70aff8d121eb71ab386665f57da2a35e1a79427bf07635d2151946b87680b55b055de4bb6bd07b35744b3f4e5e7f0ad6a896d136
7
- data.tar.gz: f18d68b343f04368c2bc30563c348792e662bf1f22e5417f014ff3939a92d19a8457c63c677453787d2603548818e08bd31b28cb54989a6813fbbe87f2512169
6
+ metadata.gz: 5f6df18ebaa802e0237f0eb0980a82618ec49714e36b6148abf82a619969ed4b92cc1191e5c7907d5551f1f2c9f24d2ab17d1586a20f478adb01db1ee5a31e6f
7
+ data.tar.gz: 727a50e4891774a0e0d9773e698d8aa26db367de651465ac4562812c0e10a11540a3325b19cdd1d20fee4aab47a357607115676cb596ac64a50778643287d16b
@@ -16,7 +16,7 @@ module USCoreTestKit
16
16
  resources = scratch_resources[:all] || []
17
17
 
18
18
  skip_if resources.blank?,
19
- 'No Devices resources appeart to be available. ' \
19
+ 'No Devices resources appear to be available. ' \
20
20
  'Please use patients with more information.'
21
21
 
22
22
  resources.each do |device|
@@ -21,7 +21,7 @@ module USCoreTestKit
21
21
  provenances = scratch_provenance_resources[:all] || []
22
22
 
23
23
  skip_if resources.blank?,
24
- 'No DocumentReference resources appeart to be available. ' \
24
+ 'No DocumentReference resources appear to be available. ' \
25
25
  'Please use patients with more information.'
26
26
 
27
27
  resources.each do |docref|
@@ -7401,307 +7401,6 @@
7401
7401
  - http://hl7.org/fhir/StructureDefinition/Observation
7402
7402
  - http://hl7.org/fhir/StructureDefinition/MolecularSequence
7403
7403
  :delayed_references: []
7404
- - :name: us_core_vital_signs
7405
- :class_name: USCorev400VitalSignsSequence
7406
- :version: v4.0.0
7407
- :reformatted_version: v400
7408
- :resource: Observation
7409
- :profile_url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-vital-signs
7410
- :profile_name: US Core Vital Signs Profile
7411
- :profile_version: 4.0.0
7412
- :title: Observation Vital Signs
7413
- :short_description: Verify support for the server capabilities required by the US
7414
- Core Vital Signs Profile.
7415
- :interactions:
7416
- - :code: create
7417
- :expectation: MAY
7418
- - :code: search-type
7419
- :expectation: SHALL
7420
- - :code: read
7421
- :expectation: SHALL
7422
- - :code: vread
7423
- :expectation: SHOULD
7424
- - :code: update
7425
- :expectation: MAY
7426
- - :code: patch
7427
- :expectation: MAY
7428
- - :code: delete
7429
- :expectation: MAY
7430
- - :code: history-instance
7431
- :expectation: SHOULD
7432
- - :code: history-type
7433
- :expectation: MAY
7434
- :operations: []
7435
- :searches:
7436
- - :expectation: SHALL
7437
- :names:
7438
- - patient
7439
- - code
7440
- :names_not_must_support_or_mandatory: []
7441
- :must_support_or_mandatory: true
7442
- - :expectation: SHOULD
7443
- :names:
7444
- - patient
7445
- - category
7446
- - status
7447
- :names_not_must_support_or_mandatory: []
7448
- :must_support_or_mandatory: true
7449
- - :expectation: SHOULD
7450
- :names:
7451
- - patient
7452
- - code
7453
- - date
7454
- :names_not_must_support_or_mandatory: []
7455
- :must_support_or_mandatory: true
7456
- - :expectation: SHALL
7457
- :names:
7458
- - patient
7459
- - category
7460
- :names_not_must_support_or_mandatory: []
7461
- :must_support_or_mandatory: true
7462
- - :expectation: SHALL
7463
- :names:
7464
- - patient
7465
- - category
7466
- - date
7467
- :names_not_must_support_or_mandatory: []
7468
- :must_support_or_mandatory: true
7469
- :search_definitions:
7470
- :patient:
7471
- :paths:
7472
- - subject
7473
- :full_paths:
7474
- - Observation.subject
7475
- :comparators: {}
7476
- :values: []
7477
- :type: Reference
7478
- :contains_multiple: false
7479
- :multiple_or: MAY
7480
- :category:
7481
- :paths:
7482
- - category
7483
- :full_paths:
7484
- - Observation.category
7485
- :comparators: {}
7486
- :values:
7487
- - vital-signs
7488
- :type: CodeableConcept
7489
- :contains_multiple: true
7490
- :multiple_or: MAY
7491
- :status:
7492
- :paths:
7493
- - status
7494
- :full_paths:
7495
- - Observation.status
7496
- :comparators: {}
7497
- :values:
7498
- - registered
7499
- - preliminary
7500
- - final
7501
- - amended
7502
- - corrected
7503
- - cancelled
7504
- - entered-in-error
7505
- - unknown
7506
- :type: code
7507
- :contains_multiple: false
7508
- :multiple_or: SHALL
7509
- :code:
7510
- :paths:
7511
- - code
7512
- :full_paths:
7513
- - Observation.code
7514
- :comparators: {}
7515
- :values:
7516
- - 59576-9
7517
- - 8289-1
7518
- - 77606-2
7519
- - 59408-5
7520
- - 3150-0
7521
- - 3151-8
7522
- :type: CodeableConcept
7523
- :contains_multiple: false
7524
- :multiple_or: SHOULD
7525
- :date:
7526
- :paths:
7527
- - effective
7528
- :full_paths:
7529
- - Observation.effective
7530
- :comparators:
7531
- :eq: MAY
7532
- :ne: MAY
7533
- :gt: SHALL
7534
- :ge: SHALL
7535
- :lt: SHALL
7536
- :le: SHALL
7537
- :sa: MAY
7538
- :eb: MAY
7539
- :ap: MAY
7540
- :values: []
7541
- :type: date
7542
- :contains_multiple: false
7543
- :multiple_or: MAY
7544
- :include_params: *3
7545
- :revincludes: *4
7546
- :required_concepts: []
7547
- :must_supports:
7548
- :extensions: []
7549
- :slices:
7550
- - :name: Observation.category:VSCat
7551
- :path: category
7552
- :discriminator:
7553
- :type: value
7554
- :values:
7555
- - :path: coding.code
7556
- :value: vital-signs
7557
- - :path: coding.system
7558
- :value: http://terminology.hl7.org/CodeSystem/observation-category
7559
- :elements:
7560
- - :path: status
7561
- - :path: category
7562
- - :path: category.coding
7563
- - :path: category.coding.system
7564
- :fixed_value: http://terminology.hl7.org/CodeSystem/observation-category
7565
- - :path: category.coding.code
7566
- :fixed_value: vital-signs
7567
- - :path: code
7568
- - :path: subject
7569
- :types:
7570
- - Reference
7571
- - :path: effectiveDateTime
7572
- :original_path: effective[x]
7573
- - :path: valueQuantity
7574
- :original_path: value[x]
7575
- :mandatory_elements:
7576
- - Observation.status
7577
- - Observation.category
7578
- - Observation.category.coding
7579
- - Observation.category.coding.system
7580
- - Observation.category.coding.code
7581
- - Observation.code
7582
- - Observation.subject
7583
- - Observation.effective[x]
7584
- - Observation.component.code
7585
- :bindings:
7586
- - :type: code
7587
- :strength: preferred
7588
- :system: http://hl7.org/fhir/ValueSet/languages
7589
- :path: language
7590
- - :type: code
7591
- :strength: required
7592
- :system: http://hl7.org/fhir/ValueSet/observation-status
7593
- :path: status
7594
- - :type: CodeableConcept
7595
- :strength: preferred
7596
- :system: http://hl7.org/fhir/ValueSet/observation-category
7597
- :path: category
7598
- - :type: CodeableConcept
7599
- :strength: preferred
7600
- :system: http://hl7.org/fhir/ValueSet/observation-category
7601
- :path: category
7602
- - :type: CodeableConcept
7603
- :strength: extensible
7604
- :system: http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs
7605
- :path: code
7606
- - :type: Quantity
7607
- :strength: extensible
7608
- :system: http://hl7.org/fhir/ValueSet/ucum-vitals-common
7609
- :path: value
7610
- - :type: CodeableConcept
7611
- :strength: extensible
7612
- :system: http://hl7.org/fhir/ValueSet/data-absent-reason
7613
- :path: dataAbsentReason
7614
- - :type: CodeableConcept
7615
- :strength: extensible
7616
- :system: http://hl7.org/fhir/ValueSet/observation-interpretation
7617
- :path: interpretation
7618
- - :type: CodeableConcept
7619
- :strength: example
7620
- :system: http://hl7.org/fhir/ValueSet/body-site
7621
- :path: bodySite
7622
- - :type: CodeableConcept
7623
- :strength: example
7624
- :system: http://hl7.org/fhir/ValueSet/observation-methods
7625
- :path: method
7626
- - :type: CodeableConcept
7627
- :strength: preferred
7628
- :system: http://hl7.org/fhir/ValueSet/referencerange-meaning
7629
- :path: referenceRange.type
7630
- - :type: CodeableConcept
7631
- :strength: example
7632
- :system: http://hl7.org/fhir/ValueSet/referencerange-appliesto
7633
- :path: referenceRange.appliesTo
7634
- - :type: CodeableConcept
7635
- :strength: extensible
7636
- :system: http://hl7.org/fhir/us/core/ValueSet/us-core-vital-signs
7637
- :path: component.code
7638
- - :type: Quantity
7639
- :strength: extensible
7640
- :system: http://hl7.org/fhir/ValueSet/ucum-vitals-common
7641
- :path: component.value
7642
- - :type: CodeableConcept
7643
- :strength: extensible
7644
- :system: http://hl7.org/fhir/ValueSet/data-absent-reason
7645
- :path: component.dataAbsentReason
7646
- - :type: CodeableConcept
7647
- :strength: extensible
7648
- :system: http://hl7.org/fhir/ValueSet/observation-interpretation
7649
- :path: component.interpretation
7650
- :references:
7651
- - :path: Observation.basedOn
7652
- :profiles:
7653
- - http://hl7.org/fhir/StructureDefinition/CarePlan
7654
- - http://hl7.org/fhir/StructureDefinition/DeviceRequest
7655
- - http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation
7656
- - http://hl7.org/fhir/StructureDefinition/MedicationRequest
7657
- - http://hl7.org/fhir/StructureDefinition/NutritionOrder
7658
- - http://hl7.org/fhir/StructureDefinition/ServiceRequest
7659
- - :path: Observation.partOf
7660
- :profiles:
7661
- - http://hl7.org/fhir/StructureDefinition/MedicationAdministration
7662
- - http://hl7.org/fhir/StructureDefinition/MedicationDispense
7663
- - http://hl7.org/fhir/StructureDefinition/MedicationStatement
7664
- - http://hl7.org/fhir/StructureDefinition/Procedure
7665
- - http://hl7.org/fhir/StructureDefinition/Immunization
7666
- - http://hl7.org/fhir/StructureDefinition/ImagingStudy
7667
- - :path: Observation.subject
7668
- :profiles:
7669
- - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
7670
- - :path: Observation.focus
7671
- :profiles:
7672
- - http://hl7.org/fhir/StructureDefinition/Resource
7673
- - :path: Observation.encounter
7674
- :profiles:
7675
- - http://hl7.org/fhir/StructureDefinition/Encounter
7676
- - :path: Observation.performer
7677
- :profiles:
7678
- - http://hl7.org/fhir/StructureDefinition/Practitioner
7679
- - http://hl7.org/fhir/StructureDefinition/PractitionerRole
7680
- - http://hl7.org/fhir/StructureDefinition/Organization
7681
- - http://hl7.org/fhir/StructureDefinition/CareTeam
7682
- - http://hl7.org/fhir/StructureDefinition/Patient
7683
- - http://hl7.org/fhir/StructureDefinition/RelatedPerson
7684
- - :path: Observation.specimen
7685
- :profiles:
7686
- - http://hl7.org/fhir/StructureDefinition/Specimen
7687
- - :path: Observation.device
7688
- :profiles:
7689
- - http://hl7.org/fhir/StructureDefinition/Device
7690
- - http://hl7.org/fhir/StructureDefinition/DeviceMetric
7691
- - :path: Observation.hasMember
7692
- :profiles:
7693
- - http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
7694
- - http://hl7.org/fhir/StructureDefinition/MolecularSequence
7695
- - http://hl7.org/fhir/StructureDefinition/vitalsigns
7696
- - :path: Observation.derivedFrom
7697
- :profiles:
7698
- - http://hl7.org/fhir/StructureDefinition/DocumentReference
7699
- - http://hl7.org/fhir/StructureDefinition/ImagingStudy
7700
- - http://hl7.org/fhir/StructureDefinition/Media
7701
- - http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse
7702
- - http://hl7.org/fhir/StructureDefinition/MolecularSequence
7703
- - http://hl7.org/fhir/StructureDefinition/vitalsigns
7704
- :delayed_references: []
7705
7404
  - :name: us_core_blood_pressure
7706
7405
  :class_name: USCorev400BloodPressureSequence
7707
7406
  :version: v4.0.0
@@ -11615,9 +11314,8 @@
11615
11314
  - patient
11616
11315
  - code
11617
11316
  - date
11618
- :names_not_must_support_or_mandatory:
11619
- - date
11620
- :must_support_or_mandatory: false
11317
+ :names_not_must_support_or_mandatory: []
11318
+ :must_support_or_mandatory: true
11621
11319
  - :expectation: SHALL
11622
11320
  :names:
11623
11321
  - patient
@@ -11629,9 +11327,8 @@
11629
11327
  - patient
11630
11328
  - category
11631
11329
  - date
11632
- :names_not_must_support_or_mandatory:
11633
- - date
11634
- :must_support_or_mandatory: false
11330
+ :names_not_must_support_or_mandatory: []
11331
+ :must_support_or_mandatory: true
11635
11332
  :search_definitions:
11636
11333
  :patient:
11637
11334
  :paths:
@@ -49,9 +49,8 @@
49
49
  - patient
50
50
  - code
51
51
  - date
52
- :names_not_must_support_or_mandatory:
53
- - date
54
- :must_support_or_mandatory: false
52
+ :names_not_must_support_or_mandatory: []
53
+ :must_support_or_mandatory: true
55
54
  - :expectation: SHALL
56
55
  :names:
57
56
  - patient
@@ -63,9 +62,8 @@
63
62
  - patient
64
63
  - category
65
64
  - date
66
- :names_not_must_support_or_mandatory:
67
- - date
68
- :must_support_or_mandatory: false
65
+ :names_not_must_support_or_mandatory: []
66
+ :must_support_or_mandatory: true
69
67
  :search_definitions:
70
68
  :patient:
71
69
  :paths:
@@ -18,8 +18,6 @@ none are returned, the test is skipped.
18
18
  )
19
19
 
20
20
  id :us_core_v400_smokingstatus_patient_category_date_search_test
21
- optional
22
-
23
21
  input :patient_ids,
24
22
  title: 'Patient IDs',
25
23
  description: 'Comma separated list of patient IDs that in sum contain all MUST SUPPORT elements'