us_core_test_kit 0.3.0 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/us_core_test_kit/custom_groups/v4.0.0/device_udi_pi_test.rb +1 -1
- data/lib/us_core_test_kit/custom_groups/v4.0.0/document_reference_custodian_test.rb +1 -1
- data/lib/us_core_test_kit/date_search_validation.rb +14 -7
- data/lib/us_core_test_kit/generated/v4.0.0/metadata.yml +4 -315
- data/lib/us_core_test_kit/generated/v4.0.0/patient/metadata.yml +0 -8
- data/lib/us_core_test_kit/generated/v4.0.0/patient/patient_must_support_test.rb +1 -1
- data/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/metadata.yml +4 -6
- data/lib/us_core_test_kit/generated/v4.0.0/smokingstatus/smokingstatus_patient_category_date_search_test.rb +0 -2
- data/lib/us_core_test_kit/generated/v5.0.1/metadata.yml +1922 -3532
- data/lib/us_core_test_kit/generated/v5.0.1/observation_sdoh_assessment/metadata.yml +0 -1
- data/lib/us_core_test_kit/generated/v5.0.1/patient/metadata.yml +2 -7
- data/lib/us_core_test_kit/generated/v5.0.1/patient/patient_must_support_test.rb +2 -1
- data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/metadata.yml +288 -0
- data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_id_search_test.rb +42 -0
- data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_must_support_test.rb +56 -0
- data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_patient_authored_search_test.rb +49 -0
- data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_patient_questionnaire_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_patient_search_test.rb +63 -0
- data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_patient_status_search_test.rb +48 -0
- data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_patient_tag_authored_search_test.rb +50 -0
- data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_patient_tag_search_test.rb +49 -0
- data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_provenance_revinclude_search_test.rb +52 -0
- data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_read_test.rb +26 -0
- data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_reference_resolution_test.rb +39 -0
- data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response/questionnaire_response_validation_test.rb +40 -0
- data/lib/us_core_test_kit/generated/v5.0.1/questionnaire_response_group.rb +101 -0
- data/lib/us_core_test_kit/generated/v5.0.1/smokingstatus/metadata.yml +4 -6
- data/lib/us_core_test_kit/generated/v5.0.1/smokingstatus/smokingstatus_patient_category_date_search_test.rb +0 -2
- data/lib/us_core_test_kit/generated/v5.0.1/us_core_test_suite.rb +2 -0
- data/lib/us_core_test_kit/generator/group_generator.rb +5 -0
- data/lib/us_core_test_kit/generator/group_metadata_extractor.rb +5 -1
- data/lib/us_core_test_kit/generator/ig_metadata_extractor.rb +9 -0
- data/lib/us_core_test_kit/generator/must_support_metadata_extractor.rb +17 -16
- data/lib/us_core_test_kit/generator/special_cases.rb +4 -10
- data/lib/us_core_test_kit/read_test.rb +1 -1
- data/lib/us_core_test_kit/reference_resolution_test.rb +16 -4
- data/lib/us_core_test_kit/search_test.rb +2 -3
- data/lib/us_core_test_kit/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf7aef28c22652157e161c0577936f83368ed966e95d313d43a96c3aae618a3f
|
4
|
+
data.tar.gz: d44b31b58c97c38e9d80462a47dbc2baa50e2e6cdc2e98ed4cb244a375c381bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b87c6b6d5be087b6d28837ea02581ec2fc53bef7301e858db3b7e9e7538e8db93a54416a916ec8e8077c9cdcc5313880a63353d633d5e0039306e7c93c28758
|
7
|
+
data.tar.gz: 348461765954b1564b1e44bbac4c149de5740c18c13edb920a79cc1ddf00a5a6279fab8f0ee01732b9caf1bd1a4a54bb7a17f471a2abc3325ac96410e6691cf5
|
@@ -16,7 +16,7 @@ module USCoreTestKit
|
|
16
16
|
resources = scratch_resources[:all] || []
|
17
17
|
|
18
18
|
skip_if resources.blank?,
|
19
|
-
'No Devices resources
|
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
|
24
|
+
'No DocumentReference resources appear to be available. ' \
|
25
25
|
'Please use patients with more information.'
|
26
26
|
|
27
27
|
resources.each do |docref|
|
@@ -36,7 +36,7 @@ module USCoreTestKit
|
|
36
36
|
range
|
37
37
|
end
|
38
38
|
|
39
|
-
def fhir_date_comparer(search_range, target_range, comparator)
|
39
|
+
def fhir_date_comparer(search_range, target_range, comparator, extend_start = false, extend_end = false)
|
40
40
|
# Implicitly, a missing lower boundary is "less than" any actual date. A missing upper boundary is "greater than" any actual date.
|
41
41
|
case comparator
|
42
42
|
when 'eq' # the range of the search value fully contains the range of the target value
|
@@ -44,13 +44,13 @@ module USCoreTestKit
|
|
44
44
|
when 'ne' # the range of the search value does not fully contain the range of the target value
|
45
45
|
target_range[:start].nil? || target_range[:end].nil? || search_range[:start] > target_range[:start] || search_range[:end] < target_range[:end]
|
46
46
|
when 'gt' # the range above the search value intersects (i.e. overlaps) with the range of the target value
|
47
|
-
target_range[:end].nil? || search_range[:end] < target_range[:end]
|
47
|
+
target_range[:end].nil? || search_range[:end] < target_range[:end] || (search_range[:end] < (target_range[:end] + 1) && extend_end)
|
48
48
|
when 'lt' # the range below the search value intersects (i.e. overlaps) with the range of the target value
|
49
|
-
target_range[:start].nil? || search_range[:start] > target_range[:start]
|
49
|
+
target_range[:start].nil? || search_range[:start] > target_range[:start] || (search_range[:start] > (target_range[:start] - 1) && extend_start)
|
50
50
|
when 'ge'
|
51
|
-
fhir_date_comparer(search_range, target_range, 'gt') || fhir_date_comparer(search_range, target_range, 'eq')
|
51
|
+
fhir_date_comparer(search_range, target_range, 'gt', extend_start, extend_end) || fhir_date_comparer(search_range, target_range, 'eq')
|
52
52
|
when 'le'
|
53
|
-
fhir_date_comparer(search_range, target_range, 'lt') || fhir_date_comparer(search_range, target_range, 'eq')
|
53
|
+
fhir_date_comparer(search_range, target_range, 'lt', extend_start, extend_end) || fhir_date_comparer(search_range, target_range, 'eq')
|
54
54
|
when 'sa' # the range above the search value contains the range of the target value
|
55
55
|
!target_range[:start].nil? && search_range[:end] < target_range[:start]
|
56
56
|
when 'eb' # the range below the search value contains the range of the target value
|
@@ -81,9 +81,11 @@ module USCoreTestKit
|
|
81
81
|
else
|
82
82
|
comparator = 'eq'
|
83
83
|
end
|
84
|
+
search_is_date = is_date?(search_value)
|
85
|
+
target_is_date = is_date?(target_value)
|
84
86
|
search_range = get_fhir_datetime_range(search_value)
|
85
87
|
target_range = get_fhir_datetime_range(target_value)
|
86
|
-
fhir_date_comparer(search_range, target_range, comparator)
|
88
|
+
fhir_date_comparer(search_range, target_range, comparator, !search_is_date && target_is_date, !search_is_date && target_is_date)
|
87
89
|
end
|
88
90
|
|
89
91
|
def validate_period_search(search_value, target_value)
|
@@ -93,9 +95,14 @@ module USCoreTestKit
|
|
93
95
|
else
|
94
96
|
comparator = 'eq'
|
95
97
|
end
|
98
|
+
search_is_date = is_date?(search_value)
|
96
99
|
search_range = get_fhir_datetime_range(search_value)
|
97
100
|
target_range = get_fhir_period_range(target_value)
|
98
|
-
fhir_date_comparer(search_range, target_range, comparator)
|
101
|
+
fhir_date_comparer(search_range, target_range, comparator, !search_is_date && is_date?(target_value.start), !search_is_date && is_date?(target_value.end))
|
102
|
+
end
|
103
|
+
|
104
|
+
def is_date?(value)
|
105
|
+
/^\d{4}(-\d{2})?(-\d{2})?$/.match?(value) # YYYY or YYYY-MM or YYYY-MM-DD
|
99
106
|
end
|
100
107
|
end
|
101
108
|
end
|
@@ -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
|
-
|
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
|
-
|
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:
|
@@ -12183,20 +11880,12 @@
|
|
12183
11880
|
:uscdi_only: true
|
12184
11881
|
- :path: name.suffix
|
12185
11882
|
:uscdi_only: true
|
12186
|
-
- :path: name.use
|
12187
|
-
:fixed_value: old
|
12188
|
-
:uscdi_only: true
|
12189
11883
|
- :path: name.period.end
|
12190
11884
|
:uscdi_only: true
|
12191
11885
|
- :path: telecom
|
12192
11886
|
:uscdi_only: true
|
12193
11887
|
- :path: communication
|
12194
11888
|
:uscdi_only: true
|
12195
|
-
:choices:
|
12196
|
-
- :paths:
|
12197
|
-
- name.period.end
|
12198
|
-
- name.use
|
12199
|
-
:uscdi_only: true
|
12200
11889
|
:mandatory_elements:
|
12201
11890
|
- Patient.identifier
|
12202
11891
|
- Patient.identifier.system
|
@@ -185,20 +185,12 @@
|
|
185
185
|
:uscdi_only: true
|
186
186
|
- :path: name.suffix
|
187
187
|
:uscdi_only: true
|
188
|
-
- :path: name.use
|
189
|
-
:fixed_value: old
|
190
|
-
:uscdi_only: true
|
191
188
|
- :path: name.period.end
|
192
189
|
:uscdi_only: true
|
193
190
|
- :path: telecom
|
194
191
|
:uscdi_only: true
|
195
192
|
- :path: communication
|
196
193
|
:uscdi_only: true
|
197
|
-
:choices:
|
198
|
-
- :paths:
|
199
|
-
- name.period.end
|
200
|
-
- name.use
|
201
|
-
:uscdi_only: true
|
202
194
|
:mandatory_elements:
|
203
195
|
- Patient.identifier
|
204
196
|
- Patient.identifier.system
|
@@ -34,7 +34,7 @@ module USCoreTestKit
|
|
34
34
|
* Patient.extension:birthsex
|
35
35
|
* Patient.extension:ethnicity
|
36
36
|
* Patient.extension:race
|
37
|
-
* Patient.name.period.end
|
37
|
+
* Patient.name.period.end
|
38
38
|
* Patient.name.suffix
|
39
39
|
* Patient.telecom
|
40
40
|
* Patient.telecom.system
|
@@ -49,9 +49,8 @@
|
|
49
49
|
- patient
|
50
50
|
- code
|
51
51
|
- date
|
52
|
-
:names_not_must_support_or_mandatory:
|
53
|
-
|
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
|
-
|
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'
|