Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Fi 497 - Check must support elements for fixed values #413

Merged
merged 10 commits into from
Feb 9, 2020

Conversation

ghost
Copy link

@ghost ghost commented Jan 8, 2020

This PR was originally meant for slices marked as "must support". I've decided to go about this by checking for fixed values when checking must support elements and then removing duplicates. Before, when an element had a minimum cardinality of 0 and a fixed value, we never checked if the element found was the fixed value, and I'm guessing the profile validation wouldn't have picked it up because the minimum cardinality is 0.

Submitter:

  • This pull request describes why these changes were made
  • Internal ticket for this PR: https://oncprojectracking.healthit.gov/support/browse/FI-497
  • Internal ticket links to this PR
  • Internal ticket is properly labeled (Community/Program)
  • Internal ticket has a justification for its Community/Program label
  • Code diff has been reviewed for extraneous/missing code
  • [] Tests are included and test edge cases
  • Tests/code quality metrics have been run locally and pass

Reviewer 1:

Name:

  • Code is maintainable and reusable, reuses existing code and infrastructure
    where appropriate, and accomplishes the task's purpose
  • The tests appropriately test the new code, including edge cases
  • You have tried to break the code

Reviewer 2:

Name:

  • Code is maintainable and reusable, reuses existing code and infrastructure
    where appropriate, and accomplishes the task's purpose
  • The tests appropriately test the new code, including edge cases
  • You have tried to break the code

lib/modules/uscore_v3.1.0/bp_sequence.rb Outdated Show resolved Hide resolved
lib/modules/uscore_v3.1.0/bp_sequence.rb Outdated Show resolved Hide resolved
lib/modules/uscore_v3.1.0/bodyheight_sequence.rb Outdated Show resolved Hide resolved
generator/uscore/uscore_generator.rb Show resolved Hide resolved
@arscan
Copy link
Contributor

arscan commented Jan 15, 2020

Have all comments been addressed?

@ghost
Copy link
Author

ghost commented Jan 15, 2020

Have all comments been addressed?

No, I'm trying to redo how the slice validation works.

@arscan arscan added the WIP Work in progress label Jan 15, 2020
@ghost ghost removed the WIP Work in progress label Jan 22, 2020
@ghost ghost force-pushed the FI-497-must-support-slices branch from 78095f3 to 85e5546 Compare January 29, 2020 02:16
@Jammjammjamm
Copy link
Contributor

I encountered this in the smoking status sequence:
Screen Shot 2020-01-30 at 10 45 54 AM

and this in the Practitioner sequence:
Screen Shot 2020-01-30 at 10 47 24 AM

@ghost
Copy link
Author

ghost commented Jan 30, 2020

I encountered this in the smoking status sequence:
Screen Shot 2020-01-30 at 10 45 54 AM

and this in the Practitioner sequence:
Screen Shot 2020-01-30 at 10 47 24 AM

Should be fixed now.

@Jammjammjamm
Copy link
Contributor

I still have the problem in the Practitoner sequence:

INFO | Inferno | Starting Test: USCPR-09 [All must support elements are provided in the Practitioner resources returned.]
ERROR | Inferno | Fatal Error: undefined method `values' for #<Array:0x00007fd81e630a08>
Did you mean?  values_at
ERROR | Inferno | [
  "inferno/lib/modules/uscore_v3.1.0/us_core_practitioner_sequence.rb:297:in `block (2 levels) in <class:USCore310PractitionerSequence>'",
  "inferno/lib/modules/uscore_v3.1.0/us_core_practitioner_sequence.rb:295:in `reject'",
  "inferno/lib/modules/uscore_v3.1.0/us_core_practitioner_sequence.rb:295:in `block in <class:USCore310PractitionerSequence>'",
  "inferno/lib/app/sequence_base.rb:427:in `instance_eval'",
  "inferno/lib/app/sequence_base.rb:427:in `run_test'"...]

@ghost
Copy link
Author

ghost commented Feb 4, 2020

I still have the problem in the Practitoner sequence:

INFO | Inferno | Starting Test: USCPR-09 [All must support elements are provided in the Practitioner resources returned.]
ERROR | Inferno | Fatal Error: undefined method `values' for #<Array:0x00007fd81e630a08>
Did you mean?  values_at
ERROR | Inferno | [
  "inferno/lib/modules/uscore_v3.1.0/us_core_practitioner_sequence.rb:297:in `block (2 levels) in <class:USCore310PractitionerSequence>'",
  "inferno/lib/modules/uscore_v3.1.0/us_core_practitioner_sequence.rb:295:in `reject'",
  "inferno/lib/modules/uscore_v3.1.0/us_core_practitioner_sequence.rb:295:in `block in <class:USCore310PractitionerSequence>'",
  "inferno/lib/app/sequence_base.rb:427:in `instance_eval'",
  "inferno/lib/app/sequence_base.rb:427:in `run_test'"...]

Woops, missed that part. Actually resolved now.

Copy link
Contributor

@arscan arscan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran against our reference data sets and the whole slice category of MUST SUPPORT issues are now gone. Good job!

@arscan arscan merged commit 548e1d4 into development Feb 9, 2020
@arscan arscan deleted the FI-497-must-support-slices branch February 9, 2020 22:51
@radamson radamson mentioned this pull request Aug 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants