Sha256: 2f05f1d17dfa29a749ccf184c9dcdd1519ba3bb44343442e3d578c4ea12b1555

Contents?: true

Size: 938 Bytes

Versions: 2

Compression:

Stored size: 938 Bytes

Contents

###*
@namespace scoping into the hquery namespace
###
this.hQuery ||= {}


# =require core.coffee
###*
@class

@exports Provider as hQuery.Provider
###
class hQuery.Provider
  constructor: (@json) ->

  ###*
  @returns {hQuery.Person}
  ###
  providerEntity: -> new hQuery.Person @json['providerEntity'] if @json['providerEntity']

  ###*
  @returns {hQuery.DateRange}
  ###
  careProvisionDateRange: -> new hQuery.DateRange @json['careProvisionDateRange'] if @json['careProvisionDateRange']

  ###*
  @returns {hQuery.CodedValue}
  ###
  role: -> hQuery.createCodedValue @json['role']

  ###*
  @returns {String}
  ###
  patientID: -> @json['patientID']


  ###*
  @returns {hQuery.CodedValue}
  ###
  providerType: -> hQuery.createCodedValue @json['providerType']


  ###*
  @returns {String}
  ###
  providerID: -> @json['providerID']

  ###*
  @returns {hQuery.Organization}
  ###
  organizationName: -> new hQuery.Organization @json

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hquery-patient-api-1.1.1 app/assets/javascripts/provider.js.coffee
hquery-patient-api-1.1.0 app/assets/javascripts/provider.js.coffee