Module: DaVinciPASTestKit::Generator::MustSupportTargetProfiles
- Defined in:
- lib/davinci_pas_test_kit/generator/must_support_target_profiles.rb
Constant Summary collapse
- SUBMIT_REQUEST_REQUIRED_PROFILES =
[ 'PAS Request Bundle', 'PAS Beneficiary Patient', 'PAS Claim Update', 'PAS Coverage', 'PAS Device Request', 'PAS Encounter', 'PAS Insurer Organization', 'PAS Medication Request', 'PAS Nutrition Order', 'PAS Practitioner', 'PAS PractitionerRole', 'PAS Requestor Organization', 'PAS Service Request', 'PAS Subscriber Patient' ].freeze
- SUBMIT_RESPONSE_REQUIRED_PROFILES =
[ 'PAS Beneficiary Patient', 'PAS Claim Response', 'PAS CommunicationRequest', 'PAS Insurer Organization', 'PAS Practitioner', 'PAS PractitionerRole', 'PAS Requestor Organization', 'PAS Response Bundle', 'PAS Task' ].freeze
- INQUIRY_REQUEST_REQUIRED_PROFILES =
[ 'PAS Beneficiary Patient', 'PAS Claim Inquiry', 'PAS Coverage', 'PAS Inquiry Request Bundle', 'PAS Insurer Organization', 'PAS Practitioner', 'PAS PractitionerRole', 'PAS Requestor Organization', 'PAS Subscriber Patient' ].freeze
- INQUIRY_RESPONSE_REQUIRED_PROFILES =
[ 'PAS Beneficiary Patient', 'PAS Claim Inquiry Response', 'PAS Inquiry Response Bundle', 'PAS Insurer Organization', 'PAS Practitioner', 'PAS PractitionerRole', 'PAS Requestor Organization', 'PAS Task' ].freeze
- REQUEST_PROFILES =
[ 'PAS Medication Request', 'PAS Service Request', 'PAS Device Request', 'PAS Nutrition Order' ].freeze
Class Method Summary collapse
- .inquire_request_profile?(profile_metadata) ⇒ Boolean
- .inquire_response_profile?(profile_metadata) ⇒ Boolean
- .request_profile?(profile_metadata) ⇒ Boolean
- .submit_request_profile?(profile_metadata) ⇒ Boolean
- .submit_response_profile?(profile_metadata) ⇒ Boolean
Class Method Details
.inquire_request_profile?(profile_metadata) ⇒ Boolean
72 73 74 |
# File 'lib/davinci_pas_test_kit/generator/must_support_target_profiles.rb', line 72 def inquire_request_profile?() INQUIRY_REQUEST_REQUIRED_PROFILES.include?(.profile_name) end |
.inquire_response_profile?(profile_metadata) ⇒ Boolean
76 77 78 |
# File 'lib/davinci_pas_test_kit/generator/must_support_target_profiles.rb', line 76 def inquire_response_profile?() INQUIRY_RESPONSE_REQUIRED_PROFILES.include?(.profile_name) end |
.request_profile?(profile_metadata) ⇒ Boolean
80 81 82 |
# File 'lib/davinci_pas_test_kit/generator/must_support_target_profiles.rb', line 80 def request_profile?() REQUEST_PROFILES.include?(.profile_name) end |
.submit_request_profile?(profile_metadata) ⇒ Boolean
64 65 66 |
# File 'lib/davinci_pas_test_kit/generator/must_support_target_profiles.rb', line 64 def submit_request_profile?() SUBMIT_REQUEST_REQUIRED_PROFILES.include?(.profile_name) end |
.submit_response_profile?(profile_metadata) ⇒ Boolean
68 69 70 |
# File 'lib/davinci_pas_test_kit/generator/must_support_target_profiles.rb', line 68 def submit_response_profile?() SUBMIT_RESPONSE_REQUIRED_PROFILES.include?(.profile_name) end |