Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 | 118x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x |
# Copyright (c) 2014 The MITRE Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# * Neither the name of HL7 nor the names of its contributors may be used to
# endorse or promote products derived from this software without specific
# prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
DT = require '../cql-datatypes'
CORE = require('./core')
Element = CORE.Element
Resource = CORE.Resource
Timing = CORE.Timing
Period = CORE.Period
Parameters = CORE.Parameters
Coding = CORE.Coding
Resource = CORE.Resource
Range = CORE.Range
Quantity = CORE.Quantity
Attachment = CORE.Attachment
BackboneElement = CORE.BackboneElement
DomainResource = CORE.DomainResource
ContactPoint = CORE.ContactPoint
ElementDefinition = CORE.ElementDefinition
Extension = CORE.Extension
HumanName = CORE.HumanName
Address = CORE.Address
Ratio = CORE.Ratio
SampledData = CORE.SampledData
Reference = CORE.Reference
CodeableConcept = CORE.CodeableConcept
Identifier = CORE.Identifier
Narrative = CORE.Narrative
Element = CORE.Element
###*
Embedded class
@class ItemAdjudicationComponent
@exports ItemAdjudicationComponent as ItemAdjudicationComponent
###
class ItemAdjudicationComponent extends BackboneElement
constructor: (@json) ->
super(@json)
###*
Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc.
@returns {Coding}
###
code: -> if @json['code'] then new Coding(@json['code'])
###*
Monitory amount associated with the code.
@returns {Money}
###
amount: -> if @json['amount'] then new Money(@json['amount'])
###*
A non-monitary value for example a percentage. Mutually exclusive to the amount element above.
@returns {Array} an array of {@link Number} objects
###
value:-> @json['value']
###*
Embedded class
@class DetailAdjudicationComponent
@exports DetailAdjudicationComponent as DetailAdjudicationComponent
###
class DetailAdjudicationComponent extends BackboneElement
constructor: (@json) ->
super(@json)
###*
Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc.
@returns {Coding}
###
code: -> if @json['code'] then new Coding(@json['code'])
###*
Monitory amount associated with the code.
@returns {Money}
###
amount: -> if @json['amount'] then new Money(@json['amount'])
###*
A non-monitary value for example a percentage. Mutually exclusive to the amount element above.
@returns {Array} an array of {@link Number} objects
###
value:-> @json['value']
###*
Embedded class
@class SubdetailAdjudicationComponent
@exports SubdetailAdjudicationComponent as SubdetailAdjudicationComponent
###
class SubdetailAdjudicationComponent extends BackboneElement
constructor: (@json) ->
super(@json)
###*
Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc.
@returns {Coding}
###
code: -> if @json['code'] then new Coding(@json['code'])
###*
Monitory amount associated with the code.
@returns {Money}
###
amount: -> if @json['amount'] then new Money(@json['amount'])
###*
A non-monitary value for example a percentage. Mutually exclusive to the amount element above.
@returns {Array} an array of {@link Number} objects
###
value:-> @json['value']
###*
Embedded class
@class ItemSubdetailComponent
@exports ItemSubdetailComponent as ItemSubdetailComponent
###
class ItemSubdetailComponent extends BackboneElement
constructor: (@json) ->
super(@json)
###*
A service line number.
@returns {Array} an array of {@link Number} objects
###
sequenceLinkId:-> @json['sequenceLinkId']
###*
The adjudications results.
@returns {Array} an array of {@link SubdetailAdjudicationComponent} objects
###
adjudication: ->
if @json['adjudication']
for item in @json['adjudication']
new SubdetailAdjudicationComponent(item)
###*
Embedded class
@class ItemDetailComponent
@exports ItemDetailComponent as ItemDetailComponent
###
class ItemDetailComponent extends BackboneElement
constructor: (@json) ->
super(@json)
###*
A service line number.
@returns {Array} an array of {@link Number} objects
###
sequenceLinkId:-> @json['sequenceLinkId']
###*
The adjudications results.
@returns {Array} an array of {@link DetailAdjudicationComponent} objects
###
adjudication: ->
if @json['adjudication']
for item in @json['adjudication']
new DetailAdjudicationComponent(item)
###*
The third tier service adjudications for submitted services.
@returns {Array} an array of {@link ItemSubdetailComponent} objects
###
subdetail: ->
if @json['subdetail']
for item in @json['subdetail']
new ItemSubdetailComponent(item)
###*
Embedded class
@class ItemsComponent
@exports ItemsComponent as ItemsComponent
###
class ItemsComponent extends BackboneElement
constructor: (@json) ->
super(@json)
###*
A service line number.
@returns {Array} an array of {@link Number} objects
###
sequenceLinkId:-> @json['sequenceLinkId']
###*
A list of note references to the notes provided below.
@returns {Array} an array of {@link Number} objects
###
noteNumber:-> @json['noteNumber']
###*
The adjudications results.
@returns {Array} an array of {@link ItemAdjudicationComponent} objects
###
adjudication: ->
if @json['adjudication']
for item in @json['adjudication']
new ItemAdjudicationComponent(item)
###*
The second tier service adjudications for submitted services.
@returns {Array} an array of {@link ItemDetailComponent} objects
###
detail: ->
if @json['detail']
for item in @json['detail']
new ItemDetailComponent(item)
###*
Embedded class
@class AddedItemAdjudicationComponent
@exports AddedItemAdjudicationComponent as AddedItemAdjudicationComponent
###
class AddedItemAdjudicationComponent extends BackboneElement
constructor: (@json) ->
super(@json)
###*
Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc.
@returns {Coding}
###
code: -> if @json['code'] then new Coding(@json['code'])
###*
Monitory amount associated with the code.
@returns {Money}
###
amount: -> if @json['amount'] then new Money(@json['amount'])
###*
A non-monitary value for example a percentage. Mutually exclusive to the amount element above.
@returns {Array} an array of {@link Number} objects
###
value:-> @json['value']
###*
Embedded class
@class AddedItemDetailAdjudicationComponent
@exports AddedItemDetailAdjudicationComponent as AddedItemDetailAdjudicationComponent
###
class AddedItemDetailAdjudicationComponent extends BackboneElement
constructor: (@json) ->
super(@json)
###*
Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc.
@returns {Coding}
###
code: -> if @json['code'] then new Coding(@json['code'])
###*
Monitory amount associated with the code.
@returns {Money}
###
amount: -> if @json['amount'] then new Money(@json['amount'])
###*
A non-monitary value for example a percentage. Mutually exclusive to the amount element above.
@returns {Array} an array of {@link Number} objects
###
value:-> @json['value']
###*
Embedded class
@class AddedItemsDetailComponent
@exports AddedItemsDetailComponent as AddedItemsDetailComponent
###
class AddedItemsDetailComponent extends BackboneElement
constructor: (@json) ->
super(@json)
###*
A code to indicate the Professional Service or Product supplied.
@returns {Coding}
###
service: -> if @json['service'] then new Coding(@json['service'])
###*
The fee charged for the professional service or product..
@returns {Money}
###
fee: -> if @json['fee'] then new Money(@json['fee'])
###*
The adjudications results.
@returns {Array} an array of {@link AddedItemDetailAdjudicationComponent} objects
###
adjudication: ->
if @json['adjudication']
for item in @json['adjudication']
new AddedItemDetailAdjudicationComponent(item)
###*
Embedded class
@class AddedItemComponent
@exports AddedItemComponent as AddedItemComponent
###
class AddedItemComponent extends BackboneElement
constructor: (@json) ->
super(@json)
###*
List of input service items which this service line is intended to replace.
@returns {Array} an array of {@link Number} objects
###
sequenceLinkId:-> @json['sequenceLinkId']
###*
A code to indicate the Professional Service or Product supplied.
@returns {Coding}
###
service: -> if @json['service'] then new Coding(@json['service'])
###*
The fee charged for the professional service or product..
@returns {Money}
###
fee: -> if @json['fee'] then new Money(@json['fee'])
###*
A list of note references to the notes provided below.
@returns {Array} an array of {@link Number} objects
###
noteNumberLinkId:-> @json['noteNumberLinkId']
###*
The adjudications results.
@returns {Array} an array of {@link AddedItemAdjudicationComponent} objects
###
adjudication: ->
if @json['adjudication']
for item in @json['adjudication']
new AddedItemAdjudicationComponent(item)
###*
The second tier service adjudications for payor added services.
@returns {Array} an array of {@link AddedItemsDetailComponent} objects
###
detail: ->
if @json['detail']
for item in @json['detail']
new AddedItemsDetailComponent(item)
###*
Embedded class
@class ErrorsComponent
@exports ErrorsComponent as ErrorsComponent
###
class ErrorsComponent extends BackboneElement
constructor: (@json) ->
super(@json)
###*
The sequence number of the line item submitted which contains the error. This value is ommitted when the error is elsewhere.
@returns {Array} an array of {@link Number} objects
###
sequenceLinkId:-> @json['sequenceLinkId']
###*
The sequence number of the addition within the line item submitted which contains the error. This value is ommitted when the error is not related to an Addition.
@returns {Array} an array of {@link Number} objects
###
detailSequenceLinkId:-> @json['detailSequenceLinkId']
###*
The sequence number of the addition within the line item submitted which contains the error. This value is ommitted when the error is not related to an Addition.
@returns {Array} an array of {@link Number} objects
###
subdetailSequenceLinkId:-> @json['subdetailSequenceLinkId']
###*
An error code,froma specified code system, which details why the claim could not be adjudicated.
@returns {Coding}
###
code: -> if @json['code'] then new Coding(@json['code'])
###*
Embedded class
@class NotesComponent
@exports NotesComponent as NotesComponent
###
class NotesComponent extends BackboneElement
constructor: (@json) ->
super(@json)
###*
An integer associated with each note which may be referred to from each service line item.
@returns {Array} an array of {@link Number} objects
###
number:-> @json['number']
###*
The note purpose: Print/Display.
@returns {Coding}
###
type: -> if @json['type'] then new Coding(@json['type'])
###*
The note text.
@returns {Array} an array of {@link String} objects
###
text:-> @json['text']
###*
This resource provides the adjudication details from the processing of a Claim resource.
@class ClaimResponse
@exports ClaimResponse as ClaimResponse
###
class ClaimResponse extends DomainResource
constructor: (@json) ->
super(@json)
###*
The Response Business Identifier.
@returns {Array} an array of {@link Identifier} objects
###
identifier: ->
if @json['identifier']
for item in @json['identifier']
new Identifier(item)
###*
Original request resource referrence.
@returns {Reference}
###
request: -> if @json['request'] then new Reference(@json['request'])
###*
The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.
@returns {Coding}
###
ruleset: -> if @json['ruleset'] then new Coding(@json['ruleset'])
###*
The style (standard) and version of the original material which was converted into this resource.
@returns {Coding}
###
originalRuleset: -> if @json['originalRuleset'] then new Coding(@json['originalRuleset'])
###*
The date when the enclosed suite of services were performed or completed.
@returns {Array} an array of {@link Date} objects
###
date:-> if @json['date'] then DT.DateTime.parse(@json['date'])
###*
The Insurer who produced this adjudicated response.
@returns {Reference}
###
organization: -> if @json['organization'] then new Reference(@json['organization'])
###*
The practitioner who is responsible for the services rendered to the patient.
@returns {Reference}
###
requestProvider: -> if @json['requestProvider'] then new Reference(@json['requestProvider'])
###*
The organization which is responsible for the services rendered to the patient.
@returns {Reference}
###
requestOrganization: -> if @json['requestOrganization'] then new Reference(@json['requestOrganization'])
###*
Transaction status: error, complete.
@returns {Array} an array of {@link String} objects
###
outcome:-> @json['outcome']
###*
A description of the status of the adjudication.
@returns {Array} an array of {@link String} objects
###
disposition:-> @json['disposition']
###*
Party to be reimbursed: Subscriber, provider, other.
@returns {Coding}
###
payeeType: -> if @json['payeeType'] then new Coding(@json['payeeType'])
###*
The first tier service adjudications for submitted services.
@returns {Array} an array of {@link ItemsComponent} objects
###
item: ->
if @json['item']
for item in @json['item']
new ItemsComponent(item)
###*
The first tier service adjudications for payor added services.
@returns {Array} an array of {@link AddedItemComponent} objects
###
additem: ->
if @json['additem']
for item in @json['additem']
new AddedItemComponent(item)
###*
Mutually exclusive with Services Provided (Item).
@returns {Array} an array of {@link ErrorsComponent} objects
###
error: ->
if @json['error']
for item in @json['error']
new ErrorsComponent(item)
###*
The total cost of the services reported.
@returns {Money}
###
totalCost: -> if @json['totalCost'] then new Money(@json['totalCost'])
###*
The amount of deductable applied which was not allocated to any particular service line.
@returns {Money}
###
unallocDeductable: -> if @json['unallocDeductable'] then new Money(@json['unallocDeductable'])
###*
Total amount of benefit payable (Equal to sum of the Benefit amounts from all detail lines and additions less the Unallocated Deductable).
@returns {Money}
###
totalBenefit: -> if @json['totalBenefit'] then new Money(@json['totalBenefit'])
###*
Adjustment to the payment of this transaction which is not related to adjudication of this transaction.
@returns {Money}
###
paymentAdjustment: -> if @json['paymentAdjustment'] then new Money(@json['paymentAdjustment'])
###*
Reason for the payment adjustment.
@returns {Coding}
###
paymentAdjustmentReason: -> if @json['paymentAdjustmentReason'] then new Coding(@json['paymentAdjustmentReason'])
###*
Estimated payment data.
@returns {Array} an array of {@link Date} objects
###
paymentDate:-> if @json['paymentDate'] then DT.DateTime.parse(@json['paymentDate'])
###*
Payable less any payment adjustment.
@returns {Money}
###
paymentAmount: -> if @json['paymentAmount'] then new Money(@json['paymentAmount'])
###*
Payment identifer.
@returns {Identifier}
###
paymentRef: -> if @json['paymentRef'] then new Identifier(@json['paymentRef'])
###*
Status of funds reservation (For provider, for Patient, None).
@returns {Coding}
###
reserved: -> if @json['reserved'] then new Coding(@json['reserved'])
###*
The form to be used for printing the content.
@returns {Coding}
###
form: -> if @json['form'] then new Coding(@json['form'])
###*
Note text.
@returns {Array} an array of {@link NotesComponent} objects
###
note: ->
if @json['note']
for item in @json['note']
new NotesComponent(item)
module.exports.ClaimResponse = ClaimResponse
|