Module: HQMF::Util::EntityHelper

Included in:
QdmPatient, Qrda1R5
Defined in:
lib/util/entity_helper.rb

Instance Method Summary collapse

Instance Method Details

#care_partner_entity?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/util/entity_helper.rb', line 9

def care_partner_entity?
  self[:hqmfOid] == '2.16.840.1.113883.10.20.28.4.134'
end

#location_entity?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/util/entity_helper.rb', line 13

def location_entity?
  self[:hqmfOid] == '2.16.840.1.113883.10.20.28.4.142'
end

#organization_entity?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/util/entity_helper.rb', line 17

def organization_entity?
  self[:hqmfOid] == '2.16.840.1.113883.10.20.28.4.135'
end

#patient_entity?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/util/entity_helper.rb', line 21

def patient_entity?
  self[:hqmfOid] == '2.16.840.1.113883.10.20.28.4.136'
end

#practitioner_entity?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/util/entity_helper.rb', line 5

def practitioner_entity?
  self[:hqmfOid] == '2.16.840.1.113883.10.20.28.4.137'
end