Module: AUPSTestKit::BasicTestConstants

Included in:
BasicTest, BasicTestAttesterIdentifierSlices, BasicTestAuthorTests, BasicTestCustodianTests, BasicTestSubjectPatientMsOtherTests
Defined in:
lib/au_ps_inferno/utils/basic_test_contants_module.rb

Constant Summary collapse

NO_SERVER_URL_OMIT_MESSAGE =
'No FHIR server URL was provided, so this test group is omitted.'
PATIENT_MS_IDENTIFIER_SLICES =

AU PS Patient Must Support identifier slices (optional). System URLs for IHI, DVA, Medicare.

[
  { name: 'IHI', system: 'http://ns.electronichealth.net.au/id/hi/ihi/1.0' },
  { name: 'DVA', system: 'http://ns.electronichealth.net.au/id/dva' },
  { name: 'MEDICARE', system: 'http://ns.electronichealth.net.au/id/medicare-number' }
].freeze
ORGANIZATION_MS_IDENTIFIER_SLICES =
[
  { name: 'ABN', system: 'http://hl7.org.au/id/abn' },
  { name: 'HPIO', system: 'http://ns.electronichealth.net.au/id/hi/hpio/1.0' }
].freeze
PRACTITIONER_ROLE_MS_IDENTIFIER_SLICES =
[
  { name: 'MEDICARE PROVIDER', system: 'http://ns.electronichealth.net.au/id/medicare-provider-number' }
].freeze
PRACTITIONER_MS_IDENTIFIER_SLICES =
[
  { name: 'HPII', system: 'http://ns.electronichealth.net.au/id/hi/hpii/1.0' }
].freeze
AUTHOR_MS_IDENTIFIER_SLICES_BY_TYPE =

Author resource type -> Must Support identifier slices (empty for Device, RelatedPerson).

{
  'Practitioner' => PRACTITIONER_MS_IDENTIFIER_SLICES,
  'PractitionerRole' => PRACTITIONER_ROLE_MS_IDENTIFIER_SLICES,
  'Patient' => PATIENT_MS_IDENTIFIER_SLICES,
  'Organization' => ORGANIZATION_MS_IDENTIFIER_SLICES,
  'RelatedPerson' => [],
  'Device' => []
}.freeze