<reponame>mdx-dev/client-py<gh_stars>0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#  Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit) on 2019-01-22.
#  2019, SMART Health IT.


from . import domainresource

class ExplanationOfBenefit(domainresource.DomainResource):
    """ 
    E
    x
    p
    l
    a
    n
    a
    t
    i
    o
    n
    o
    f
    B
    e
    n
    e
    f
    i
    t
    r
    e
    s
    o
    u
    r
    c
    e
    .
    
    
    T
    h
    i
    s
    r
    e
    s
    o
    u
    r
    c
    e
    p
    r
    o
    v
    i
    d
    e
    s
    :
    t
    h
    e
    c
    l
    a
    i
    m
    d
    e
    t
    a
    i
    l
    s
    ;
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    d
    e
    t
    a
    i
    l
    s
    f
    r
    o
    m
    t
    h
    e
    p
    r
    o
    c
    e
    s
    s
    i
    n
    g
    o
    f
    a
    C
    l
    a
    i
    m
    ;
    a
    n
    d
    o
    p
    t
    i
    o
    n
    a
    l
    l
    y
    a
    c
    c
    o
    u
    n
    t
    b
    a
    l
    a
    n
    c
    e
    i
    n
    f
    o
    r
    m
    a
    t
    i
    o
    n
    ,
    f
    o
    r
    i
    n
    f
    o
    r
    m
    i
    n
    g
    t
    h
    e
    s
    u
    b
    s
    c
    r
    i
    b
    e
    r
    o
    f
    t
    h
    e
    b
    e
    n
    e
    f
    i
    t
    s
    p
    r
    o
    v
    i
    d
    e
    d
    .
    
    """
    
    resource_type = "ExplanationOfBenefit"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.accident = None
        """ 
        D
        e
        t
        a
        i
        l
        s
        o
        f
        t
        h
        e
        e
        v
        e
        n
        t
        .
        Type `ExplanationOfBenefitAccident` (represented as `dict` in JSON). """
        
        self.addItem = None
        """ 
        I
        n
        s
        u
        r
        e
        r
        a
        d
        d
        e
        d
        l
        i
        n
        e
        i
        t
        e
        m
        s
        .
        List of `ExplanationOfBenefitAddItem` items (represented as `dict` in JSON). """
        
        self.adjudication = None
        """ 
        H
        e
        a
        d
        e
        r
        -
        l
        e
        v
        e
        l
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        .
        List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). """
        
        self.benefitBalance = None
        """ 
        B
        a
        l
        a
        n
        c
        e
        b
        y
        B
        e
        n
        e
        f
        i
        t
        C
        a
        t
        e
        g
        o
        r
        y
        .
        List of `ExplanationOfBenefitBenefitBalance` items (represented as `dict` in JSON). """
        
        self.benefitPeriod = None
        """ 
        W
        h
        e
        n
        t
        h
        e
        b
        e
        n
        e
        f
        i
        t
        s
        a
        r
        e
        a
        p
        p
        l
        i
        c
        a
        b
        l
        e
        .
        Type `Period` (represented as `dict` in JSON). """
        
        self.billablePeriod = None
        """ 
        R
        e
        l
        e
        v
        a
        n
        t
        t
        i
        m
        e
        f
        r
        a
        m
        e
        f
        o
        r
        t
        h
        e
        c
        l
        a
        i
        m
        .
        Type `Period` (represented as `dict` in JSON). """
        
        self.careTeam = None
        """ 
        C
        a
        r
        e
        T
        e
        a
        m
        m
        e
        m
        b
        e
        r
        s
        .
        List of `ExplanationOfBenefitCareTeam` items (represented as `dict` in JSON). """
        
        self.claim = None
        """ 
        C
        l
        a
        i
        m
        r
        e
        f
        e
        r
        e
        n
        c
        e
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.claimResponse = None
        """ 
        C
        l
        a
        i
        m
        r
        e
        s
        p
        o
        n
        s
        e
        r
        e
        f
        e
        r
        e
        n
        c
        e
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.created = None
        """ 
        R
        e
        s
        p
        o
        n
        s
        e
        c
        r
        e
        a
        t
        i
        o
        n
        d
        a
        t
        e
        .
        Type `FHIRDate` (represented as `str` in JSON). """
        
        self.diagnosis = None
        """ 
        P
        e
        r
        t
        i
        n
        e
        n
        t
        d
        i
        a
        g
        n
        o
        s
        i
        s
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        List of `ExplanationOfBenefitDiagnosis` items (represented as `dict` in JSON). """
        
        self.disposition = None
        """ 
        D
        i
        s
        p
        o
        s
        i
        t
        i
        o
        n
        M
        e
        s
        s
        a
        g
        e
        .
        Type `str`. """
        
        self.enterer = None
        """ 
        A
        u
        t
        h
        o
        r
        o
        f
        t
        h
        e
        c
        l
        a
        i
        m
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.facility = None
        """ 
        S
        e
        r
        v
        i
        c
        i
        n
        g
        F
        a
        c
        i
        l
        i
        t
        y
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.form = None
        """ 
        P
        r
        i
        n
        t
        e
        d
        r
        e
        f
        e
        r
        e
        n
        c
        e
        o
        r
        a
        c
        t
        u
        a
        l
        f
        o
        r
        m
        .
        Type `Attachment` (represented as `dict` in JSON). """
        
        self.formCode = None
        """ 
        P
        r
        i
        n
        t
        e
        d
        f
        o
        r
        m
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.fundsReserve = None
        """ 
        F
        u
        n
        d
        s
        r
        e
        s
        e
        r
        v
        e
        d
        s
        t
        a
        t
        u
        s
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.fundsReserveRequested = None
        """ 
        F
        o
        r
        w
        h
        o
        m
        t
        o
        r
        e
        s
        e
        r
        v
        e
        f
        u
        n
        d
        s
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.identifier = None
        """ 
        B
        u
        s
        i
        n
        e
        s
        s
        I
        d
        e
        n
        t
        i
        f
        i
        e
        r
        f
        o
        r
        t
        h
        e
        r
        e
        s
        o
        u
        r
        c
        e
        .
        List of `Identifier` items (represented as `dict` in JSON). """
        
        self.insurance = None
        """ 
        P
        a
        t
        i
        e
        n
        t
        i
        n
        s
        u
        r
        a
        n
        c
        e
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        List of `ExplanationOfBenefitInsurance` items (represented as `dict` in JSON). """
        
        self.insurer = None
        """ 
        P
        a
        r
        t
        y
        r
        e
        s
        p
        o
        n
        s
        i
        b
        l
        e
        f
        o
        r
        r
        e
        i
        m
        b
        u
        r
        s
        e
        m
        e
        n
        t
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.item = None
        """ 
        P
        r
        o
        d
        u
        c
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        p
        r
        o
        v
        i
        d
        e
        d
        .
        List of `ExplanationOfBenefitItem` items (represented as `dict` in JSON). """
        
        self.originalPrescription = None
        """ 
        O
        r
        i
        g
        i
        n
        a
        l
        p
        r
        e
        s
        c
        r
        i
        p
        t
        i
        o
        n
        i
        f
        s
        u
        p
        e
        r
        c
        e
        d
        e
        d
        b
        y
        f
        u
        l
        f
        i
        l
        l
        e
        r
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.outcome = None
        """ 
        q
        u
        e
        u
        e
        d
        |
        c
        o
        m
        p
        l
        e
        t
        e
        |
        e
        r
        r
        o
        r
        |
        p
        a
        r
        t
        i
        a
        l
        .
        Type `str`. """
        
        self.patient = None
        """ 
        T
        h
        e
        r
        e
        c
        i
        p
        i
        e
        n
        t
        o
        f
        t
        h
        e
        p
        r
        o
        d
        u
        c
        t
        s
        a
        n
        d
        s
        e
        r
        v
        i
        c
        e
        s
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.payee = None
        """ 
        R
        e
        c
        i
        p
        i
        e
        n
        t
        o
        f
        b
        e
        n
        e
        f
        i
        t
        s
        p
        a
        y
        a
        b
        l
        e
        .
        Type `ExplanationOfBenefitPayee` (represented as `dict` in JSON). """
        
        self.payment = None
        """ 
        P
        a
        y
        m
        e
        n
        t
        D
        e
        t
        a
        i
        l
        s
        .
        Type `ExplanationOfBenefitPayment` (represented as `dict` in JSON). """
        
        self.preAuthRef = None
        """ 
        P
        r
        e
        a
        u
        t
        h
        o
        r
        i
        z
        a
        t
        i
        o
        n
        r
        e
        f
        e
        r
        e
        n
        c
        e
        .
        List of `str` items. """
        
        self.preAuthRefPeriod = None
        """ 
        P
        r
        e
        a
        u
        t
        h
        o
        r
        i
        z
        a
        t
        i
        o
        n
        i
        n
        -
        e
        f
        f
        e
        c
        t
        p
        e
        r
        i
        o
        d
        .
        List of `Period` items (represented as `dict` in JSON). """
        
        self.precedence = None
        """ 
        P
        r
        e
        c
        e
        d
        e
        n
        c
        e
        (
        p
        r
        i
        m
        a
        r
        y
        ,
        s
        e
        c
        o
        n
        d
        a
        r
        y
        ,
        e
        t
        c
        .
        )
        .
        Type `int`. """
        
        self.prescription = None
        """ 
        P
        r
        e
        s
        c
        r
        i
        p
        t
        i
        o
        n
        a
        u
        t
        h
        o
        r
        i
        z
        i
        n
        g
        s
        e
        r
        v
        i
        c
        e
        s
        o
        r
        p
        r
        o
        d
        u
        c
        t
        s
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.priority = None
        """ 
        D
        e
        s
        i
        r
        e
        d
        p
        r
        o
        c
        e
        s
        s
        i
        n
        g
        u
        r
        g
        e
        n
        c
        y
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.procedure = None
        """ 
        C
        l
        i
        n
        i
        c
        a
        l
        p
        r
        o
        c
        e
        d
        u
        r
        e
        s
        p
        e
        r
        f
        o
        r
        m
        e
        d
        .
        List of `ExplanationOfBenefitProcedure` items (represented as `dict` in JSON). """
        
        self.processNote = None
        """ 
        N
        o
        t
        e
        c
        o
        n
        c
        e
        r
        n
        i
        n
        g
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        .
        List of `ExplanationOfBenefitProcessNote` items (represented as `dict` in JSON). """
        
        self.provider = None
        """ 
        P
        a
        r
        t
        y
        r
        e
        s
        p
        o
        n
        s
        i
        b
        l
        e
        f
        o
        r
        t
        h
        e
        c
        l
        a
        i
        m
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.referral = None
        """ 
        T
        r
        e
        a
        t
        m
        e
        n
        t
        R
        e
        f
        e
        r
        r
        a
        l
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.related = None
        """ 
        P
        r
        i
        o
        r
        o
        r
        c
        o
        r
        o
        l
        l
        a
        r
        y
        c
        l
        a
        i
        m
        s
        .
        List of `ExplanationOfBenefitRelated` items (represented as `dict` in JSON). """
        
        self.status = None
        """ 
        a
        c
        t
        i
        v
        e
        |
        c
        a
        n
        c
        e
        l
        l
        e
        d
        |
        d
        r
        a
        f
        t
        |
        e
        n
        t
        e
        r
        e
        d
        -
        i
        n
        -
        e
        r
        r
        o
        r
        .
        Type `str`. """
        
        self.subType = None
        """ 
        M
        o
        r
        e
        g
        r
        a
        n
        u
        l
        a
        r
        c
        l
        a
        i
        m
        t
        y
        p
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.supportingInfo = None
        """ 
        S
        u
        p
        p
        o
        r
        t
        i
        n
        g
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        List of `ExplanationOfBenefitSupportingInfo` items (represented as `dict` in JSON). """
        
        self.total = None
        """ 
        A
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        t
        o
        t
        a
        l
        s
        .
        List of `ExplanationOfBenefitTotal` items (represented as `dict` in JSON). """
        
        self.type = None
        """ 
        C
        a
        t
        e
        g
        o
        r
        y
        o
        r
        d
        i
        s
        c
        i
        p
        l
        i
        n
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.use = None
        """ 
        c
        l
        a
        i
        m
        |
        p
        r
        e
        a
        u
        t
        h
        o
        r
        i
        z
        a
        t
        i
        o
        n
        |
        p
        r
        e
        d
        e
        t
        e
        r
        m
        i
        n
        a
        t
        i
        o
        n
        .
        Type `str`. """
        
        super(ExplanationOfBenefit, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefit, self).elementProperties()
        js.extend([
            ("accident", "accident", ExplanationOfBenefitAccident, False, None, False),
            ("addItem", "addItem", ExplanationOfBenefitAddItem, True, None, False),
            ("adjudication", "adjudication", ExplanationOfBenefitItemAdjudication, True, None, False),
            ("benefitBalance", "benefitBalance", ExplanationOfBenefitBenefitBalance, True, None, False),
            ("benefitPeriod", "benefitPeriod", period.Period, False, None, False),
            ("billablePeriod", "billablePeriod", period.Period, False, None, False),
            ("careTeam", "careTeam", ExplanationOfBenefitCareTeam, True, None, False),
            ("claim", "claim", fhirreference.FHIRReference, False, None, False),
            ("claimResponse", "claimResponse", fhirreference.FHIRReference, False, None, False),
            ("created", "created", fhirdate.FHIRDate, False, None, True),
            ("diagnosis", "diagnosis", ExplanationOfBenefitDiagnosis, True, None, False),
            ("disposition", "disposition", str, False, None, False),
            ("enterer", "enterer", fhirreference.FHIRReference, False, None, False),
            ("facility", "facility", fhirreference.FHIRReference, False, None, False),
            ("form", "form", attachment.Attachment, False, None, False),
            ("formCode", "formCode", codeableconcept.CodeableConcept, False, None, False),
            ("fundsReserve", "fundsReserve", codeableconcept.CodeableConcept, False, None, False),
            ("fundsReserveRequested", "fundsReserveRequested", codeableconcept.CodeableConcept, False, None, False),
            ("identifier", "identifier", identifier.Identifier, True, None, False),
            ("insurance", "insurance", ExplanationOfBenefitInsurance, True, None, True),
            ("insurer", "insurer", fhirreference.FHIRReference, False, None, True),
            ("item", "item", ExplanationOfBenefitItem, True, None, False),
            ("originalPrescription", "originalPrescription", fhirreference.FHIRReference, False, None, False),
            ("outcome", "outcome", str, False, None, True),
            ("patient", "patient", fhirreference.FHIRReference, False, None, True),
            ("payee", "payee", ExplanationOfBenefitPayee, False, None, False),
            ("payment", "payment", ExplanationOfBenefitPayment, False, None, False),
            ("preAuthRef", "preAuthRef", str, True, None, False),
            ("preAuthRefPeriod", "preAuthRefPeriod", period.Period, True, None, False),
            ("precedence", "precedence", int, False, None, False),
            ("prescription", "prescription", fhirreference.FHIRReference, False, None, False),
            ("priority", "priority", codeableconcept.CodeableConcept, False, None, False),
            ("procedure", "procedure", ExplanationOfBenefitProcedure, True, None, False),
            ("processNote", "processNote", ExplanationOfBenefitProcessNote, True, None, False),
            ("provider", "provider", fhirreference.FHIRReference, False, None, True),
            ("referral", "referral", fhirreference.FHIRReference, False, None, False),
            ("related", "related", ExplanationOfBenefitRelated, True, None, False),
            ("status", "status", str, False, None, True),
            ("subType", "subType", codeableconcept.CodeableConcept, False, None, False),
            ("supportingInfo", "supportingInfo", ExplanationOfBenefitSupportingInfo, True, None, False),
            ("total", "total", ExplanationOfBenefitTotal, True, None, False),
            ("type", "type", codeableconcept.CodeableConcept, False, None, True),
            ("use", "use", str, False, None, True),
        ])
        return js


from . import backboneelement

class ExplanationOfBenefitAccident(backboneelement.BackboneElement):
    """ 
    D
    e
    t
    a
    i
    l
    s
    o
    f
    t
    h
    e
    e
    v
    e
    n
    t
    .
    
    
    D
    e
    t
    a
    i
    l
    s
    o
    f
    a
    a
    c
    c
    i
    d
    e
    n
    t
    w
    h
    i
    c
    h
    r
    e
    s
    u
    l
    t
    e
    d
    i
    n
    i
    n
    j
    u
    r
    i
    e
    s
    w
    h
    i
    c
    h
    r
    e
    q
    u
    i
    r
    e
    d
    t
    h
    e
    p
    r
    o
    d
    u
    c
    t
    s
    a
    n
    d
    s
    e
    r
    v
    i
    c
    e
    s
    l
    i
    s
    t
    e
    d
    i
    n
    t
    h
    e
    c
    l
    a
    i
    m
    .
    
    """
    
    resource_type = "ExplanationOfBenefitAccident"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.date = None
        """ 
        W
        h
        e
        n
        t
        h
        e
        i
        n
        c
        i
        d
        e
        n
        t
        o
        c
        c
        u
        r
        r
        e
        d
        .
        Type `FHIRDate` (represented as `str` in JSON). """
        
        self.locationAddress = None
        """ 
        W
        h
        e
        r
        e
        t
        h
        e
        e
        v
        e
        n
        t
        o
        c
        c
        u
        r
        r
        e
        d
        .
        Type `Address` (represented as `dict` in JSON). """
        
        self.locationReference = None
        """ 
        W
        h
        e
        r
        e
        t
        h
        e
        e
        v
        e
        n
        t
        o
        c
        c
        u
        r
        r
        e
        d
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.type = None
        """ 
        T
        h
        e
        n
        a
        t
        u
        r
        e
        o
        f
        t
        h
        e
        a
        c
        c
        i
        d
        e
        n
        t
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitAccident, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitAccident, self).elementProperties()
        js.extend([
            ("date", "date", fhirdate.FHIRDate, False, None, False),
            ("locationAddress", "locationAddress", address.Address, False, "location", False),
            ("locationReference", "locationReference", fhirreference.FHIRReference, False, "location", False),
            ("type", "type", codeableconcept.CodeableConcept, False, None, False),
        ])
        return js


class ExplanationOfBenefitAddItem(backboneelement.BackboneElement):
    """ 
    I
    n
    s
    u
    r
    e
    r
    a
    d
    d
    e
    d
    l
    i
    n
    e
    i
    t
    e
    m
    s
    .
    
    
    T
    h
    e
    f
    i
    r
    s
    t
    -
    t
    i
    e
    r
    s
    e
    r
    v
    i
    c
    e
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    s
    f
    o
    r
    p
    a
    y
    o
    r
    a
    d
    d
    e
    d
    p
    r
    o
    d
    u
    c
    t
    o
    r
    s
    e
    r
    v
    i
    c
    e
    l
    i
    n
    e
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitAddItem"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.adjudication = None
        """ 
        A
        d
        d
        e
        d
        i
        t
        e
        m
        s
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        .
        List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). """
        
        self.bodySite = None
        """ 
        A
        n
        a
        t
        o
        m
        i
        c
        a
        l
        l
        o
        c
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.detail = None
        """ 
        I
        n
        s
        u
        r
        e
        r
        a
        d
        d
        e
        d
        l
        i
        n
        e
        i
        t
        e
        m
        s
        .
        List of `ExplanationOfBenefitAddItemDetail` items (represented as `dict` in JSON). """
        
        self.detailSequence = None
        """ 
        D
        e
        t
        a
        i
        l
        s
        e
        q
        u
        e
        n
        c
        e
        n
        u
        m
        b
        e
        r
        .
        List of `int` items. """
        
        self.factor = None
        """ 
        P
        r
        i
        c
        e
        s
        c
        a
        l
        i
        n
        g
        f
        a
        c
        t
        o
        r
        .
        Type `float`. """
        
        self.itemSequence = None
        """ 
        I
        t
        e
        m
        s
        e
        q
        u
        e
        n
        c
        e
        n
        u
        m
        b
        e
        r
        .
        List of `int` items. """
        
        self.locationAddress = None
        """ 
        P
        l
        a
        c
        e
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        w
        h
        e
        r
        e
        p
        r
        o
        d
        u
        c
        t
        w
        a
        s
        s
        u
        p
        p
        l
        i
        e
        d
        .
        Type `Address` (represented as `dict` in JSON). """
        
        self.locationCodeableConcept = None
        """ 
        P
        l
        a
        c
        e
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        w
        h
        e
        r
        e
        p
        r
        o
        d
        u
        c
        t
        w
        a
        s
        s
        u
        p
        p
        l
        i
        e
        d
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.locationReference = None
        """ 
        P
        l
        a
        c
        e
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        w
        h
        e
        r
        e
        p
        r
        o
        d
        u
        c
        t
        w
        a
        s
        s
        u
        p
        p
        l
        i
        e
        d
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.modifier = None
        """ 
        S
        e
        r
        v
        i
        c
        e
        /
        P
        r
        o
        d
        u
        c
        t
        b
        i
        l
        l
        i
        n
        g
        m
        o
        d
        i
        f
        i
        e
        r
        s
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.net = None
        """ 
        T
        o
        t
        a
        l
        i
        t
        e
        m
        c
        o
        s
        t
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.noteNumber = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        n
        o
        t
        e
        n
        u
        m
        b
        e
        r
        s
        .
        List of `int` items. """
        
        self.productOrService = None
        """ 
        B
        i
        l
        l
        i
        n
        g
        ,
        s
        e
        r
        v
        i
        c
        e
        ,
        p
        r
        o
        d
        u
        c
        t
        ,
        o
        r
        d
        r
        u
        g
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.programCode = None
        """ 
        P
        r
        o
        g
        r
        a
        m
        t
        h
        e
        p
        r
        o
        d
        u
        c
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        i
        s
        p
        r
        o
        v
        i
        d
        e
        d
        u
        n
        d
        e
        r
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.provider = None
        """ 
        A
        u
        t
        h
        o
        r
        i
        z
        e
        d
        p
        r
        o
        v
        i
        d
        e
        r
        s
        .
        List of `FHIRReference` items (represented as `dict` in JSON). """
        
        self.quantity = None
        """ 
        C
        o
        u
        n
        t
        o
        f
        p
        r
        o
        d
        u
        c
        t
        s
        o
        r
        s
        e
        r
        v
        i
        c
        e
        s
        .
        Type `Quantity` (represented as `dict` in JSON). """
        
        self.servicedDate = None
        """ 
        D
        a
        t
        e
        o
        r
        d
        a
        t
        e
        s
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        p
        r
        o
        d
        u
        c
        t
        d
        e
        l
        i
        v
        e
        r
        y
        .
        Type `FHIRDate` (represented as `str` in JSON). """
        
        self.servicedPeriod = None
        """ 
        D
        a
        t
        e
        o
        r
        d
        a
        t
        e
        s
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        p
        r
        o
        d
        u
        c
        t
        d
        e
        l
        i
        v
        e
        r
        y
        .
        Type `Period` (represented as `dict` in JSON). """
        
        self.subDetailSequence = None
        """ 
        S
        u
        b
        d
        e
        t
        a
        i
        l
        s
        e
        q
        u
        e
        n
        c
        e
        n
        u
        m
        b
        e
        r
        .
        List of `int` items. """
        
        self.subSite = None
        """ 
        A
        n
        a
        t
        o
        m
        i
        c
        a
        l
        s
        u
        b
        -
        l
        o
        c
        a
        t
        i
        o
        n
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.unitPrice = None
        """ 
        F
        e
        e
        ,
        c
        h
        a
        r
        g
        e
        o
        r
        c
        o
        s
        t
        p
        e
        r
        i
        t
        e
        m
        .
        Type `Money` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitAddItem, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitAddItem, self).elementProperties()
        js.extend([
            ("adjudication", "adjudication", ExplanationOfBenefitItemAdjudication, True, None, False),
            ("bodySite", "bodySite", codeableconcept.CodeableConcept, False, None, False),
            ("detail", "detail", ExplanationOfBenefitAddItemDetail, True, None, False),
            ("detailSequence", "detailSequence", int, True, None, False),
            ("factor", "factor", float, False, None, False),
            ("itemSequence", "itemSequence", int, True, None, False),
            ("locationAddress", "locationAddress", address.Address, False, "location", False),
            ("locationCodeableConcept", "locationCodeableConcept", codeableconcept.CodeableConcept, False, "location", False),
            ("locationReference", "locationReference", fhirreference.FHIRReference, False, "location", False),
            ("modifier", "modifier", codeableconcept.CodeableConcept, True, None, False),
            ("net", "net", money.Money, False, None, False),
            ("noteNumber", "noteNumber", int, True, None, False),
            ("productOrService", "productOrService", codeableconcept.CodeableConcept, False, None, True),
            ("programCode", "programCode", codeableconcept.CodeableConcept, True, None, False),
            ("provider", "provider", fhirreference.FHIRReference, True, None, False),
            ("quantity", "quantity", quantity.Quantity, False, None, False),
            ("servicedDate", "servicedDate", fhirdate.FHIRDate, False, "serviced", False),
            ("servicedPeriod", "servicedPeriod", period.Period, False, "serviced", False),
            ("subDetailSequence", "subDetailSequence", int, True, None, False),
            ("subSite", "subSite", codeableconcept.CodeableConcept, True, None, False),
            ("unitPrice", "unitPrice", money.Money, False, None, False),
        ])
        return js


class ExplanationOfBenefitAddItemDetail(backboneelement.BackboneElement):
    """ 
    I
    n
    s
    u
    r
    e
    r
    a
    d
    d
    e
    d
    l
    i
    n
    e
    i
    t
    e
    m
    s
    .
    
    
    T
    h
    e
    s
    e
    c
    o
    n
    d
    -
    t
    i
    e
    r
    s
    e
    r
    v
    i
    c
    e
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    s
    f
    o
    r
    p
    a
    y
    o
    r
    a
    d
    d
    e
    d
    s
    e
    r
    v
    i
    c
    e
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitAddItemDetail"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.adjudication = None
        """ 
        A
        d
        d
        e
        d
        i
        t
        e
        m
        s
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        .
        List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). """
        
        self.factor = None
        """ 
        P
        r
        i
        c
        e
        s
        c
        a
        l
        i
        n
        g
        f
        a
        c
        t
        o
        r
        .
        Type `float`. """
        
        self.modifier = None
        """ 
        S
        e
        r
        v
        i
        c
        e
        /
        P
        r
        o
        d
        u
        c
        t
        b
        i
        l
        l
        i
        n
        g
        m
        o
        d
        i
        f
        i
        e
        r
        s
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.net = None
        """ 
        T
        o
        t
        a
        l
        i
        t
        e
        m
        c
        o
        s
        t
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.noteNumber = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        n
        o
        t
        e
        n
        u
        m
        b
        e
        r
        s
        .
        List of `int` items. """
        
        self.productOrService = None
        """ 
        B
        i
        l
        l
        i
        n
        g
        ,
        s
        e
        r
        v
        i
        c
        e
        ,
        p
        r
        o
        d
        u
        c
        t
        ,
        o
        r
        d
        r
        u
        g
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.quantity = None
        """ 
        C
        o
        u
        n
        t
        o
        f
        p
        r
        o
        d
        u
        c
        t
        s
        o
        r
        s
        e
        r
        v
        i
        c
        e
        s
        .
        Type `Quantity` (represented as `dict` in JSON). """
        
        self.subDetail = None
        """ 
        I
        n
        s
        u
        r
        e
        r
        a
        d
        d
        e
        d
        l
        i
        n
        e
        i
        t
        e
        m
        s
        .
        List of `ExplanationOfBenefitAddItemDetailSubDetail` items (represented as `dict` in JSON). """
        
        self.unitPrice = None
        """ 
        F
        e
        e
        ,
        c
        h
        a
        r
        g
        e
        o
        r
        c
        o
        s
        t
        p
        e
        r
        i
        t
        e
        m
        .
        Type `Money` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitAddItemDetail, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitAddItemDetail, self).elementProperties()
        js.extend([
            ("adjudication", "adjudication", ExplanationOfBenefitItemAdjudication, True, None, False),
            ("factor", "factor", float, False, None, False),
            ("modifier", "modifier", codeableconcept.CodeableConcept, True, None, False),
            ("net", "net", money.Money, False, None, False),
            ("noteNumber", "noteNumber", int, True, None, False),
            ("productOrService", "productOrService", codeableconcept.CodeableConcept, False, None, True),
            ("quantity", "quantity", quantity.Quantity, False, None, False),
            ("subDetail", "subDetail", ExplanationOfBenefitAddItemDetailSubDetail, True, None, False),
            ("unitPrice", "unitPrice", money.Money, False, None, False),
        ])
        return js


class ExplanationOfBenefitAddItemDetailSubDetail(backboneelement.BackboneElement):
    """ 
    I
    n
    s
    u
    r
    e
    r
    a
    d
    d
    e
    d
    l
    i
    n
    e
    i
    t
    e
    m
    s
    .
    
    
    T
    h
    e
    t
    h
    i
    r
    d
    -
    t
    i
    e
    r
    s
    e
    r
    v
    i
    c
    e
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    s
    f
    o
    r
    p
    a
    y
    o
    r
    a
    d
    d
    e
    d
    s
    e
    r
    v
    i
    c
    e
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitAddItemDetailSubDetail"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.adjudication = None
        """ 
        A
        d
        d
        e
        d
        i
        t
        e
        m
        s
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        .
        List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). """
        
        self.factor = None
        """ 
        P
        r
        i
        c
        e
        s
        c
        a
        l
        i
        n
        g
        f
        a
        c
        t
        o
        r
        .
        Type `float`. """
        
        self.modifier = None
        """ 
        S
        e
        r
        v
        i
        c
        e
        /
        P
        r
        o
        d
        u
        c
        t
        b
        i
        l
        l
        i
        n
        g
        m
        o
        d
        i
        f
        i
        e
        r
        s
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.net = None
        """ 
        T
        o
        t
        a
        l
        i
        t
        e
        m
        c
        o
        s
        t
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.noteNumber = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        n
        o
        t
        e
        n
        u
        m
        b
        e
        r
        s
        .
        List of `int` items. """
        
        self.productOrService = None
        """ 
        B
        i
        l
        l
        i
        n
        g
        ,
        s
        e
        r
        v
        i
        c
        e
        ,
        p
        r
        o
        d
        u
        c
        t
        ,
        o
        r
        d
        r
        u
        g
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.quantity = None
        """ 
        C
        o
        u
        n
        t
        o
        f
        p
        r
        o
        d
        u
        c
        t
        s
        o
        r
        s
        e
        r
        v
        i
        c
        e
        s
        .
        Type `Quantity` (represented as `dict` in JSON). """
        
        self.unitPrice = None
        """ 
        F
        e
        e
        ,
        c
        h
        a
        r
        g
        e
        o
        r
        c
        o
        s
        t
        p
        e
        r
        i
        t
        e
        m
        .
        Type `Money` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitAddItemDetailSubDetail, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitAddItemDetailSubDetail, self).elementProperties()
        js.extend([
            ("adjudication", "adjudication", ExplanationOfBenefitItemAdjudication, True, None, False),
            ("factor", "factor", float, False, None, False),
            ("modifier", "modifier", codeableconcept.CodeableConcept, True, None, False),
            ("net", "net", money.Money, False, None, False),
            ("noteNumber", "noteNumber", int, True, None, False),
            ("productOrService", "productOrService", codeableconcept.CodeableConcept, False, None, True),
            ("quantity", "quantity", quantity.Quantity, False, None, False),
            ("unitPrice", "unitPrice", money.Money, False, None, False),
        ])
        return js


class ExplanationOfBenefitBenefitBalance(backboneelement.BackboneElement):
    """ 
    B
    a
    l
    a
    n
    c
    e
    b
    y
    B
    e
    n
    e
    f
    i
    t
    C
    a
    t
    e
    g
    o
    r
    y
    .
    """
    
    resource_type = "ExplanationOfBenefitBenefitBalance"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.category = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        c
        l
        a
        s
        s
        i
        f
        i
        c
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.description = None
        """ 
        D
        e
        s
        c
        r
        i
        p
        t
        i
        o
        n
        o
        f
        t
        h
        e
        b
        e
        n
        e
        f
        i
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        s
        c
        o
        v
        e
        r
        e
        d
        .
        Type `str`. """
        
        self.excluded = None
        """ 
        E
        x
        c
        l
        u
        d
        e
        d
        f
        r
        o
        m
        t
        h
        e
        p
        l
        a
        n
        .
        Type `bool`. """
        
        self.financial = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        S
        u
        m
        m
        a
        r
        y
        .
        List of `ExplanationOfBenefitBenefitBalanceFinancial` items (represented as `dict` in JSON). """
        
        self.name = None
        """ 
        S
        h
        o
        r
        t
        n
        a
        m
        e
        f
        o
        r
        t
        h
        e
        b
        e
        n
        e
        f
        i
        t
        .
        Type `str`. """
        
        self.network = None
        """ 
        I
        n
        o
        r
        o
        u
        t
        o
        f
        n
        e
        t
        w
        o
        r
        k
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.term = None
        """ 
        A
        n
        n
        u
        a
        l
        o
        r
        l
        i
        f
        e
        t
        i
        m
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.unit = None
        """ 
        I
        n
        d
        i
        v
        i
        d
        u
        a
        l
        o
        r
        f
        a
        m
        i
        l
        y
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitBenefitBalance, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitBenefitBalance, self).elementProperties()
        js.extend([
            ("category", "category", codeableconcept.CodeableConcept, False, None, True),
            ("description", "description", str, False, None, False),
            ("excluded", "excluded", bool, False, None, False),
            ("financial", "financial", ExplanationOfBenefitBenefitBalanceFinancial, True, None, False),
            ("name", "name", str, False, None, False),
            ("network", "network", codeableconcept.CodeableConcept, False, None, False),
            ("term", "term", codeableconcept.CodeableConcept, False, None, False),
            ("unit", "unit", codeableconcept.CodeableConcept, False, None, False),
        ])
        return js


class ExplanationOfBenefitBenefitBalanceFinancial(backboneelement.BackboneElement):
    """ 
    B
    e
    n
    e
    f
    i
    t
    S
    u
    m
    m
    a
    r
    y
    .
    
    
    B
    e
    n
    e
    f
    i
    t
    s
    U
    s
    e
    d
    t
    o
    d
    a
    t
    e
    .
    
    """
    
    resource_type = "ExplanationOfBenefitBenefitBalanceFinancial"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.allowedMoney = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        s
        a
        l
        l
        o
        w
        e
        d
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.allowedString = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        s
        a
        l
        l
        o
        w
        e
        d
        .
        Type `str`. """
        
        self.allowedUnsignedInt = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        s
        a
        l
        l
        o
        w
        e
        d
        .
        Type `int`. """
        
        self.type = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        c
        l
        a
        s
        s
        i
        f
        i
        c
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.usedMoney = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        s
        u
        s
        e
        d
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.usedUnsignedInt = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        s
        u
        s
        e
        d
        .
        Type `int`. """
        
        super(ExplanationOfBenefitBenefitBalanceFinancial, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitBenefitBalanceFinancial, self).elementProperties()
        js.extend([
            ("allowedMoney", "allowedMoney", money.Money, False, "allowed", False),
            ("allowedString", "allowedString", str, False, "allowed", False),
            ("allowedUnsignedInt", "allowedUnsignedInt", int, False, "allowed", False),
            ("type", "type", codeableconcept.CodeableConcept, False, None, True),
            ("usedMoney", "usedMoney", money.Money, False, "used", False),
            ("usedUnsignedInt", "usedUnsignedInt", int, False, "used", False),
        ])
        return js


class ExplanationOfBenefitCareTeam(backboneelement.BackboneElement):
    """ 
    C
    a
    r
    e
    T
    e
    a
    m
    m
    e
    m
    b
    e
    r
    s
    .
    
    
    T
    h
    e
    m
    e
    m
    b
    e
    r
    s
    o
    f
    t
    h
    e
    t
    e
    a
    m
    w
    h
    o
    p
    r
    o
    v
    i
    d
    e
    d
    t
    h
    e
    p
    r
    o
    d
    u
    c
    t
    s
    a
    n
    d
    s
    e
    r
    v
    i
    c
    e
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitCareTeam"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.provider = None
        """ 
        P
        r
        a
        c
        t
        i
        t
        i
        o
        n
        e
        r
        o
        r
        o
        r
        g
        a
        n
        i
        z
        a
        t
        i
        o
        n
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.qualification = None
        """ 
        P
        r
        a
        c
        t
        i
        t
        i
        o
        n
        e
        r
        c
        r
        e
        d
        e
        n
        t
        i
        a
        l
        o
        r
        s
        p
        e
        c
        i
        a
        l
        i
        z
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.responsible = None
        """ 
        I
        n
        d
        i
        c
        a
        t
        o
        r
        o
        f
        t
        h
        e
        l
        e
        a
        d
        p
        r
        a
        c
        t
        i
        t
        i
        o
        n
        e
        r
        .
        Type `bool`. """
        
        self.role = None
        """ 
        F
        u
        n
        c
        t
        i
        o
        n
        w
        i
        t
        h
        i
        n
        t
        h
        e
        t
        e
        a
        m
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.sequence = None
        """ 
        O
        r
        d
        e
        r
        o
        f
        c
        a
        r
        e
        t
        e
        a
        m
        .
        Type `int`. """
        
        super(ExplanationOfBenefitCareTeam, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitCareTeam, self).elementProperties()
        js.extend([
            ("provider", "provider", fhirreference.FHIRReference, False, None, True),
            ("qualification", "qualification", codeableconcept.CodeableConcept, False, None, False),
            ("responsible", "responsible", bool, False, None, False),
            ("role", "role", codeableconcept.CodeableConcept, False, None, False),
            ("sequence", "sequence", int, False, None, True),
        ])
        return js


class ExplanationOfBenefitDiagnosis(backboneelement.BackboneElement):
    """ 
    P
    e
    r
    t
    i
    n
    e
    n
    t
    d
    i
    a
    g
    n
    o
    s
    i
    s
    i
    n
    f
    o
    r
    m
    a
    t
    i
    o
    n
    .
    
    
    I
    n
    f
    o
    r
    m
    a
    t
    i
    o
    n
    a
    b
    o
    u
    t
    d
    i
    a
    g
    n
    o
    s
    e
    s
    r
    e
    l
    e
    v
    a
    n
    t
    t
    o
    t
    h
    e
    c
    l
    a
    i
    m
    i
    t
    e
    m
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitDiagnosis"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.diagnosisCodeableConcept = None
        """ 
        N
        a
        t
        u
        r
        e
        o
        f
        i
        l
        l
        n
        e
        s
        s
        o
        r
        p
        r
        o
        b
        l
        e
        m
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.diagnosisReference = None
        """ 
        N
        a
        t
        u
        r
        e
        o
        f
        i
        l
        l
        n
        e
        s
        s
        o
        r
        p
        r
        o
        b
        l
        e
        m
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.onAdmission = None
        """ 
        P
        r
        e
        s
        e
        n
        t
        o
        n
        a
        d
        m
        i
        s
        s
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.packageCode = None
        """ 
        P
        a
        c
        k
        a
        g
        e
        b
        i
        l
        l
        i
        n
        g
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.sequence = None
        """ 
        D
        i
        a
        g
        n
        o
        s
        i
        s
        i
        n
        s
        t
        a
        n
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        Type `int`. """
        
        self.type = None
        """ 
        T
        i
        m
        i
        n
        g
        o
        r
        n
        a
        t
        u
        r
        e
        o
        f
        t
        h
        e
        d
        i
        a
        g
        n
        o
        s
        i
        s
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitDiagnosis, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitDiagnosis, self).elementProperties()
        js.extend([
            ("diagnosisCodeableConcept", "diagnosisCodeableConcept", codeableconcept.CodeableConcept, False, "diagnosis", True),
            ("diagnosisReference", "diagnosisReference", fhirreference.FHIRReference, False, "diagnosis", True),
            ("onAdmission", "onAdmission", codeableconcept.CodeableConcept, False, None, False),
            ("packageCode", "packageCode", codeableconcept.CodeableConcept, False, None, False),
            ("sequence", "sequence", int, False, None, True),
            ("type", "type", codeableconcept.CodeableConcept, True, None, False),
        ])
        return js


class ExplanationOfBenefitInsurance(backboneelement.BackboneElement):
    """ 
    P
    a
    t
    i
    e
    n
    t
    i
    n
    s
    u
    r
    a
    n
    c
    e
    i
    n
    f
    o
    r
    m
    a
    t
    i
    o
    n
    .
    
    
    F
    i
    n
    a
    n
    c
    i
    a
    l
    i
    n
    s
    t
    r
    u
    m
    e
    n
    t
    s
    f
    o
    r
    r
    e
    i
    m
    b
    u
    r
    s
    e
    m
    e
    n
    t
    f
    o
    r
    t
    h
    e
    h
    e
    a
    l
    t
    h
    c
    a
    r
    e
    p
    r
    o
    d
    u
    c
    t
    s
    a
    n
    d
    s
    e
    r
    v
    i
    c
    e
    s
    s
    p
    e
    c
    i
    f
    i
    e
    d
    o
    n
    t
    h
    e
    c
    l
    a
    i
    m
    .
    
    """
    
    resource_type = "ExplanationOfBenefitInsurance"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.coverage = None
        """ 
        I
        n
        s
        u
        r
        a
        n
        c
        e
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.focal = None
        """ 
        C
        o
        v
        e
        r
        a
        g
        e
        t
        o
        b
        e
        u
        s
        e
        d
        f
        o
        r
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        .
        Type `bool`. """
        
        self.preAuthRef = None
        """ 
        P
        r
        i
        o
        r
        a
        u
        t
        h
        o
        r
        i
        z
        a
        t
        i
        o
        n
        r
        e
        f
        e
        r
        e
        n
        c
        e
        n
        u
        m
        b
        e
        r
        .
        List of `str` items. """
        
        super(ExplanationOfBenefitInsurance, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitInsurance, self).elementProperties()
        js.extend([
            ("coverage", "coverage", fhirreference.FHIRReference, False, None, True),
            ("focal", "focal", bool, False, None, True),
            ("preAuthRef", "preAuthRef", str, True, None, False),
        ])
        return js


class ExplanationOfBenefitItem(backboneelement.BackboneElement):
    """ 
    P
    r
    o
    d
    u
    c
    t
    o
    r
    s
    e
    r
    v
    i
    c
    e
    p
    r
    o
    v
    i
    d
    e
    d
    .
    
    
    A
    c
    l
    a
    i
    m
    l
    i
    n
    e
    .
    E
    i
    t
    h
    e
    r
    a
    s
    i
    m
    p
    l
    e
    (
    a
    p
    r
    o
    d
    u
    c
    t
    o
    r
    s
    e
    r
    v
    i
    c
    e
    )
    o
    r
    a
    '
    g
    r
    o
    u
    p
    '
    o
    f
    d
    e
    t
    a
    i
    l
    s
    w
    h
    i
    c
    h
    c
    a
    n
    a
    l
    s
    o
    b
    e
    a
    s
    i
    m
    p
    l
    e
    i
    t
    e
    m
    s
    o
    r
    g
    r
    o
    u
    p
    s
    o
    f
    s
    u
    b
    -
    d
    e
    t
    a
    i
    l
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitItem"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.adjudication = None
        """ 
        A
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        d
        e
        t
        a
        i
        l
        s
        .
        List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). """
        
        self.bodySite = None
        """ 
        A
        n
        a
        t
        o
        m
        i
        c
        a
        l
        l
        o
        c
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.careTeamSequence = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        c
        a
        r
        e
        t
        e
        a
        m
        m
        e
        m
        b
        e
        r
        s
        .
        List of `int` items. """
        
        self.category = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        c
        l
        a
        s
        s
        i
        f
        i
        c
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.detail = None
        """ 
        A
        d
        d
        i
        t
        i
        o
        n
        a
        l
        i
        t
        e
        m
        s
        .
        List of `ExplanationOfBenefitItemDetail` items (represented as `dict` in JSON). """
        
        self.diagnosisSequence = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        d
        i
        a
        g
        n
        o
        s
        e
        s
        .
        List of `int` items. """
        
        self.encounter = None
        """ 
        E
        n
        c
        o
        u
        n
        t
        e
        r
        s
        r
        e
        l
        a
        t
        e
        d
        t
        o
        t
        h
        i
        s
        b
        i
        l
        l
        e
        d
        i
        t
        e
        m
        .
        List of `FHIRReference` items (represented as `dict` in JSON). """
        
        self.factor = None
        """ 
        P
        r
        i
        c
        e
        s
        c
        a
        l
        i
        n
        g
        f
        a
        c
        t
        o
        r
        .
        Type `float`. """
        
        self.informationSequence = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        e
        x
        c
        e
        p
        t
        i
        o
        n
        a
        n
        d
        s
        u
        p
        p
        o
        r
        t
        i
        n
        g
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        List of `int` items. """
        
        self.locationAddress = None
        """ 
        P
        l
        a
        c
        e
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        w
        h
        e
        r
        e
        p
        r
        o
        d
        u
        c
        t
        w
        a
        s
        s
        u
        p
        p
        l
        i
        e
        d
        .
        Type `Address` (represented as `dict` in JSON). """
        
        self.locationCodeableConcept = None
        """ 
        P
        l
        a
        c
        e
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        w
        h
        e
        r
        e
        p
        r
        o
        d
        u
        c
        t
        w
        a
        s
        s
        u
        p
        p
        l
        i
        e
        d
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.locationReference = None
        """ 
        P
        l
        a
        c
        e
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        w
        h
        e
        r
        e
        p
        r
        o
        d
        u
        c
        t
        w
        a
        s
        s
        u
        p
        p
        l
        i
        e
        d
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.modifier = None
        """ 
        P
        r
        o
        d
        u
        c
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        b
        i
        l
        l
        i
        n
        g
        m
        o
        d
        i
        f
        i
        e
        r
        s
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.net = None
        """ 
        T
        o
        t
        a
        l
        i
        t
        e
        m
        c
        o
        s
        t
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.noteNumber = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        n
        o
        t
        e
        n
        u
        m
        b
        e
        r
        s
        .
        List of `int` items. """
        
        self.procedureSequence = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        p
        r
        o
        c
        e
        d
        u
        r
        e
        s
        .
        List of `int` items. """
        
        self.productOrService = None
        """ 
        B
        i
        l
        l
        i
        n
        g
        ,
        s
        e
        r
        v
        i
        c
        e
        ,
        p
        r
        o
        d
        u
        c
        t
        ,
        o
        r
        d
        r
        u
        g
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.programCode = None
        """ 
        P
        r
        o
        g
        r
        a
        m
        t
        h
        e
        p
        r
        o
        d
        u
        c
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        i
        s
        p
        r
        o
        v
        i
        d
        e
        d
        u
        n
        d
        e
        r
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.quantity = None
        """ 
        C
        o
        u
        n
        t
        o
        f
        p
        r
        o
        d
        u
        c
        t
        s
        o
        r
        s
        e
        r
        v
        i
        c
        e
        s
        .
        Type `Quantity` (represented as `dict` in JSON). """
        
        self.revenue = None
        """ 
        R
        e
        v
        e
        n
        u
        e
        o
        r
        c
        o
        s
        t
        c
        e
        n
        t
        e
        r
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.sequence = None
        """ 
        I
        t
        e
        m
        i
        n
        s
        t
        a
        n
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        Type `int`. """
        
        self.servicedDate = None
        """ 
        D
        a
        t
        e
        o
        r
        d
        a
        t
        e
        s
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        p
        r
        o
        d
        u
        c
        t
        d
        e
        l
        i
        v
        e
        r
        y
        .
        Type `FHIRDate` (represented as `str` in JSON). """
        
        self.servicedPeriod = None
        """ 
        D
        a
        t
        e
        o
        r
        d
        a
        t
        e
        s
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        p
        r
        o
        d
        u
        c
        t
        d
        e
        l
        i
        v
        e
        r
        y
        .
        Type `Period` (represented as `dict` in JSON). """
        
        self.subSite = None
        """ 
        A
        n
        a
        t
        o
        m
        i
        c
        a
        l
        s
        u
        b
        -
        l
        o
        c
        a
        t
        i
        o
        n
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.udi = None
        """ 
        U
        n
        i
        q
        u
        e
        d
        e
        v
        i
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        List of `FHIRReference` items (represented as `dict` in JSON). """
        
        self.unitPrice = None
        """ 
        F
        e
        e
        ,
        c
        h
        a
        r
        g
        e
        o
        r
        c
        o
        s
        t
        p
        e
        r
        i
        t
        e
        m
        .
        Type `Money` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitItem, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitItem, self).elementProperties()
        js.extend([
            ("adjudication", "adjudication", ExplanationOfBenefitItemAdjudication, True, None, False),
            ("bodySite", "bodySite", codeableconcept.CodeableConcept, False, None, False),
            ("careTeamSequence", "careTeamSequence", int, True, None, False),
            ("category", "category", codeableconcept.CodeableConcept, False, None, False),
            ("detail", "detail", ExplanationOfBenefitItemDetail, True, None, False),
            ("diagnosisSequence", "diagnosisSequence", int, True, None, False),
            ("encounter", "encounter", fhirreference.FHIRReference, True, None, False),
            ("factor", "factor", float, False, None, False),
            ("informationSequence", "informationSequence", int, True, None, False),
            ("locationAddress", "locationAddress", address.Address, False, "location", False),
            ("locationCodeableConcept", "locationCodeableConcept", codeableconcept.CodeableConcept, False, "location", False),
            ("locationReference", "locationReference", fhirreference.FHIRReference, False, "location", False),
            ("modifier", "modifier", codeableconcept.CodeableConcept, True, None, False),
            ("net", "net", money.Money, False, None, False),
            ("noteNumber", "noteNumber", int, True, None, False),
            ("procedureSequence", "procedureSequence", int, True, None, False),
            ("productOrService", "productOrService", codeableconcept.CodeableConcept, False, None, True),
            ("programCode", "programCode", codeableconcept.CodeableConcept, True, None, False),
            ("quantity", "quantity", quantity.Quantity, False, None, False),
            ("revenue", "revenue", codeableconcept.CodeableConcept, False, None, False),
            ("sequence", "sequence", int, False, None, True),
            ("servicedDate", "servicedDate", fhirdate.FHIRDate, False, "serviced", False),
            ("servicedPeriod", "servicedPeriod", period.Period, False, "serviced", False),
            ("subSite", "subSite", codeableconcept.CodeableConcept, True, None, False),
            ("udi", "udi", fhirreference.FHIRReference, True, None, False),
            ("unitPrice", "unitPrice", money.Money, False, None, False),
        ])
        return js


class ExplanationOfBenefitItemAdjudication(backboneelement.BackboneElement):
    """ 
    A
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    d
    e
    t
    a
    i
    l
    s
    .
    
    
    I
    f
    t
    h
    i
    s
    i
    t
    e
    m
    i
    s
    a
    g
    r
    o
    u
    p
    t
    h
    e
    n
    t
    h
    e
    v
    a
    l
    u
    e
    s
    h
    e
    r
    e
    a
    r
    e
    a
    s
    u
    m
    m
    a
    r
    y
    o
    f
    t
    h
    e
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    o
    f
    t
    h
    e
    d
    e
    t
    a
    i
    l
    i
    t
    e
    m
    s
    .
    I
    f
    t
    h
    i
    s
    i
    t
    e
    m
    i
    s
    a
    s
    i
    m
    p
    l
    e
    p
    r
    o
    d
    u
    c
    t
    o
    r
    s
    e
    r
    v
    i
    c
    e
    t
    h
    e
    n
    t
    h
    i
    s
    i
    s
    t
    h
    e
    r
    e
    s
    u
    l
    t
    o
    f
    t
    h
    e
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    o
    f
    t
    h
    i
    s
    i
    t
    e
    m
    .
    
    """
    
    resource_type = "ExplanationOfBenefitItemAdjudication"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.amount = None
        """ 
        M
        o
        n
        e
        t
        a
        r
        y
        a
        m
        o
        u
        n
        t
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.category = None
        """ 
        T
        y
        p
        e
        o
        f
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.reason = None
        """ 
        E
        x
        p
        l
        a
        n
        a
        t
        i
        o
        n
        o
        f
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        o
        u
        t
        c
        o
        m
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.value = None
        """ 
        N
        o
        n
        -
        m
        o
        n
        i
        t
        a
        r
        y
        v
        a
        l
        u
        e
        .
        Type `float`. """
        
        super(ExplanationOfBenefitItemAdjudication, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitItemAdjudication, self).elementProperties()
        js.extend([
            ("amount", "amount", money.Money, False, None, False),
            ("category", "category", codeableconcept.CodeableConcept, False, None, True),
            ("reason", "reason", codeableconcept.CodeableConcept, False, None, False),
            ("value", "value", float, False, None, False),
        ])
        return js


class ExplanationOfBenefitItemDetail(backboneelement.BackboneElement):
    """ 
    A
    d
    d
    i
    t
    i
    o
    n
    a
    l
    i
    t
    e
    m
    s
    .
    
    
    S
    e
    c
    o
    n
    d
    -
    t
    i
    e
    r
    o
    f
    g
    o
    o
    d
    s
    a
    n
    d
    s
    e
    r
    v
    i
    c
    e
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitItemDetail"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.adjudication = None
        """ 
        D
        e
        t
        a
        i
        l
        l
        e
        v
        e
        l
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        d
        e
        t
        a
        i
        l
        s
        .
        List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). """
        
        self.category = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        c
        l
        a
        s
        s
        i
        f
        i
        c
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.factor = None
        """ 
        P
        r
        i
        c
        e
        s
        c
        a
        l
        i
        n
        g
        f
        a
        c
        t
        o
        r
        .
        Type `float`. """
        
        self.modifier = None
        """ 
        S
        e
        r
        v
        i
        c
        e
        /
        P
        r
        o
        d
        u
        c
        t
        b
        i
        l
        l
        i
        n
        g
        m
        o
        d
        i
        f
        i
        e
        r
        s
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.net = None
        """ 
        T
        o
        t
        a
        l
        i
        t
        e
        m
        c
        o
        s
        t
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.noteNumber = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        n
        o
        t
        e
        n
        u
        m
        b
        e
        r
        s
        .
        List of `int` items. """
        
        self.productOrService = None
        """ 
        B
        i
        l
        l
        i
        n
        g
        ,
        s
        e
        r
        v
        i
        c
        e
        ,
        p
        r
        o
        d
        u
        c
        t
        ,
        o
        r
        d
        r
        u
        g
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.programCode = None
        """ 
        P
        r
        o
        g
        r
        a
        m
        t
        h
        e
        p
        r
        o
        d
        u
        c
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        i
        s
        p
        r
        o
        v
        i
        d
        e
        d
        u
        n
        d
        e
        r
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.quantity = None
        """ 
        C
        o
        u
        n
        t
        o
        f
        p
        r
        o
        d
        u
        c
        t
        s
        o
        r
        s
        e
        r
        v
        i
        c
        e
        s
        .
        Type `Quantity` (represented as `dict` in JSON). """
        
        self.revenue = None
        """ 
        R
        e
        v
        e
        n
        u
        e
        o
        r
        c
        o
        s
        t
        c
        e
        n
        t
        e
        r
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.sequence = None
        """ 
        P
        r
        o
        d
        u
        c
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        p
        r
        o
        v
        i
        d
        e
        d
        .
        Type `int`. """
        
        self.subDetail = None
        """ 
        A
        d
        d
        i
        t
        i
        o
        n
        a
        l
        i
        t
        e
        m
        s
        .
        List of `ExplanationOfBenefitItemDetailSubDetail` items (represented as `dict` in JSON). """
        
        self.udi = None
        """ 
        U
        n
        i
        q
        u
        e
        d
        e
        v
        i
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        List of `FHIRReference` items (represented as `dict` in JSON). """
        
        self.unitPrice = None
        """ 
        F
        e
        e
        ,
        c
        h
        a
        r
        g
        e
        o
        r
        c
        o
        s
        t
        p
        e
        r
        i
        t
        e
        m
        .
        Type `Money` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitItemDetail, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitItemDetail, self).elementProperties()
        js.extend([
            ("adjudication", "adjudication", ExplanationOfBenefitItemAdjudication, True, None, False),
            ("category", "category", codeableconcept.CodeableConcept, False, None, False),
            ("factor", "factor", float, False, None, False),
            ("modifier", "modifier", codeableconcept.CodeableConcept, True, None, False),
            ("net", "net", money.Money, False, None, False),
            ("noteNumber", "noteNumber", int, True, None, False),
            ("productOrService", "productOrService", codeableconcept.CodeableConcept, False, None, True),
            ("programCode", "programCode", codeableconcept.CodeableConcept, True, None, False),
            ("quantity", "quantity", quantity.Quantity, False, None, False),
            ("revenue", "revenue", codeableconcept.CodeableConcept, False, None, False),
            ("sequence", "sequence", int, False, None, True),
            ("subDetail", "subDetail", ExplanationOfBenefitItemDetailSubDetail, True, None, False),
            ("udi", "udi", fhirreference.FHIRReference, True, None, False),
            ("unitPrice", "unitPrice", money.Money, False, None, False),
        ])
        return js


class ExplanationOfBenefitItemDetailSubDetail(backboneelement.BackboneElement):
    """ 
    A
    d
    d
    i
    t
    i
    o
    n
    a
    l
    i
    t
    e
    m
    s
    .
    
    
    T
    h
    i
    r
    d
    -
    t
    i
    e
    r
    o
    f
    g
    o
    o
    d
    s
    a
    n
    d
    s
    e
    r
    v
    i
    c
    e
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitItemDetailSubDetail"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.adjudication = None
        """ 
        S
        u
        b
        d
        e
        t
        a
        i
        l
        l
        e
        v
        e
        l
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        d
        e
        t
        a
        i
        l
        s
        .
        List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). """
        
        self.category = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        c
        l
        a
        s
        s
        i
        f
        i
        c
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.factor = None
        """ 
        P
        r
        i
        c
        e
        s
        c
        a
        l
        i
        n
        g
        f
        a
        c
        t
        o
        r
        .
        Type `float`. """
        
        self.modifier = None
        """ 
        S
        e
        r
        v
        i
        c
        e
        /
        P
        r
        o
        d
        u
        c
        t
        b
        i
        l
        l
        i
        n
        g
        m
        o
        d
        i
        f
        i
        e
        r
        s
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.net = None
        """ 
        T
        o
        t
        a
        l
        i
        t
        e
        m
        c
        o
        s
        t
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.noteNumber = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        n
        o
        t
        e
        n
        u
        m
        b
        e
        r
        s
        .
        List of `int` items. """
        
        self.productOrService = None
        """ 
        B
        i
        l
        l
        i
        n
        g
        ,
        s
        e
        r
        v
        i
        c
        e
        ,
        p
        r
        o
        d
        u
        c
        t
        ,
        o
        r
        d
        r
        u
        g
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.programCode = None
        """ 
        P
        r
        o
        g
        r
        a
        m
        t
        h
        e
        p
        r
        o
        d
        u
        c
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        i
        s
        p
        r
        o
        v
        i
        d
        e
        d
        u
        n
        d
        e
        r
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.quantity = None
        """ 
        C
        o
        u
        n
        t
        o
        f
        p
        r
        o
        d
        u
        c
        t
        s
        o
        r
        s
        e
        r
        v
        i
        c
        e
        s
        .
        Type `Quantity` (represented as `dict` in JSON). """
        
        self.revenue = None
        """ 
        R
        e
        v
        e
        n
        u
        e
        o
        r
        c
        o
        s
        t
        c
        e
        n
        t
        e
        r
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.sequence = None
        """ 
        P
        r
        o
        d
        u
        c
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        p
        r
        o
        v
        i
        d
        e
        d
        .
        Type `int`. """
        
        self.udi = None
        """ 
        U
        n
        i
        q
        u
        e
        d
        e
        v
        i
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        List of `FHIRReference` items (represented as `dict` in JSON). """
        
        self.unitPrice = None
        """ 
        F
        e
        e
        ,
        c
        h
        a
        r
        g
        e
        o
        r
        c
        o
        s
        t
        p
        e
        r
        i
        t
        e
        m
        .
        Type `Money` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitItemDetailSubDetail, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitItemDetailSubDetail, self).elementProperties()
        js.extend([
            ("adjudication", "adjudication", ExplanationOfBenefitItemAdjudication, True, None, False),
            ("category", "category", codeableconcept.CodeableConcept, False, None, False),
            ("factor", "factor", float, False, None, False),
            ("modifier", "modifier", codeableconcept.CodeableConcept, True, None, False),
            ("net", "net", money.Money, False, None, False),
            ("noteNumber", "noteNumber", int, True, None, False),
            ("productOrService", "productOrService", codeableconcept.CodeableConcept, False, None, True),
            ("programCode", "programCode", codeableconcept.CodeableConcept, True, None, False),
            ("quantity", "quantity", quantity.Quantity, False, None, False),
            ("revenue", "revenue", codeableconcept.CodeableConcept, False, None, False),
            ("sequence", "sequence", int, False, None, True),
            ("udi", "udi", fhirreference.FHIRReference, True, None, False),
            ("unitPrice", "unitPrice", money.Money, False, None, False),
        ])
        return js


class ExplanationOfBenefitPayee(backboneelement.BackboneElement):
    """ 
    R
    e
    c
    i
    p
    i
    e
    n
    t
    o
    f
    b
    e
    n
    e
    f
    i
    t
    s
    p
    a
    y
    a
    b
    l
    e
    .
    
    
    T
    h
    e
    p
    a
    r
    t
    y
    t
    o
    b
    e
    r
    e
    i
    m
    b
    u
    r
    s
    e
    d
    f
    o
    r
    c
    o
    s
    t
    o
    f
    t
    h
    e
    p
    r
    o
    d
    u
    c
    t
    s
    a
    n
    d
    s
    e
    r
    v
    i
    c
    e
    s
    a
    c
    c
    o
    r
    d
    i
    n
    g
    t
    o
    t
    h
    e
    t
    e
    r
    m
    s
    o
    f
    t
    h
    e
    p
    o
    l
    i
    c
    y
    .
    
    """
    
    resource_type = "ExplanationOfBenefitPayee"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.party = None
        """ 
        R
        e
        c
        i
        p
        i
        e
        n
        t
        r
        e
        f
        e
        r
        e
        n
        c
        e
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.type = None
        """ 
        C
        a
        t
        e
        g
        o
        r
        y
        o
        f
        r
        e
        c
        i
        p
        i
        e
        n
        t
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitPayee, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitPayee, self).elementProperties()
        js.extend([
            ("party", "party", fhirreference.FHIRReference, False, None, False),
            ("type", "type", codeableconcept.CodeableConcept, False, None, False),
        ])
        return js


class ExplanationOfBenefitPayment(backboneelement.BackboneElement):
    """ 
    P
    a
    y
    m
    e
    n
    t
    D
    e
    t
    a
    i
    l
    s
    .
    
    
    P
    a
    y
    m
    e
    n
    t
    d
    e
    t
    a
    i
    l
    s
    f
    o
    r
    t
    h
    e
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    o
    f
    t
    h
    e
    c
    l
    a
    i
    m
    .
    
    """
    
    resource_type = "ExplanationOfBenefitPayment"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.adjustment = None
        """ 
        P
        a
        y
        m
        e
        n
        t
        a
        d
        j
        u
        s
        t
        m
        e
        n
        t
        f
        o
        r
        n
        o
        n
        -
        c
        l
        a
        i
        m
        i
        s
        s
        u
        e
        s
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.adjustmentReason = None
        """ 
        E
        x
        p
        l
        a
        n
        a
        t
        i
        o
        n
        f
        o
        r
        t
        h
        e
        v
        a
        r
        i
        a
        n
        c
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.amount = None
        """ 
        P
        a
        y
        a
        b
        l
        e
        a
        m
        o
        u
        n
        t
        a
        f
        t
        e
        r
        a
        d
        j
        u
        s
        t
        m
        e
        n
        t
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.date = None
        """ 
        E
        x
        p
        e
        c
        t
        e
        d
        d
        a
        t
        e
        o
        f
        p
        a
        y
        m
        e
        n
        t
        .
        Type `FHIRDate` (represented as `str` in JSON). """
        
        self.identifier = None
        """ 
        B
        u
        s
        i
        n
        e
        s
        s
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        f
        o
        r
        t
        h
        e
        p
        a
        y
        m
        e
        n
        t
        .
        Type `Identifier` (represented as `dict` in JSON). """
        
        self.type = None
        """ 
        P
        a
        r
        t
        i
        a
        l
        o
        r
        c
        o
        m
        p
        l
        e
        t
        e
        p
        a
        y
        m
        e
        n
        t
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitPayment, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitPayment, self).elementProperties()
        js.extend([
            ("adjustment", "adjustment", money.Money, False, None, False),
            ("adjustmentReason", "adjustmentReason", codeableconcept.CodeableConcept, False, None, False),
            ("amount", "amount", money.Money, False, None, False),
            ("date", "date", fhirdate.FHIRDate, False, None, False),
            ("identifier", "identifier", identifier.Identifier, False, None, False),
            ("type", "type", codeableconcept.CodeableConcept, False, None, False),
        ])
        return js


class ExplanationOfBenefitProcedure(backboneelement.BackboneElement):
    """ 
    C
    l
    i
    n
    i
    c
    a
    l
    p
    r
    o
    c
    e
    d
    u
    r
    e
    s
    p
    e
    r
    f
    o
    r
    m
    e
    d
    .
    
    
    P
    r
    o
    c
    e
    d
    u
    r
    e
    s
    p
    e
    r
    f
    o
    r
    m
    e
    d
    o
    n
    t
    h
    e
    p
    a
    t
    i
    e
    n
    t
    r
    e
    l
    e
    v
    a
    n
    t
    t
    o
    t
    h
    e
    b
    i
    l
    l
    i
    n
    g
    i
    t
    e
    m
    s
    w
    i
    t
    h
    t
    h
    e
    c
    l
    a
    i
    m
    .
    
    """
    
    resource_type = "ExplanationOfBenefitProcedure"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.date = None
        """ 
        W
        h
        e
        n
        t
        h
        e
        p
        r
        o
        c
        e
        d
        u
        r
        e
        w
        a
        s
        p
        e
        r
        f
        o
        r
        m
        e
        d
        .
        Type `FHIRDate` (represented as `str` in JSON). """
        
        self.procedureCodeableConcept = None
        """ 
        S
        p
        e
        c
        i
        f
        i
        c
        c
        l
        i
        n
        i
        c
        a
        l
        p
        r
        o
        c
        e
        d
        u
        r
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.procedureReference = None
        """ 
        S
        p
        e
        c
        i
        f
        i
        c
        c
        l
        i
        n
        i
        c
        a
        l
        p
        r
        o
        c
        e
        d
        u
        r
        e
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.sequence = None
        """ 
        P
        r
        o
        c
        e
        d
        u
        r
        e
        i
        n
        s
        t
        a
        n
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        Type `int`. """
        
        self.type = None
        """ 
        C
        a
        t
        e
        g
        o
        r
        y
        o
        f
        P
        r
        o
        c
        e
        d
        u
        r
        e
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.udi = None
        """ 
        U
        n
        i
        q
        u
        e
        d
        e
        v
        i
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        List of `FHIRReference` items (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitProcedure, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitProcedure, self).elementProperties()
        js.extend([
            ("date", "date", fhirdate.FHIRDate, False, None, False),
            ("procedureCodeableConcept", "procedureCodeableConcept", codeableconcept.CodeableConcept, False, "procedure", True),
            ("procedureReference", "procedureReference", fhirreference.FHIRReference, False, "procedure", True),
            ("sequence", "sequence", int, False, None, True),
            ("type", "type", codeableconcept.CodeableConcept, True, None, False),
            ("udi", "udi", fhirreference.FHIRReference, True, None, False),
        ])
        return js


class ExplanationOfBenefitProcessNote(backboneelement.BackboneElement):
    """ 
    N
    o
    t
    e
    c
    o
    n
    c
    e
    r
    n
    i
    n
    g
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    .
    
    
    A
    n
    o
    t
    e
    t
    h
    a
    t
    d
    e
    s
    c
    r
    i
    b
    e
    s
    o
    r
    e
    x
    p
    l
    a
    i
    n
    s
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    r
    e
    s
    u
    l
    t
    s
    i
    n
    a
    h
    u
    m
    a
    n
    r
    e
    a
    d
    a
    b
    l
    e
    f
    o
    r
    m
    .
    
    """
    
    resource_type = "ExplanationOfBenefitProcessNote"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.language = None
        """ 
        L
        a
        n
        g
        u
        a
        g
        e
        o
        f
        t
        h
        e
        t
        e
        x
        t
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.number = None
        """ 
        N
        o
        t
        e
        i
        n
        s
        t
        a
        n
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        Type `int`. """
        
        self.text = None
        """ 
        N
        o
        t
        e
        e
        x
        p
        l
        a
        n
        a
        t
        o
        r
        y
        t
        e
        x
        t
        .
        Type `str`. """
        
        self.type = None
        """ 
        d
        i
        s
        p
        l
        a
        y
        |
        p
        r
        i
        n
        t
        |
        p
        r
        i
        n
        t
        o
        p
        e
        r
        .
        Type `str`. """
        
        super(ExplanationOfBenefitProcessNote, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitProcessNote, self).elementProperties()
        js.extend([
            ("language", "language", codeableconcept.CodeableConcept, False, None, False),
            ("number", "number", int, False, None, False),
            ("text", "text", str, False, None, False),
            ("type", "type", str, False, None, False),
        ])
        return js


class ExplanationOfBenefitRelated(backboneelement.BackboneElement):
    """ 
    P
    r
    i
    o
    r
    o
    r
    c
    o
    r
    o
    l
    l
    a
    r
    y
    c
    l
    a
    i
    m
    s
    .
    
    
    O
    t
    h
    e
    r
    c
    l
    a
    i
    m
    s
    w
    h
    i
    c
    h
    a
    r
    e
    r
    e
    l
    a
    t
    e
    d
    t
    o
    t
    h
    i
    s
    c
    l
    a
    i
    m
    s
    u
    c
    h
    a
    s
    p
    r
    i
    o
    r
    s
    u
    b
    m
    i
    s
    s
    i
    o
    n
    s
    o
    r
    c
    l
    a
    i
    m
    s
    f
    o
    r
    r
    e
    l
    a
    t
    e
    d
    s
    e
    r
    v
    i
    c
    e
    s
    o
    r
    f
    o
    r
    t
    h
    e
    s
    a
    m
    e
    e
    v
    e
    n
    t
    .
    
    """
    
    resource_type = "ExplanationOfBenefitRelated"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.claim = None
        """ 
        R
        e
        f
        e
        r
        e
        n
        c
        e
        t
        o
        t
        h
        e
        r
        e
        l
        a
        t
        e
        d
        c
        l
        a
        i
        m
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.reference = None
        """ 
        F
        i
        l
        e
        o
        r
        c
        a
        s
        e
        r
        e
        f
        e
        r
        e
        n
        c
        e
        .
        Type `Identifier` (represented as `dict` in JSON). """
        
        self.relationship = None
        """ 
        H
        o
        w
        t
        h
        e
        r
        e
        f
        e
        r
        e
        n
        c
        e
        c
        l
        a
        i
        m
        i
        s
        r
        e
        l
        a
        t
        e
        d
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitRelated, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitRelated, self).elementProperties()
        js.extend([
            ("claim", "claim", fhirreference.FHIRReference, False, None, False),
            ("reference", "reference", identifier.Identifier, False, None, False),
            ("relationship", "relationship", codeableconcept.CodeableConcept, False, None, False),
        ])
        return js


class ExplanationOfBenefitSupportingInfo(backboneelement.BackboneElement):
    """ 
    S
    u
    p
    p
    o
    r
    t
    i
    n
    g
    i
    n
    f
    o
    r
    m
    a
    t
    i
    o
    n
    .
    
    
    A
    d
    d
    i
    t
    i
    o
    n
    a
    l
    i
    n
    f
    o
    r
    m
    a
    t
    i
    o
    n
    c
    o
    d
    e
    s
    r
    e
    g
    a
    r
    d
    i
    n
    g
    e
    x
    c
    e
    p
    t
    i
    o
    n
    s
    ,
    s
    p
    e
    c
    i
    a
    l
    c
    o
    n
    s
    i
    d
    e
    r
    a
    t
    i
    o
    n
    s
    ,
    t
    h
    e
    c
    o
    n
    d
    i
    t
    i
    o
    n
    ,
    s
    i
    t
    u
    a
    t
    i
    o
    n
    ,
    p
    r
    i
    o
    r
    o
    r
    c
    o
    n
    c
    u
    r
    r
    e
    n
    t
    i
    s
    s
    u
    e
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitSupportingInfo"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.category = None
        """ 
        C
        l
        a
        s
        s
        i
        f
        i
        c
        a
        t
        i
        o
        n
        o
        f
        t
        h
        e
        s
        u
        p
        p
        l
        i
        e
        d
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.code = None
        """ 
        T
        y
        p
        e
        o
        f
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.reason = None
        """ 
        E
        x
        p
        l
        a
        n
        a
        t
        i
        o
        n
        f
        o
        r
        t
        h
        e
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        Type `Coding` (represented as `dict` in JSON). """
        
        self.sequence = None
        """ 
        I
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        i
        n
        s
        t
        a
        n
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        Type `int`. """
        
        self.timingDate = None
        """ 
        W
        h
        e
        n
        i
        t
        o
        c
        c
        u
        r
        r
        e
        d
        .
        Type `FHIRDate` (represented as `str` in JSON). """
        
        self.timingPeriod = None
        """ 
        W
        h
        e
        n
        i
        t
        o
        c
        c
        u
        r
        r
        e
        d
        .
        Type `Period` (represented as `dict` in JSON). """
        
        self.valueAttachment = None
        """ 
        D
        a
        t
        a
        t
        o
        b
        e
        p
        r
        o
        v
        i
        d
        e
        d
        .
        Type `Attachment` (represented as `dict` in JSON). """
        
        self.valueBoolean = None
        """ 
        D
        a
        t
        a
        t
        o
        b
        e
        p
        r
        o
        v
        i
        d
        e
        d
        .
        Type `bool`. """
        
        self.valueQuantity = None
        """ 
        D
        a
        t
        a
        t
        o
        b
        e
        p
        r
        o
        v
        i
        d
        e
        d
        .
        Type `Quantity` (represented as `dict` in JSON). """
        
        self.valueReference = None
        """ 
        D
        a
        t
        a
        t
        o
        b
        e
        p
        r
        o
        v
        i
        d
        e
        d
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.valueString = None
        """ 
        D
        a
        t
        a
        t
        o
        b
        e
        p
        r
        o
        v
        i
        d
        e
        d
        .
        Type `str`. """
        
        super(ExplanationOfBenefitSupportingInfo, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitSupportingInfo, self).elementProperties()
        js.extend([
            ("category", "category", codeableconcept.CodeableConcept, False, None, True),
            ("code", "code", codeableconcept.CodeableConcept, False, None, False),
            ("reason", "reason", coding.Coding, False, None, False),
            ("sequence", "sequence", int, False, None, True),
            ("timingDate", "timingDate", fhirdate.FHIRDate, False, "timing", False),
            ("timingPeriod", "timingPeriod", period.Period, False, "timing", False),
            ("valueAttachment", "valueAttachment", attachment.Attachment, False, "value", False),
            ("valueBoolean", "valueBoolean", bool, False, "value", False),
            ("valueQuantity", "valueQuantity", quantity.Quantity, False, "value", False),
            ("valueReference", "valueReference", fhirreference.FHIRReference, False, "value", False),
            ("valueString", "valueString", str, False, "value", False),
        ])
        return js


class ExplanationOfBenefitTotal(backboneelement.BackboneElement):
    """ 
    A
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    t
    o
    t
    a
    l
    s
    .
    
    
    C
    a
    t
    e
    g
    o
    r
    i
    z
    e
    d
    m
    o
    n
    e
    t
    a
    r
    y
    t
    o
    t
    a
    l
    s
    f
    o
    r
    t
    h
    e
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    .
    
    """
    
    resource_type = "ExplanationOfBenefitTotal"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.amount = None
        """ 
        F
        i
        n
        a
        n
        c
        i
        a
        l
        t
        o
        t
        a
        l
        f
        o
        r
        t
        h
        e
        c
        a
        t
        e
        g
        o
        r
        y
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.category = None
        """ 
        T
        y
        p
        e
        o
        f
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitTotal, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitTotal, self).elementProperties()
        js.extend([
            ("amount", "amount", money.Money, False, None, True),
            ("category", "category", codeableconcept.CodeableConcept, False, None, True),
        ])
        return js


import sys
try:
    from . import address
except ImportError:
    address = sys.modules[__package__ + '.address']
try:
    from . import attachment
except ImportError:
    attachment = sys.modules[__package__ + '.attachment']
try:
    from . import codeableconcept
except ImportError:
    codeableconcept = sys.modules[__package__ + '.codeableconcept']
try:
    from . import coding
except ImportError:
    coding = sys.modules[__package__ + '.coding']
try:
    from . import fhirdate
except ImportError:
    fhirdate = sys.modules[__package__ + '.fhirdate']
try:
    from . import fhirreference
except ImportError:
    fhirreference = sys.modules[__package__ + '.fhirreference']
try:
    from . import identifier
except ImportError:
    identifier = sys.modules[__package__ + '.identifier']
try:
    from . import money
except ImportError:
    money = sys.modules[__package__ + '.money']
try:
    from . import period
except ImportError:
    period = sys.modules[__package__ + '.period']
try:
    from . import quantity
except ImportError:
    quantity = sys.modules[__package__ + '.quantity']

#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#  Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit) on 2019-01-22.
#  2019, SMART Health IT.


from . import domainresource

class ExplanationOfBenefit(domainresource.DomainResource):
    """ 
    E
    x
    p
    l
    a
    n
    a
    t
    i
    o
    n
    o
    f
    B
    e
    n
    e
    f
    i
    t
    r
    e
    s
    o
    u
    r
    c
    e
    .
    
    
    T
    h
    i
    s
    r
    e
    s
    o
    u
    r
    c
    e
    p
    r
    o
    v
    i
    d
    e
    s
    :
    t
    h
    e
    c
    l
    a
    i
    m
    d
    e
    t
    a
    i
    l
    s
    ;
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    d
    e
    t
    a
    i
    l
    s
    f
    r
    o
    m
    t
    h
    e
    p
    r
    o
    c
    e
    s
    s
    i
    n
    g
    o
    f
    a
    C
    l
    a
    i
    m
    ;
    a
    n
    d
    o
    p
    t
    i
    o
    n
    a
    l
    l
    y
    a
    c
    c
    o
    u
    n
    t
    b
    a
    l
    a
    n
    c
    e
    i
    n
    f
    o
    r
    m
    a
    t
    i
    o
    n
    ,
    f
    o
    r
    i
    n
    f
    o
    r
    m
    i
    n
    g
    t
    h
    e
    s
    u
    b
    s
    c
    r
    i
    b
    e
    r
    o
    f
    t
    h
    e
    b
    e
    n
    e
    f
    i
    t
    s
    p
    r
    o
    v
    i
    d
    e
    d
    .
    
    """
    
    resource_type = "ExplanationOfBenefit"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.accident = None
        """ 
        D
        e
        t
        a
        i
        l
        s
        o
        f
        t
        h
        e
        e
        v
        e
        n
        t
        .
        Type `ExplanationOfBenefitAccident` (represented as `dict` in JSON). """
        
        self.addItem = None
        """ 
        I
        n
        s
        u
        r
        e
        r
        a
        d
        d
        e
        d
        l
        i
        n
        e
        i
        t
        e
        m
        s
        .
        List of `ExplanationOfBenefitAddItem` items (represented as `dict` in JSON). """
        
        self.adjudication = None
        """ 
        H
        e
        a
        d
        e
        r
        -
        l
        e
        v
        e
        l
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        .
        List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). """
        
        self.benefitBalance = None
        """ 
        B
        a
        l
        a
        n
        c
        e
        b
        y
        B
        e
        n
        e
        f
        i
        t
        C
        a
        t
        e
        g
        o
        r
        y
        .
        List of `ExplanationOfBenefitBenefitBalance` items (represented as `dict` in JSON). """
        
        self.benefitPeriod = None
        """ 
        W
        h
        e
        n
        t
        h
        e
        b
        e
        n
        e
        f
        i
        t
        s
        a
        r
        e
        a
        p
        p
        l
        i
        c
        a
        b
        l
        e
        .
        Type `Period` (represented as `dict` in JSON). """
        
        self.billablePeriod = None
        """ 
        R
        e
        l
        e
        v
        a
        n
        t
        t
        i
        m
        e
        f
        r
        a
        m
        e
        f
        o
        r
        t
        h
        e
        c
        l
        a
        i
        m
        .
        Type `Period` (represented as `dict` in JSON). """
        
        self.careTeam = None
        """ 
        C
        a
        r
        e
        T
        e
        a
        m
        m
        e
        m
        b
        e
        r
        s
        .
        List of `ExplanationOfBenefitCareTeam` items (represented as `dict` in JSON). """
        
        self.claim = None
        """ 
        C
        l
        a
        i
        m
        r
        e
        f
        e
        r
        e
        n
        c
        e
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.claimResponse = None
        """ 
        C
        l
        a
        i
        m
        r
        e
        s
        p
        o
        n
        s
        e
        r
        e
        f
        e
        r
        e
        n
        c
        e
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.created = None
        """ 
        R
        e
        s
        p
        o
        n
        s
        e
        c
        r
        e
        a
        t
        i
        o
        n
        d
        a
        t
        e
        .
        Type `FHIRDate` (represented as `str` in JSON). """
        
        self.diagnosis = None
        """ 
        P
        e
        r
        t
        i
        n
        e
        n
        t
        d
        i
        a
        g
        n
        o
        s
        i
        s
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        List of `ExplanationOfBenefitDiagnosis` items (represented as `dict` in JSON). """
        
        self.disposition = None
        """ 
        D
        i
        s
        p
        o
        s
        i
        t
        i
        o
        n
        M
        e
        s
        s
        a
        g
        e
        .
        Type `str`. """
        
        self.enterer = None
        """ 
        A
        u
        t
        h
        o
        r
        o
        f
        t
        h
        e
        c
        l
        a
        i
        m
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.facility = None
        """ 
        S
        e
        r
        v
        i
        c
        i
        n
        g
        F
        a
        c
        i
        l
        i
        t
        y
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.form = None
        """ 
        P
        r
        i
        n
        t
        e
        d
        r
        e
        f
        e
        r
        e
        n
        c
        e
        o
        r
        a
        c
        t
        u
        a
        l
        f
        o
        r
        m
        .
        Type `Attachment` (represented as `dict` in JSON). """
        
        self.formCode = None
        """ 
        P
        r
        i
        n
        t
        e
        d
        f
        o
        r
        m
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.fundsReserve = None
        """ 
        F
        u
        n
        d
        s
        r
        e
        s
        e
        r
        v
        e
        d
        s
        t
        a
        t
        u
        s
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.fundsReserveRequested = None
        """ 
        F
        o
        r
        w
        h
        o
        m
        t
        o
        r
        e
        s
        e
        r
        v
        e
        f
        u
        n
        d
        s
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.identifier = None
        """ 
        B
        u
        s
        i
        n
        e
        s
        s
        I
        d
        e
        n
        t
        i
        f
        i
        e
        r
        f
        o
        r
        t
        h
        e
        r
        e
        s
        o
        u
        r
        c
        e
        .
        List of `Identifier` items (represented as `dict` in JSON). """
        
        self.insurance = None
        """ 
        P
        a
        t
        i
        e
        n
        t
        i
        n
        s
        u
        r
        a
        n
        c
        e
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        List of `ExplanationOfBenefitInsurance` items (represented as `dict` in JSON). """
        
        self.insurer = None
        """ 
        P
        a
        r
        t
        y
        r
        e
        s
        p
        o
        n
        s
        i
        b
        l
        e
        f
        o
        r
        r
        e
        i
        m
        b
        u
        r
        s
        e
        m
        e
        n
        t
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.item = None
        """ 
        P
        r
        o
        d
        u
        c
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        p
        r
        o
        v
        i
        d
        e
        d
        .
        List of `ExplanationOfBenefitItem` items (represented as `dict` in JSON). """
        
        self.originalPrescription = None
        """ 
        O
        r
        i
        g
        i
        n
        a
        l
        p
        r
        e
        s
        c
        r
        i
        p
        t
        i
        o
        n
        i
        f
        s
        u
        p
        e
        r
        c
        e
        d
        e
        d
        b
        y
        f
        u
        l
        f
        i
        l
        l
        e
        r
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.outcome = None
        """ 
        q
        u
        e
        u
        e
        d
        |
        c
        o
        m
        p
        l
        e
        t
        e
        |
        e
        r
        r
        o
        r
        |
        p
        a
        r
        t
        i
        a
        l
        .
        Type `str`. """
        
        self.patient = None
        """ 
        T
        h
        e
        r
        e
        c
        i
        p
        i
        e
        n
        t
        o
        f
        t
        h
        e
        p
        r
        o
        d
        u
        c
        t
        s
        a
        n
        d
        s
        e
        r
        v
        i
        c
        e
        s
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.payee = None
        """ 
        R
        e
        c
        i
        p
        i
        e
        n
        t
        o
        f
        b
        e
        n
        e
        f
        i
        t
        s
        p
        a
        y
        a
        b
        l
        e
        .
        Type `ExplanationOfBenefitPayee` (represented as `dict` in JSON). """
        
        self.payment = None
        """ 
        P
        a
        y
        m
        e
        n
        t
        D
        e
        t
        a
        i
        l
        s
        .
        Type `ExplanationOfBenefitPayment` (represented as `dict` in JSON). """
        
        self.preAuthRef = None
        """ 
        P
        r
        e
        a
        u
        t
        h
        o
        r
        i
        z
        a
        t
        i
        o
        n
        r
        e
        f
        e
        r
        e
        n
        c
        e
        .
        List of `str` items. """
        
        self.preAuthRefPeriod = None
        """ 
        P
        r
        e
        a
        u
        t
        h
        o
        r
        i
        z
        a
        t
        i
        o
        n
        i
        n
        -
        e
        f
        f
        e
        c
        t
        p
        e
        r
        i
        o
        d
        .
        List of `Period` items (represented as `dict` in JSON). """
        
        self.precedence = None
        """ 
        P
        r
        e
        c
        e
        d
        e
        n
        c
        e
        (
        p
        r
        i
        m
        a
        r
        y
        ,
        s
        e
        c
        o
        n
        d
        a
        r
        y
        ,
        e
        t
        c
        .
        )
        .
        Type `int`. """
        
        self.prescription = None
        """ 
        P
        r
        e
        s
        c
        r
        i
        p
        t
        i
        o
        n
        a
        u
        t
        h
        o
        r
        i
        z
        i
        n
        g
        s
        e
        r
        v
        i
        c
        e
        s
        o
        r
        p
        r
        o
        d
        u
        c
        t
        s
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.priority = None
        """ 
        D
        e
        s
        i
        r
        e
        d
        p
        r
        o
        c
        e
        s
        s
        i
        n
        g
        u
        r
        g
        e
        n
        c
        y
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.procedure = None
        """ 
        C
        l
        i
        n
        i
        c
        a
        l
        p
        r
        o
        c
        e
        d
        u
        r
        e
        s
        p
        e
        r
        f
        o
        r
        m
        e
        d
        .
        List of `ExplanationOfBenefitProcedure` items (represented as `dict` in JSON). """
        
        self.processNote = None
        """ 
        N
        o
        t
        e
        c
        o
        n
        c
        e
        r
        n
        i
        n
        g
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        .
        List of `ExplanationOfBenefitProcessNote` items (represented as `dict` in JSON). """
        
        self.provider = None
        """ 
        P
        a
        r
        t
        y
        r
        e
        s
        p
        o
        n
        s
        i
        b
        l
        e
        f
        o
        r
        t
        h
        e
        c
        l
        a
        i
        m
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.referral = None
        """ 
        T
        r
        e
        a
        t
        m
        e
        n
        t
        R
        e
        f
        e
        r
        r
        a
        l
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.related = None
        """ 
        P
        r
        i
        o
        r
        o
        r
        c
        o
        r
        o
        l
        l
        a
        r
        y
        c
        l
        a
        i
        m
        s
        .
        List of `ExplanationOfBenefitRelated` items (represented as `dict` in JSON). """
        
        self.status = None
        """ 
        a
        c
        t
        i
        v
        e
        |
        c
        a
        n
        c
        e
        l
        l
        e
        d
        |
        d
        r
        a
        f
        t
        |
        e
        n
        t
        e
        r
        e
        d
        -
        i
        n
        -
        e
        r
        r
        o
        r
        .
        Type `str`. """
        
        self.subType = None
        """ 
        M
        o
        r
        e
        g
        r
        a
        n
        u
        l
        a
        r
        c
        l
        a
        i
        m
        t
        y
        p
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.supportingInfo = None
        """ 
        S
        u
        p
        p
        o
        r
        t
        i
        n
        g
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        List of `ExplanationOfBenefitSupportingInfo` items (represented as `dict` in JSON). """
        
        self.total = None
        """ 
        A
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        t
        o
        t
        a
        l
        s
        .
        List of `ExplanationOfBenefitTotal` items (represented as `dict` in JSON). """
        
        self.type = None
        """ 
        C
        a
        t
        e
        g
        o
        r
        y
        o
        r
        d
        i
        s
        c
        i
        p
        l
        i
        n
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.use = None
        """ 
        c
        l
        a
        i
        m
        |
        p
        r
        e
        a
        u
        t
        h
        o
        r
        i
        z
        a
        t
        i
        o
        n
        |
        p
        r
        e
        d
        e
        t
        e
        r
        m
        i
        n
        a
        t
        i
        o
        n
        .
        Type `str`. """
        
        super(ExplanationOfBenefit, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefit, self).elementProperties()
        js.extend([
            ("accident", "accident", ExplanationOfBenefitAccident, False, None, False),
            ("addItem", "addItem", ExplanationOfBenefitAddItem, True, None, False),
            ("adjudication", "adjudication", ExplanationOfBenefitItemAdjudication, True, None, False),
            ("benefitBalance", "benefitBalance", ExplanationOfBenefitBenefitBalance, True, None, False),
            ("benefitPeriod", "benefitPeriod", period.Period, False, None, False),
            ("billablePeriod", "billablePeriod", period.Period, False, None, False),
            ("careTeam", "careTeam", ExplanationOfBenefitCareTeam, True, None, False),
            ("claim", "claim", fhirreference.FHIRReference, False, None, False),
            ("claimResponse", "claimResponse", fhirreference.FHIRReference, False, None, False),
            ("created", "created", fhirdate.FHIRDate, False, None, True),
            ("diagnosis", "diagnosis", ExplanationOfBenefitDiagnosis, True, None, False),
            ("disposition", "disposition", str, False, None, False),
            ("enterer", "enterer", fhirreference.FHIRReference, False, None, False),
            ("facility", "facility", fhirreference.FHIRReference, False, None, False),
            ("form", "form", attachment.Attachment, False, None, False),
            ("formCode", "formCode", codeableconcept.CodeableConcept, False, None, False),
            ("fundsReserve", "fundsReserve", codeableconcept.CodeableConcept, False, None, False),
            ("fundsReserveRequested", "fundsReserveRequested", codeableconcept.CodeableConcept, False, None, False),
            ("identifier", "identifier", identifier.Identifier, True, None, False),
            ("insurance", "insurance", ExplanationOfBenefitInsurance, True, None, True),
            ("insurer", "insurer", fhirreference.FHIRReference, False, None, True),
            ("item", "item", ExplanationOfBenefitItem, True, None, False),
            ("originalPrescription", "originalPrescription", fhirreference.FHIRReference, False, None, False),
            ("outcome", "outcome", str, False, None, True),
            ("patient", "patient", fhirreference.FHIRReference, False, None, True),
            ("payee", "payee", ExplanationOfBenefitPayee, False, None, False),
            ("payment", "payment", ExplanationOfBenefitPayment, False, None, False),
            ("preAuthRef", "preAuthRef", str, True, None, False),
            ("preAuthRefPeriod", "preAuthRefPeriod", period.Period, True, None, False),
            ("precedence", "precedence", int, False, None, False),
            ("prescription", "prescription", fhirreference.FHIRReference, False, None, False),
            ("priority", "priority", codeableconcept.CodeableConcept, False, None, False),
            ("procedure", "procedure", ExplanationOfBenefitProcedure, True, None, False),
            ("processNote", "processNote", ExplanationOfBenefitProcessNote, True, None, False),
            ("provider", "provider", fhirreference.FHIRReference, False, None, True),
            ("referral", "referral", fhirreference.FHIRReference, False, None, False),
            ("related", "related", ExplanationOfBenefitRelated, True, None, False),
            ("status", "status", str, False, None, True),
            ("subType", "subType", codeableconcept.CodeableConcept, False, None, False),
            ("supportingInfo", "supportingInfo", ExplanationOfBenefitSupportingInfo, True, None, False),
            ("total", "total", ExplanationOfBenefitTotal, True, None, False),
            ("type", "type", codeableconcept.CodeableConcept, False, None, True),
            ("use", "use", str, False, None, True),
        ])
        return js


from . import backboneelement

class ExplanationOfBenefitAccident(backboneelement.BackboneElement):
    """ 
    D
    e
    t
    a
    i
    l
    s
    o
    f
    t
    h
    e
    e
    v
    e
    n
    t
    .
    
    
    D
    e
    t
    a
    i
    l
    s
    o
    f
    a
    a
    c
    c
    i
    d
    e
    n
    t
    w
    h
    i
    c
    h
    r
    e
    s
    u
    l
    t
    e
    d
    i
    n
    i
    n
    j
    u
    r
    i
    e
    s
    w
    h
    i
    c
    h
    r
    e
    q
    u
    i
    r
    e
    d
    t
    h
    e
    p
    r
    o
    d
    u
    c
    t
    s
    a
    n
    d
    s
    e
    r
    v
    i
    c
    e
    s
    l
    i
    s
    t
    e
    d
    i
    n
    t
    h
    e
    c
    l
    a
    i
    m
    .
    
    """
    
    resource_type = "ExplanationOfBenefitAccident"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.date = None
        """ 
        W
        h
        e
        n
        t
        h
        e
        i
        n
        c
        i
        d
        e
        n
        t
        o
        c
        c
        u
        r
        r
        e
        d
        .
        Type `FHIRDate` (represented as `str` in JSON). """
        
        self.locationAddress = None
        """ 
        W
        h
        e
        r
        e
        t
        h
        e
        e
        v
        e
        n
        t
        o
        c
        c
        u
        r
        r
        e
        d
        .
        Type `Address` (represented as `dict` in JSON). """
        
        self.locationReference = None
        """ 
        W
        h
        e
        r
        e
        t
        h
        e
        e
        v
        e
        n
        t
        o
        c
        c
        u
        r
        r
        e
        d
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.type = None
        """ 
        T
        h
        e
        n
        a
        t
        u
        r
        e
        o
        f
        t
        h
        e
        a
        c
        c
        i
        d
        e
        n
        t
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitAccident, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitAccident, self).elementProperties()
        js.extend([
            ("date", "date", fhirdate.FHIRDate, False, None, False),
            ("locationAddress", "locationAddress", address.Address, False, "location", False),
            ("locationReference", "locationReference", fhirreference.FHIRReference, False, "location", False),
            ("type", "type", codeableconcept.CodeableConcept, False, None, False),
        ])
        return js


class ExplanationOfBenefitAddItem(backboneelement.BackboneElement):
    """ 
    I
    n
    s
    u
    r
    e
    r
    a
    d
    d
    e
    d
    l
    i
    n
    e
    i
    t
    e
    m
    s
    .
    
    
    T
    h
    e
    f
    i
    r
    s
    t
    -
    t
    i
    e
    r
    s
    e
    r
    v
    i
    c
    e
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    s
    f
    o
    r
    p
    a
    y
    o
    r
    a
    d
    d
    e
    d
    p
    r
    o
    d
    u
    c
    t
    o
    r
    s
    e
    r
    v
    i
    c
    e
    l
    i
    n
    e
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitAddItem"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.adjudication = None
        """ 
        A
        d
        d
        e
        d
        i
        t
        e
        m
        s
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        .
        List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). """
        
        self.bodySite = None
        """ 
        A
        n
        a
        t
        o
        m
        i
        c
        a
        l
        l
        o
        c
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.detail = None
        """ 
        I
        n
        s
        u
        r
        e
        r
        a
        d
        d
        e
        d
        l
        i
        n
        e
        i
        t
        e
        m
        s
        .
        List of `ExplanationOfBenefitAddItemDetail` items (represented as `dict` in JSON). """
        
        self.detailSequence = None
        """ 
        D
        e
        t
        a
        i
        l
        s
        e
        q
        u
        e
        n
        c
        e
        n
        u
        m
        b
        e
        r
        .
        List of `int` items. """
        
        self.factor = None
        """ 
        P
        r
        i
        c
        e
        s
        c
        a
        l
        i
        n
        g
        f
        a
        c
        t
        o
        r
        .
        Type `float`. """
        
        self.itemSequence = None
        """ 
        I
        t
        e
        m
        s
        e
        q
        u
        e
        n
        c
        e
        n
        u
        m
        b
        e
        r
        .
        List of `int` items. """
        
        self.locationAddress = None
        """ 
        P
        l
        a
        c
        e
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        w
        h
        e
        r
        e
        p
        r
        o
        d
        u
        c
        t
        w
        a
        s
        s
        u
        p
        p
        l
        i
        e
        d
        .
        Type `Address` (represented as `dict` in JSON). """
        
        self.locationCodeableConcept = None
        """ 
        P
        l
        a
        c
        e
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        w
        h
        e
        r
        e
        p
        r
        o
        d
        u
        c
        t
        w
        a
        s
        s
        u
        p
        p
        l
        i
        e
        d
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.locationReference = None
        """ 
        P
        l
        a
        c
        e
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        w
        h
        e
        r
        e
        p
        r
        o
        d
        u
        c
        t
        w
        a
        s
        s
        u
        p
        p
        l
        i
        e
        d
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.modifier = None
        """ 
        S
        e
        r
        v
        i
        c
        e
        /
        P
        r
        o
        d
        u
        c
        t
        b
        i
        l
        l
        i
        n
        g
        m
        o
        d
        i
        f
        i
        e
        r
        s
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.net = None
        """ 
        T
        o
        t
        a
        l
        i
        t
        e
        m
        c
        o
        s
        t
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.noteNumber = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        n
        o
        t
        e
        n
        u
        m
        b
        e
        r
        s
        .
        List of `int` items. """
        
        self.productOrService = None
        """ 
        B
        i
        l
        l
        i
        n
        g
        ,
        s
        e
        r
        v
        i
        c
        e
        ,
        p
        r
        o
        d
        u
        c
        t
        ,
        o
        r
        d
        r
        u
        g
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.programCode = None
        """ 
        P
        r
        o
        g
        r
        a
        m
        t
        h
        e
        p
        r
        o
        d
        u
        c
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        i
        s
        p
        r
        o
        v
        i
        d
        e
        d
        u
        n
        d
        e
        r
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.provider = None
        """ 
        A
        u
        t
        h
        o
        r
        i
        z
        e
        d
        p
        r
        o
        v
        i
        d
        e
        r
        s
        .
        List of `FHIRReference` items (represented as `dict` in JSON). """
        
        self.quantity = None
        """ 
        C
        o
        u
        n
        t
        o
        f
        p
        r
        o
        d
        u
        c
        t
        s
        o
        r
        s
        e
        r
        v
        i
        c
        e
        s
        .
        Type `Quantity` (represented as `dict` in JSON). """
        
        self.servicedDate = None
        """ 
        D
        a
        t
        e
        o
        r
        d
        a
        t
        e
        s
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        p
        r
        o
        d
        u
        c
        t
        d
        e
        l
        i
        v
        e
        r
        y
        .
        Type `FHIRDate` (represented as `str` in JSON). """
        
        self.servicedPeriod = None
        """ 
        D
        a
        t
        e
        o
        r
        d
        a
        t
        e
        s
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        p
        r
        o
        d
        u
        c
        t
        d
        e
        l
        i
        v
        e
        r
        y
        .
        Type `Period` (represented as `dict` in JSON). """
        
        self.subDetailSequence = None
        """ 
        S
        u
        b
        d
        e
        t
        a
        i
        l
        s
        e
        q
        u
        e
        n
        c
        e
        n
        u
        m
        b
        e
        r
        .
        List of `int` items. """
        
        self.subSite = None
        """ 
        A
        n
        a
        t
        o
        m
        i
        c
        a
        l
        s
        u
        b
        -
        l
        o
        c
        a
        t
        i
        o
        n
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.unitPrice = None
        """ 
        F
        e
        e
        ,
        c
        h
        a
        r
        g
        e
        o
        r
        c
        o
        s
        t
        p
        e
        r
        i
        t
        e
        m
        .
        Type `Money` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitAddItem, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitAddItem, self).elementProperties()
        js.extend([
            ("adjudication", "adjudication", ExplanationOfBenefitItemAdjudication, True, None, False),
            ("bodySite", "bodySite", codeableconcept.CodeableConcept, False, None, False),
            ("detail", "detail", ExplanationOfBenefitAddItemDetail, True, None, False),
            ("detailSequence", "detailSequence", int, True, None, False),
            ("factor", "factor", float, False, None, False),
            ("itemSequence", "itemSequence", int, True, None, False),
            ("locationAddress", "locationAddress", address.Address, False, "location", False),
            ("locationCodeableConcept", "locationCodeableConcept", codeableconcept.CodeableConcept, False, "location", False),
            ("locationReference", "locationReference", fhirreference.FHIRReference, False, "location", False),
            ("modifier", "modifier", codeableconcept.CodeableConcept, True, None, False),
            ("net", "net", money.Money, False, None, False),
            ("noteNumber", "noteNumber", int, True, None, False),
            ("productOrService", "productOrService", codeableconcept.CodeableConcept, False, None, True),
            ("programCode", "programCode", codeableconcept.CodeableConcept, True, None, False),
            ("provider", "provider", fhirreference.FHIRReference, True, None, False),
            ("quantity", "quantity", quantity.Quantity, False, None, False),
            ("servicedDate", "servicedDate", fhirdate.FHIRDate, False, "serviced", False),
            ("servicedPeriod", "servicedPeriod", period.Period, False, "serviced", False),
            ("subDetailSequence", "subDetailSequence", int, True, None, False),
            ("subSite", "subSite", codeableconcept.CodeableConcept, True, None, False),
            ("unitPrice", "unitPrice", money.Money, False, None, False),
        ])
        return js


class ExplanationOfBenefitAddItemDetail(backboneelement.BackboneElement):
    """ 
    I
    n
    s
    u
    r
    e
    r
    a
    d
    d
    e
    d
    l
    i
    n
    e
    i
    t
    e
    m
    s
    .
    
    
    T
    h
    e
    s
    e
    c
    o
    n
    d
    -
    t
    i
    e
    r
    s
    e
    r
    v
    i
    c
    e
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    s
    f
    o
    r
    p
    a
    y
    o
    r
    a
    d
    d
    e
    d
    s
    e
    r
    v
    i
    c
    e
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitAddItemDetail"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.adjudication = None
        """ 
        A
        d
        d
        e
        d
        i
        t
        e
        m
        s
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        .
        List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). """
        
        self.factor = None
        """ 
        P
        r
        i
        c
        e
        s
        c
        a
        l
        i
        n
        g
        f
        a
        c
        t
        o
        r
        .
        Type `float`. """
        
        self.modifier = None
        """ 
        S
        e
        r
        v
        i
        c
        e
        /
        P
        r
        o
        d
        u
        c
        t
        b
        i
        l
        l
        i
        n
        g
        m
        o
        d
        i
        f
        i
        e
        r
        s
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.net = None
        """ 
        T
        o
        t
        a
        l
        i
        t
        e
        m
        c
        o
        s
        t
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.noteNumber = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        n
        o
        t
        e
        n
        u
        m
        b
        e
        r
        s
        .
        List of `int` items. """
        
        self.productOrService = None
        """ 
        B
        i
        l
        l
        i
        n
        g
        ,
        s
        e
        r
        v
        i
        c
        e
        ,
        p
        r
        o
        d
        u
        c
        t
        ,
        o
        r
        d
        r
        u
        g
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.quantity = None
        """ 
        C
        o
        u
        n
        t
        o
        f
        p
        r
        o
        d
        u
        c
        t
        s
        o
        r
        s
        e
        r
        v
        i
        c
        e
        s
        .
        Type `Quantity` (represented as `dict` in JSON). """
        
        self.subDetail = None
        """ 
        I
        n
        s
        u
        r
        e
        r
        a
        d
        d
        e
        d
        l
        i
        n
        e
        i
        t
        e
        m
        s
        .
        List of `ExplanationOfBenefitAddItemDetailSubDetail` items (represented as `dict` in JSON). """
        
        self.unitPrice = None
        """ 
        F
        e
        e
        ,
        c
        h
        a
        r
        g
        e
        o
        r
        c
        o
        s
        t
        p
        e
        r
        i
        t
        e
        m
        .
        Type `Money` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitAddItemDetail, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitAddItemDetail, self).elementProperties()
        js.extend([
            ("adjudication", "adjudication", ExplanationOfBenefitItemAdjudication, True, None, False),
            ("factor", "factor", float, False, None, False),
            ("modifier", "modifier", codeableconcept.CodeableConcept, True, None, False),
            ("net", "net", money.Money, False, None, False),
            ("noteNumber", "noteNumber", int, True, None, False),
            ("productOrService", "productOrService", codeableconcept.CodeableConcept, False, None, True),
            ("quantity", "quantity", quantity.Quantity, False, None, False),
            ("subDetail", "subDetail", ExplanationOfBenefitAddItemDetailSubDetail, True, None, False),
            ("unitPrice", "unitPrice", money.Money, False, None, False),
        ])
        return js


class ExplanationOfBenefitAddItemDetailSubDetail(backboneelement.BackboneElement):
    """ 
    I
    n
    s
    u
    r
    e
    r
    a
    d
    d
    e
    d
    l
    i
    n
    e
    i
    t
    e
    m
    s
    .
    
    
    T
    h
    e
    t
    h
    i
    r
    d
    -
    t
    i
    e
    r
    s
    e
    r
    v
    i
    c
    e
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    s
    f
    o
    r
    p
    a
    y
    o
    r
    a
    d
    d
    e
    d
    s
    e
    r
    v
    i
    c
    e
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitAddItemDetailSubDetail"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.adjudication = None
        """ 
        A
        d
        d
        e
        d
        i
        t
        e
        m
        s
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        .
        List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). """
        
        self.factor = None
        """ 
        P
        r
        i
        c
        e
        s
        c
        a
        l
        i
        n
        g
        f
        a
        c
        t
        o
        r
        .
        Type `float`. """
        
        self.modifier = None
        """ 
        S
        e
        r
        v
        i
        c
        e
        /
        P
        r
        o
        d
        u
        c
        t
        b
        i
        l
        l
        i
        n
        g
        m
        o
        d
        i
        f
        i
        e
        r
        s
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.net = None
        """ 
        T
        o
        t
        a
        l
        i
        t
        e
        m
        c
        o
        s
        t
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.noteNumber = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        n
        o
        t
        e
        n
        u
        m
        b
        e
        r
        s
        .
        List of `int` items. """
        
        self.productOrService = None
        """ 
        B
        i
        l
        l
        i
        n
        g
        ,
        s
        e
        r
        v
        i
        c
        e
        ,
        p
        r
        o
        d
        u
        c
        t
        ,
        o
        r
        d
        r
        u
        g
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.quantity = None
        """ 
        C
        o
        u
        n
        t
        o
        f
        p
        r
        o
        d
        u
        c
        t
        s
        o
        r
        s
        e
        r
        v
        i
        c
        e
        s
        .
        Type `Quantity` (represented as `dict` in JSON). """
        
        self.unitPrice = None
        """ 
        F
        e
        e
        ,
        c
        h
        a
        r
        g
        e
        o
        r
        c
        o
        s
        t
        p
        e
        r
        i
        t
        e
        m
        .
        Type `Money` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitAddItemDetailSubDetail, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitAddItemDetailSubDetail, self).elementProperties()
        js.extend([
            ("adjudication", "adjudication", ExplanationOfBenefitItemAdjudication, True, None, False),
            ("factor", "factor", float, False, None, False),
            ("modifier", "modifier", codeableconcept.CodeableConcept, True, None, False),
            ("net", "net", money.Money, False, None, False),
            ("noteNumber", "noteNumber", int, True, None, False),
            ("productOrService", "productOrService", codeableconcept.CodeableConcept, False, None, True),
            ("quantity", "quantity", quantity.Quantity, False, None, False),
            ("unitPrice", "unitPrice", money.Money, False, None, False),
        ])
        return js


class ExplanationOfBenefitBenefitBalance(backboneelement.BackboneElement):
    """ 
    B
    a
    l
    a
    n
    c
    e
    b
    y
    B
    e
    n
    e
    f
    i
    t
    C
    a
    t
    e
    g
    o
    r
    y
    .
    """
    
    resource_type = "ExplanationOfBenefitBenefitBalance"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.category = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        c
        l
        a
        s
        s
        i
        f
        i
        c
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.description = None
        """ 
        D
        e
        s
        c
        r
        i
        p
        t
        i
        o
        n
        o
        f
        t
        h
        e
        b
        e
        n
        e
        f
        i
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        s
        c
        o
        v
        e
        r
        e
        d
        .
        Type `str`. """
        
        self.excluded = None
        """ 
        E
        x
        c
        l
        u
        d
        e
        d
        f
        r
        o
        m
        t
        h
        e
        p
        l
        a
        n
        .
        Type `bool`. """
        
        self.financial = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        S
        u
        m
        m
        a
        r
        y
        .
        List of `ExplanationOfBenefitBenefitBalanceFinancial` items (represented as `dict` in JSON). """
        
        self.name = None
        """ 
        S
        h
        o
        r
        t
        n
        a
        m
        e
        f
        o
        r
        t
        h
        e
        b
        e
        n
        e
        f
        i
        t
        .
        Type `str`. """
        
        self.network = None
        """ 
        I
        n
        o
        r
        o
        u
        t
        o
        f
        n
        e
        t
        w
        o
        r
        k
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.term = None
        """ 
        A
        n
        n
        u
        a
        l
        o
        r
        l
        i
        f
        e
        t
        i
        m
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.unit = None
        """ 
        I
        n
        d
        i
        v
        i
        d
        u
        a
        l
        o
        r
        f
        a
        m
        i
        l
        y
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitBenefitBalance, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitBenefitBalance, self).elementProperties()
        js.extend([
            ("category", "category", codeableconcept.CodeableConcept, False, None, True),
            ("description", "description", str, False, None, False),
            ("excluded", "excluded", bool, False, None, False),
            ("financial", "financial", ExplanationOfBenefitBenefitBalanceFinancial, True, None, False),
            ("name", "name", str, False, None, False),
            ("network", "network", codeableconcept.CodeableConcept, False, None, False),
            ("term", "term", codeableconcept.CodeableConcept, False, None, False),
            ("unit", "unit", codeableconcept.CodeableConcept, False, None, False),
        ])
        return js


class ExplanationOfBenefitBenefitBalanceFinancial(backboneelement.BackboneElement):
    """ 
    B
    e
    n
    e
    f
    i
    t
    S
    u
    m
    m
    a
    r
    y
    .
    
    
    B
    e
    n
    e
    f
    i
    t
    s
    U
    s
    e
    d
    t
    o
    d
    a
    t
    e
    .
    
    """
    
    resource_type = "ExplanationOfBenefitBenefitBalanceFinancial"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.allowedMoney = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        s
        a
        l
        l
        o
        w
        e
        d
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.allowedString = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        s
        a
        l
        l
        o
        w
        e
        d
        .
        Type `str`. """
        
        self.allowedUnsignedInt = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        s
        a
        l
        l
        o
        w
        e
        d
        .
        Type `int`. """
        
        self.type = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        c
        l
        a
        s
        s
        i
        f
        i
        c
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.usedMoney = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        s
        u
        s
        e
        d
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.usedUnsignedInt = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        s
        u
        s
        e
        d
        .
        Type `int`. """
        
        super(ExplanationOfBenefitBenefitBalanceFinancial, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitBenefitBalanceFinancial, self).elementProperties()
        js.extend([
            ("allowedMoney", "allowedMoney", money.Money, False, "allowed", False),
            ("allowedString", "allowedString", str, False, "allowed", False),
            ("allowedUnsignedInt", "allowedUnsignedInt", int, False, "allowed", False),
            ("type", "type", codeableconcept.CodeableConcept, False, None, True),
            ("usedMoney", "usedMoney", money.Money, False, "used", False),
            ("usedUnsignedInt", "usedUnsignedInt", int, False, "used", False),
        ])
        return js


class ExplanationOfBenefitCareTeam(backboneelement.BackboneElement):
    """ 
    C
    a
    r
    e
    T
    e
    a
    m
    m
    e
    m
    b
    e
    r
    s
    .
    
    
    T
    h
    e
    m
    e
    m
    b
    e
    r
    s
    o
    f
    t
    h
    e
    t
    e
    a
    m
    w
    h
    o
    p
    r
    o
    v
    i
    d
    e
    d
    t
    h
    e
    p
    r
    o
    d
    u
    c
    t
    s
    a
    n
    d
    s
    e
    r
    v
    i
    c
    e
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitCareTeam"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.provider = None
        """ 
        P
        r
        a
        c
        t
        i
        t
        i
        o
        n
        e
        r
        o
        r
        o
        r
        g
        a
        n
        i
        z
        a
        t
        i
        o
        n
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.qualification = None
        """ 
        P
        r
        a
        c
        t
        i
        t
        i
        o
        n
        e
        r
        c
        r
        e
        d
        e
        n
        t
        i
        a
        l
        o
        r
        s
        p
        e
        c
        i
        a
        l
        i
        z
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.responsible = None
        """ 
        I
        n
        d
        i
        c
        a
        t
        o
        r
        o
        f
        t
        h
        e
        l
        e
        a
        d
        p
        r
        a
        c
        t
        i
        t
        i
        o
        n
        e
        r
        .
        Type `bool`. """
        
        self.role = None
        """ 
        F
        u
        n
        c
        t
        i
        o
        n
        w
        i
        t
        h
        i
        n
        t
        h
        e
        t
        e
        a
        m
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.sequence = None
        """ 
        O
        r
        d
        e
        r
        o
        f
        c
        a
        r
        e
        t
        e
        a
        m
        .
        Type `int`. """
        
        super(ExplanationOfBenefitCareTeam, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitCareTeam, self).elementProperties()
        js.extend([
            ("provider", "provider", fhirreference.FHIRReference, False, None, True),
            ("qualification", "qualification", codeableconcept.CodeableConcept, False, None, False),
            ("responsible", "responsible", bool, False, None, False),
            ("role", "role", codeableconcept.CodeableConcept, False, None, False),
            ("sequence", "sequence", int, False, None, True),
        ])
        return js


class ExplanationOfBenefitDiagnosis(backboneelement.BackboneElement):
    """ 
    P
    e
    r
    t
    i
    n
    e
    n
    t
    d
    i
    a
    g
    n
    o
    s
    i
    s
    i
    n
    f
    o
    r
    m
    a
    t
    i
    o
    n
    .
    
    
    I
    n
    f
    o
    r
    m
    a
    t
    i
    o
    n
    a
    b
    o
    u
    t
    d
    i
    a
    g
    n
    o
    s
    e
    s
    r
    e
    l
    e
    v
    a
    n
    t
    t
    o
    t
    h
    e
    c
    l
    a
    i
    m
    i
    t
    e
    m
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitDiagnosis"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.diagnosisCodeableConcept = None
        """ 
        N
        a
        t
        u
        r
        e
        o
        f
        i
        l
        l
        n
        e
        s
        s
        o
        r
        p
        r
        o
        b
        l
        e
        m
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.diagnosisReference = None
        """ 
        N
        a
        t
        u
        r
        e
        o
        f
        i
        l
        l
        n
        e
        s
        s
        o
        r
        p
        r
        o
        b
        l
        e
        m
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.onAdmission = None
        """ 
        P
        r
        e
        s
        e
        n
        t
        o
        n
        a
        d
        m
        i
        s
        s
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.packageCode = None
        """ 
        P
        a
        c
        k
        a
        g
        e
        b
        i
        l
        l
        i
        n
        g
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.sequence = None
        """ 
        D
        i
        a
        g
        n
        o
        s
        i
        s
        i
        n
        s
        t
        a
        n
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        Type `int`. """
        
        self.type = None
        """ 
        T
        i
        m
        i
        n
        g
        o
        r
        n
        a
        t
        u
        r
        e
        o
        f
        t
        h
        e
        d
        i
        a
        g
        n
        o
        s
        i
        s
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitDiagnosis, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitDiagnosis, self).elementProperties()
        js.extend([
            ("diagnosisCodeableConcept", "diagnosisCodeableConcept", codeableconcept.CodeableConcept, False, "diagnosis", True),
            ("diagnosisReference", "diagnosisReference", fhirreference.FHIRReference, False, "diagnosis", True),
            ("onAdmission", "onAdmission", codeableconcept.CodeableConcept, False, None, False),
            ("packageCode", "packageCode", codeableconcept.CodeableConcept, False, None, False),
            ("sequence", "sequence", int, False, None, True),
            ("type", "type", codeableconcept.CodeableConcept, True, None, False),
        ])
        return js


class ExplanationOfBenefitInsurance(backboneelement.BackboneElement):
    """ 
    P
    a
    t
    i
    e
    n
    t
    i
    n
    s
    u
    r
    a
    n
    c
    e
    i
    n
    f
    o
    r
    m
    a
    t
    i
    o
    n
    .
    
    
    F
    i
    n
    a
    n
    c
    i
    a
    l
    i
    n
    s
    t
    r
    u
    m
    e
    n
    t
    s
    f
    o
    r
    r
    e
    i
    m
    b
    u
    r
    s
    e
    m
    e
    n
    t
    f
    o
    r
    t
    h
    e
    h
    e
    a
    l
    t
    h
    c
    a
    r
    e
    p
    r
    o
    d
    u
    c
    t
    s
    a
    n
    d
    s
    e
    r
    v
    i
    c
    e
    s
    s
    p
    e
    c
    i
    f
    i
    e
    d
    o
    n
    t
    h
    e
    c
    l
    a
    i
    m
    .
    
    """
    
    resource_type = "ExplanationOfBenefitInsurance"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.coverage = None
        """ 
        I
        n
        s
        u
        r
        a
        n
        c
        e
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.focal = None
        """ 
        C
        o
        v
        e
        r
        a
        g
        e
        t
        o
        b
        e
        u
        s
        e
        d
        f
        o
        r
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        .
        Type `bool`. """
        
        self.preAuthRef = None
        """ 
        P
        r
        i
        o
        r
        a
        u
        t
        h
        o
        r
        i
        z
        a
        t
        i
        o
        n
        r
        e
        f
        e
        r
        e
        n
        c
        e
        n
        u
        m
        b
        e
        r
        .
        List of `str` items. """
        
        super(ExplanationOfBenefitInsurance, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitInsurance, self).elementProperties()
        js.extend([
            ("coverage", "coverage", fhirreference.FHIRReference, False, None, True),
            ("focal", "focal", bool, False, None, True),
            ("preAuthRef", "preAuthRef", str, True, None, False),
        ])
        return js


class ExplanationOfBenefitItem(backboneelement.BackboneElement):
    """ 
    P
    r
    o
    d
    u
    c
    t
    o
    r
    s
    e
    r
    v
    i
    c
    e
    p
    r
    o
    v
    i
    d
    e
    d
    .
    
    
    A
    c
    l
    a
    i
    m
    l
    i
    n
    e
    .
    E
    i
    t
    h
    e
    r
    a
    s
    i
    m
    p
    l
    e
    (
    a
    p
    r
    o
    d
    u
    c
    t
    o
    r
    s
    e
    r
    v
    i
    c
    e
    )
    o
    r
    a
    '
    g
    r
    o
    u
    p
    '
    o
    f
    d
    e
    t
    a
    i
    l
    s
    w
    h
    i
    c
    h
    c
    a
    n
    a
    l
    s
    o
    b
    e
    a
    s
    i
    m
    p
    l
    e
    i
    t
    e
    m
    s
    o
    r
    g
    r
    o
    u
    p
    s
    o
    f
    s
    u
    b
    -
    d
    e
    t
    a
    i
    l
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitItem"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.adjudication = None
        """ 
        A
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        d
        e
        t
        a
        i
        l
        s
        .
        List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). """
        
        self.bodySite = None
        """ 
        A
        n
        a
        t
        o
        m
        i
        c
        a
        l
        l
        o
        c
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.careTeamSequence = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        c
        a
        r
        e
        t
        e
        a
        m
        m
        e
        m
        b
        e
        r
        s
        .
        List of `int` items. """
        
        self.category = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        c
        l
        a
        s
        s
        i
        f
        i
        c
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.detail = None
        """ 
        A
        d
        d
        i
        t
        i
        o
        n
        a
        l
        i
        t
        e
        m
        s
        .
        List of `ExplanationOfBenefitItemDetail` items (represented as `dict` in JSON). """
        
        self.diagnosisSequence = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        d
        i
        a
        g
        n
        o
        s
        e
        s
        .
        List of `int` items. """
        
        self.encounter = None
        """ 
        E
        n
        c
        o
        u
        n
        t
        e
        r
        s
        r
        e
        l
        a
        t
        e
        d
        t
        o
        t
        h
        i
        s
        b
        i
        l
        l
        e
        d
        i
        t
        e
        m
        .
        List of `FHIRReference` items (represented as `dict` in JSON). """
        
        self.factor = None
        """ 
        P
        r
        i
        c
        e
        s
        c
        a
        l
        i
        n
        g
        f
        a
        c
        t
        o
        r
        .
        Type `float`. """
        
        self.informationSequence = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        e
        x
        c
        e
        p
        t
        i
        o
        n
        a
        n
        d
        s
        u
        p
        p
        o
        r
        t
        i
        n
        g
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        List of `int` items. """
        
        self.locationAddress = None
        """ 
        P
        l
        a
        c
        e
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        w
        h
        e
        r
        e
        p
        r
        o
        d
        u
        c
        t
        w
        a
        s
        s
        u
        p
        p
        l
        i
        e
        d
        .
        Type `Address` (represented as `dict` in JSON). """
        
        self.locationCodeableConcept = None
        """ 
        P
        l
        a
        c
        e
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        w
        h
        e
        r
        e
        p
        r
        o
        d
        u
        c
        t
        w
        a
        s
        s
        u
        p
        p
        l
        i
        e
        d
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.locationReference = None
        """ 
        P
        l
        a
        c
        e
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        w
        h
        e
        r
        e
        p
        r
        o
        d
        u
        c
        t
        w
        a
        s
        s
        u
        p
        p
        l
        i
        e
        d
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.modifier = None
        """ 
        P
        r
        o
        d
        u
        c
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        b
        i
        l
        l
        i
        n
        g
        m
        o
        d
        i
        f
        i
        e
        r
        s
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.net = None
        """ 
        T
        o
        t
        a
        l
        i
        t
        e
        m
        c
        o
        s
        t
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.noteNumber = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        n
        o
        t
        e
        n
        u
        m
        b
        e
        r
        s
        .
        List of `int` items. """
        
        self.procedureSequence = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        p
        r
        o
        c
        e
        d
        u
        r
        e
        s
        .
        List of `int` items. """
        
        self.productOrService = None
        """ 
        B
        i
        l
        l
        i
        n
        g
        ,
        s
        e
        r
        v
        i
        c
        e
        ,
        p
        r
        o
        d
        u
        c
        t
        ,
        o
        r
        d
        r
        u
        g
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.programCode = None
        """ 
        P
        r
        o
        g
        r
        a
        m
        t
        h
        e
        p
        r
        o
        d
        u
        c
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        i
        s
        p
        r
        o
        v
        i
        d
        e
        d
        u
        n
        d
        e
        r
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.quantity = None
        """ 
        C
        o
        u
        n
        t
        o
        f
        p
        r
        o
        d
        u
        c
        t
        s
        o
        r
        s
        e
        r
        v
        i
        c
        e
        s
        .
        Type `Quantity` (represented as `dict` in JSON). """
        
        self.revenue = None
        """ 
        R
        e
        v
        e
        n
        u
        e
        o
        r
        c
        o
        s
        t
        c
        e
        n
        t
        e
        r
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.sequence = None
        """ 
        I
        t
        e
        m
        i
        n
        s
        t
        a
        n
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        Type `int`. """
        
        self.servicedDate = None
        """ 
        D
        a
        t
        e
        o
        r
        d
        a
        t
        e
        s
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        p
        r
        o
        d
        u
        c
        t
        d
        e
        l
        i
        v
        e
        r
        y
        .
        Type `FHIRDate` (represented as `str` in JSON). """
        
        self.servicedPeriod = None
        """ 
        D
        a
        t
        e
        o
        r
        d
        a
        t
        e
        s
        o
        f
        s
        e
        r
        v
        i
        c
        e
        o
        r
        p
        r
        o
        d
        u
        c
        t
        d
        e
        l
        i
        v
        e
        r
        y
        .
        Type `Period` (represented as `dict` in JSON). """
        
        self.subSite = None
        """ 
        A
        n
        a
        t
        o
        m
        i
        c
        a
        l
        s
        u
        b
        -
        l
        o
        c
        a
        t
        i
        o
        n
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.udi = None
        """ 
        U
        n
        i
        q
        u
        e
        d
        e
        v
        i
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        List of `FHIRReference` items (represented as `dict` in JSON). """
        
        self.unitPrice = None
        """ 
        F
        e
        e
        ,
        c
        h
        a
        r
        g
        e
        o
        r
        c
        o
        s
        t
        p
        e
        r
        i
        t
        e
        m
        .
        Type `Money` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitItem, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitItem, self).elementProperties()
        js.extend([
            ("adjudication", "adjudication", ExplanationOfBenefitItemAdjudication, True, None, False),
            ("bodySite", "bodySite", codeableconcept.CodeableConcept, False, None, False),
            ("careTeamSequence", "careTeamSequence", int, True, None, False),
            ("category", "category", codeableconcept.CodeableConcept, False, None, False),
            ("detail", "detail", ExplanationOfBenefitItemDetail, True, None, False),
            ("diagnosisSequence", "diagnosisSequence", int, True, None, False),
            ("encounter", "encounter", fhirreference.FHIRReference, True, None, False),
            ("factor", "factor", float, False, None, False),
            ("informationSequence", "informationSequence", int, True, None, False),
            ("locationAddress", "locationAddress", address.Address, False, "location", False),
            ("locationCodeableConcept", "locationCodeableConcept", codeableconcept.CodeableConcept, False, "location", False),
            ("locationReference", "locationReference", fhirreference.FHIRReference, False, "location", False),
            ("modifier", "modifier", codeableconcept.CodeableConcept, True, None, False),
            ("net", "net", money.Money, False, None, False),
            ("noteNumber", "noteNumber", int, True, None, False),
            ("procedureSequence", "procedureSequence", int, True, None, False),
            ("productOrService", "productOrService", codeableconcept.CodeableConcept, False, None, True),
            ("programCode", "programCode", codeableconcept.CodeableConcept, True, None, False),
            ("quantity", "quantity", quantity.Quantity, False, None, False),
            ("revenue", "revenue", codeableconcept.CodeableConcept, False, None, False),
            ("sequence", "sequence", int, False, None, True),
            ("servicedDate", "servicedDate", fhirdate.FHIRDate, False, "serviced", False),
            ("servicedPeriod", "servicedPeriod", period.Period, False, "serviced", False),
            ("subSite", "subSite", codeableconcept.CodeableConcept, True, None, False),
            ("udi", "udi", fhirreference.FHIRReference, True, None, False),
            ("unitPrice", "unitPrice", money.Money, False, None, False),
        ])
        return js


class ExplanationOfBenefitItemAdjudication(backboneelement.BackboneElement):
    """ 
    A
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    d
    e
    t
    a
    i
    l
    s
    .
    
    
    I
    f
    t
    h
    i
    s
    i
    t
    e
    m
    i
    s
    a
    g
    r
    o
    u
    p
    t
    h
    e
    n
    t
    h
    e
    v
    a
    l
    u
    e
    s
    h
    e
    r
    e
    a
    r
    e
    a
    s
    u
    m
    m
    a
    r
    y
    o
    f
    t
    h
    e
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    o
    f
    t
    h
    e
    d
    e
    t
    a
    i
    l
    i
    t
    e
    m
    s
    .
    I
    f
    t
    h
    i
    s
    i
    t
    e
    m
    i
    s
    a
    s
    i
    m
    p
    l
    e
    p
    r
    o
    d
    u
    c
    t
    o
    r
    s
    e
    r
    v
    i
    c
    e
    t
    h
    e
    n
    t
    h
    i
    s
    i
    s
    t
    h
    e
    r
    e
    s
    u
    l
    t
    o
    f
    t
    h
    e
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    o
    f
    t
    h
    i
    s
    i
    t
    e
    m
    .
    
    """
    
    resource_type = "ExplanationOfBenefitItemAdjudication"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.amount = None
        """ 
        M
        o
        n
        e
        t
        a
        r
        y
        a
        m
        o
        u
        n
        t
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.category = None
        """ 
        T
        y
        p
        e
        o
        f
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.reason = None
        """ 
        E
        x
        p
        l
        a
        n
        a
        t
        i
        o
        n
        o
        f
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        o
        u
        t
        c
        o
        m
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.value = None
        """ 
        N
        o
        n
        -
        m
        o
        n
        i
        t
        a
        r
        y
        v
        a
        l
        u
        e
        .
        Type `float`. """
        
        super(ExplanationOfBenefitItemAdjudication, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitItemAdjudication, self).elementProperties()
        js.extend([
            ("amount", "amount", money.Money, False, None, False),
            ("category", "category", codeableconcept.CodeableConcept, False, None, True),
            ("reason", "reason", codeableconcept.CodeableConcept, False, None, False),
            ("value", "value", float, False, None, False),
        ])
        return js


class ExplanationOfBenefitItemDetail(backboneelement.BackboneElement):
    """ 
    A
    d
    d
    i
    t
    i
    o
    n
    a
    l
    i
    t
    e
    m
    s
    .
    
    
    S
    e
    c
    o
    n
    d
    -
    t
    i
    e
    r
    o
    f
    g
    o
    o
    d
    s
    a
    n
    d
    s
    e
    r
    v
    i
    c
    e
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitItemDetail"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.adjudication = None
        """ 
        D
        e
        t
        a
        i
        l
        l
        e
        v
        e
        l
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        d
        e
        t
        a
        i
        l
        s
        .
        List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). """
        
        self.category = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        c
        l
        a
        s
        s
        i
        f
        i
        c
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.factor = None
        """ 
        P
        r
        i
        c
        e
        s
        c
        a
        l
        i
        n
        g
        f
        a
        c
        t
        o
        r
        .
        Type `float`. """
        
        self.modifier = None
        """ 
        S
        e
        r
        v
        i
        c
        e
        /
        P
        r
        o
        d
        u
        c
        t
        b
        i
        l
        l
        i
        n
        g
        m
        o
        d
        i
        f
        i
        e
        r
        s
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.net = None
        """ 
        T
        o
        t
        a
        l
        i
        t
        e
        m
        c
        o
        s
        t
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.noteNumber = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        n
        o
        t
        e
        n
        u
        m
        b
        e
        r
        s
        .
        List of `int` items. """
        
        self.productOrService = None
        """ 
        B
        i
        l
        l
        i
        n
        g
        ,
        s
        e
        r
        v
        i
        c
        e
        ,
        p
        r
        o
        d
        u
        c
        t
        ,
        o
        r
        d
        r
        u
        g
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.programCode = None
        """ 
        P
        r
        o
        g
        r
        a
        m
        t
        h
        e
        p
        r
        o
        d
        u
        c
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        i
        s
        p
        r
        o
        v
        i
        d
        e
        d
        u
        n
        d
        e
        r
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.quantity = None
        """ 
        C
        o
        u
        n
        t
        o
        f
        p
        r
        o
        d
        u
        c
        t
        s
        o
        r
        s
        e
        r
        v
        i
        c
        e
        s
        .
        Type `Quantity` (represented as `dict` in JSON). """
        
        self.revenue = None
        """ 
        R
        e
        v
        e
        n
        u
        e
        o
        r
        c
        o
        s
        t
        c
        e
        n
        t
        e
        r
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.sequence = None
        """ 
        P
        r
        o
        d
        u
        c
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        p
        r
        o
        v
        i
        d
        e
        d
        .
        Type `int`. """
        
        self.subDetail = None
        """ 
        A
        d
        d
        i
        t
        i
        o
        n
        a
        l
        i
        t
        e
        m
        s
        .
        List of `ExplanationOfBenefitItemDetailSubDetail` items (represented as `dict` in JSON). """
        
        self.udi = None
        """ 
        U
        n
        i
        q
        u
        e
        d
        e
        v
        i
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        List of `FHIRReference` items (represented as `dict` in JSON). """
        
        self.unitPrice = None
        """ 
        F
        e
        e
        ,
        c
        h
        a
        r
        g
        e
        o
        r
        c
        o
        s
        t
        p
        e
        r
        i
        t
        e
        m
        .
        Type `Money` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitItemDetail, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitItemDetail, self).elementProperties()
        js.extend([
            ("adjudication", "adjudication", ExplanationOfBenefitItemAdjudication, True, None, False),
            ("category", "category", codeableconcept.CodeableConcept, False, None, False),
            ("factor", "factor", float, False, None, False),
            ("modifier", "modifier", codeableconcept.CodeableConcept, True, None, False),
            ("net", "net", money.Money, False, None, False),
            ("noteNumber", "noteNumber", int, True, None, False),
            ("productOrService", "productOrService", codeableconcept.CodeableConcept, False, None, True),
            ("programCode", "programCode", codeableconcept.CodeableConcept, True, None, False),
            ("quantity", "quantity", quantity.Quantity, False, None, False),
            ("revenue", "revenue", codeableconcept.CodeableConcept, False, None, False),
            ("sequence", "sequence", int, False, None, True),
            ("subDetail", "subDetail", ExplanationOfBenefitItemDetailSubDetail, True, None, False),
            ("udi", "udi", fhirreference.FHIRReference, True, None, False),
            ("unitPrice", "unitPrice", money.Money, False, None, False),
        ])
        return js


class ExplanationOfBenefitItemDetailSubDetail(backboneelement.BackboneElement):
    """ 
    A
    d
    d
    i
    t
    i
    o
    n
    a
    l
    i
    t
    e
    m
    s
    .
    
    
    T
    h
    i
    r
    d
    -
    t
    i
    e
    r
    o
    f
    g
    o
    o
    d
    s
    a
    n
    d
    s
    e
    r
    v
    i
    c
    e
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitItemDetailSubDetail"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.adjudication = None
        """ 
        S
        u
        b
        d
        e
        t
        a
        i
        l
        l
        e
        v
        e
        l
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        d
        e
        t
        a
        i
        l
        s
        .
        List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). """
        
        self.category = None
        """ 
        B
        e
        n
        e
        f
        i
        t
        c
        l
        a
        s
        s
        i
        f
        i
        c
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.factor = None
        """ 
        P
        r
        i
        c
        e
        s
        c
        a
        l
        i
        n
        g
        f
        a
        c
        t
        o
        r
        .
        Type `float`. """
        
        self.modifier = None
        """ 
        S
        e
        r
        v
        i
        c
        e
        /
        P
        r
        o
        d
        u
        c
        t
        b
        i
        l
        l
        i
        n
        g
        m
        o
        d
        i
        f
        i
        e
        r
        s
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.net = None
        """ 
        T
        o
        t
        a
        l
        i
        t
        e
        m
        c
        o
        s
        t
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.noteNumber = None
        """ 
        A
        p
        p
        l
        i
        c
        a
        b
        l
        e
        n
        o
        t
        e
        n
        u
        m
        b
        e
        r
        s
        .
        List of `int` items. """
        
        self.productOrService = None
        """ 
        B
        i
        l
        l
        i
        n
        g
        ,
        s
        e
        r
        v
        i
        c
        e
        ,
        p
        r
        o
        d
        u
        c
        t
        ,
        o
        r
        d
        r
        u
        g
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.programCode = None
        """ 
        P
        r
        o
        g
        r
        a
        m
        t
        h
        e
        p
        r
        o
        d
        u
        c
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        i
        s
        p
        r
        o
        v
        i
        d
        e
        d
        u
        n
        d
        e
        r
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.quantity = None
        """ 
        C
        o
        u
        n
        t
        o
        f
        p
        r
        o
        d
        u
        c
        t
        s
        o
        r
        s
        e
        r
        v
        i
        c
        e
        s
        .
        Type `Quantity` (represented as `dict` in JSON). """
        
        self.revenue = None
        """ 
        R
        e
        v
        e
        n
        u
        e
        o
        r
        c
        o
        s
        t
        c
        e
        n
        t
        e
        r
        c
        o
        d
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.sequence = None
        """ 
        P
        r
        o
        d
        u
        c
        t
        o
        r
        s
        e
        r
        v
        i
        c
        e
        p
        r
        o
        v
        i
        d
        e
        d
        .
        Type `int`. """
        
        self.udi = None
        """ 
        U
        n
        i
        q
        u
        e
        d
        e
        v
        i
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        List of `FHIRReference` items (represented as `dict` in JSON). """
        
        self.unitPrice = None
        """ 
        F
        e
        e
        ,
        c
        h
        a
        r
        g
        e
        o
        r
        c
        o
        s
        t
        p
        e
        r
        i
        t
        e
        m
        .
        Type `Money` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitItemDetailSubDetail, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitItemDetailSubDetail, self).elementProperties()
        js.extend([
            ("adjudication", "adjudication", ExplanationOfBenefitItemAdjudication, True, None, False),
            ("category", "category", codeableconcept.CodeableConcept, False, None, False),
            ("factor", "factor", float, False, None, False),
            ("modifier", "modifier", codeableconcept.CodeableConcept, True, None, False),
            ("net", "net", money.Money, False, None, False),
            ("noteNumber", "noteNumber", int, True, None, False),
            ("productOrService", "productOrService", codeableconcept.CodeableConcept, False, None, True),
            ("programCode", "programCode", codeableconcept.CodeableConcept, True, None, False),
            ("quantity", "quantity", quantity.Quantity, False, None, False),
            ("revenue", "revenue", codeableconcept.CodeableConcept, False, None, False),
            ("sequence", "sequence", int, False, None, True),
            ("udi", "udi", fhirreference.FHIRReference, True, None, False),
            ("unitPrice", "unitPrice", money.Money, False, None, False),
        ])
        return js


class ExplanationOfBenefitPayee(backboneelement.BackboneElement):
    """ 
    R
    e
    c
    i
    p
    i
    e
    n
    t
    o
    f
    b
    e
    n
    e
    f
    i
    t
    s
    p
    a
    y
    a
    b
    l
    e
    .
    
    
    T
    h
    e
    p
    a
    r
    t
    y
    t
    o
    b
    e
    r
    e
    i
    m
    b
    u
    r
    s
    e
    d
    f
    o
    r
    c
    o
    s
    t
    o
    f
    t
    h
    e
    p
    r
    o
    d
    u
    c
    t
    s
    a
    n
    d
    s
    e
    r
    v
    i
    c
    e
    s
    a
    c
    c
    o
    r
    d
    i
    n
    g
    t
    o
    t
    h
    e
    t
    e
    r
    m
    s
    o
    f
    t
    h
    e
    p
    o
    l
    i
    c
    y
    .
    
    """
    
    resource_type = "ExplanationOfBenefitPayee"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.party = None
        """ 
        R
        e
        c
        i
        p
        i
        e
        n
        t
        r
        e
        f
        e
        r
        e
        n
        c
        e
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.type = None
        """ 
        C
        a
        t
        e
        g
        o
        r
        y
        o
        f
        r
        e
        c
        i
        p
        i
        e
        n
        t
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitPayee, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitPayee, self).elementProperties()
        js.extend([
            ("party", "party", fhirreference.FHIRReference, False, None, False),
            ("type", "type", codeableconcept.CodeableConcept, False, None, False),
        ])
        return js


class ExplanationOfBenefitPayment(backboneelement.BackboneElement):
    """ 
    P
    a
    y
    m
    e
    n
    t
    D
    e
    t
    a
    i
    l
    s
    .
    
    
    P
    a
    y
    m
    e
    n
    t
    d
    e
    t
    a
    i
    l
    s
    f
    o
    r
    t
    h
    e
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    o
    f
    t
    h
    e
    c
    l
    a
    i
    m
    .
    
    """
    
    resource_type = "ExplanationOfBenefitPayment"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.adjustment = None
        """ 
        P
        a
        y
        m
        e
        n
        t
        a
        d
        j
        u
        s
        t
        m
        e
        n
        t
        f
        o
        r
        n
        o
        n
        -
        c
        l
        a
        i
        m
        i
        s
        s
        u
        e
        s
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.adjustmentReason = None
        """ 
        E
        x
        p
        l
        a
        n
        a
        t
        i
        o
        n
        f
        o
        r
        t
        h
        e
        v
        a
        r
        i
        a
        n
        c
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.amount = None
        """ 
        P
        a
        y
        a
        b
        l
        e
        a
        m
        o
        u
        n
        t
        a
        f
        t
        e
        r
        a
        d
        j
        u
        s
        t
        m
        e
        n
        t
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.date = None
        """ 
        E
        x
        p
        e
        c
        t
        e
        d
        d
        a
        t
        e
        o
        f
        p
        a
        y
        m
        e
        n
        t
        .
        Type `FHIRDate` (represented as `str` in JSON). """
        
        self.identifier = None
        """ 
        B
        u
        s
        i
        n
        e
        s
        s
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        f
        o
        r
        t
        h
        e
        p
        a
        y
        m
        e
        n
        t
        .
        Type `Identifier` (represented as `dict` in JSON). """
        
        self.type = None
        """ 
        P
        a
        r
        t
        i
        a
        l
        o
        r
        c
        o
        m
        p
        l
        e
        t
        e
        p
        a
        y
        m
        e
        n
        t
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitPayment, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitPayment, self).elementProperties()
        js.extend([
            ("adjustment", "adjustment", money.Money, False, None, False),
            ("adjustmentReason", "adjustmentReason", codeableconcept.CodeableConcept, False, None, False),
            ("amount", "amount", money.Money, False, None, False),
            ("date", "date", fhirdate.FHIRDate, False, None, False),
            ("identifier", "identifier", identifier.Identifier, False, None, False),
            ("type", "type", codeableconcept.CodeableConcept, False, None, False),
        ])
        return js


class ExplanationOfBenefitProcedure(backboneelement.BackboneElement):
    """ 
    C
    l
    i
    n
    i
    c
    a
    l
    p
    r
    o
    c
    e
    d
    u
    r
    e
    s
    p
    e
    r
    f
    o
    r
    m
    e
    d
    .
    
    
    P
    r
    o
    c
    e
    d
    u
    r
    e
    s
    p
    e
    r
    f
    o
    r
    m
    e
    d
    o
    n
    t
    h
    e
    p
    a
    t
    i
    e
    n
    t
    r
    e
    l
    e
    v
    a
    n
    t
    t
    o
    t
    h
    e
    b
    i
    l
    l
    i
    n
    g
    i
    t
    e
    m
    s
    w
    i
    t
    h
    t
    h
    e
    c
    l
    a
    i
    m
    .
    
    """
    
    resource_type = "ExplanationOfBenefitProcedure"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.date = None
        """ 
        W
        h
        e
        n
        t
        h
        e
        p
        r
        o
        c
        e
        d
        u
        r
        e
        w
        a
        s
        p
        e
        r
        f
        o
        r
        m
        e
        d
        .
        Type `FHIRDate` (represented as `str` in JSON). """
        
        self.procedureCodeableConcept = None
        """ 
        S
        p
        e
        c
        i
        f
        i
        c
        c
        l
        i
        n
        i
        c
        a
        l
        p
        r
        o
        c
        e
        d
        u
        r
        e
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.procedureReference = None
        """ 
        S
        p
        e
        c
        i
        f
        i
        c
        c
        l
        i
        n
        i
        c
        a
        l
        p
        r
        o
        c
        e
        d
        u
        r
        e
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.sequence = None
        """ 
        P
        r
        o
        c
        e
        d
        u
        r
        e
        i
        n
        s
        t
        a
        n
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        Type `int`. """
        
        self.type = None
        """ 
        C
        a
        t
        e
        g
        o
        r
        y
        o
        f
        P
        r
        o
        c
        e
        d
        u
        r
        e
        .
        List of `CodeableConcept` items (represented as `dict` in JSON). """
        
        self.udi = None
        """ 
        U
        n
        i
        q
        u
        e
        d
        e
        v
        i
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        List of `FHIRReference` items (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitProcedure, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitProcedure, self).elementProperties()
        js.extend([
            ("date", "date", fhirdate.FHIRDate, False, None, False),
            ("procedureCodeableConcept", "procedureCodeableConcept", codeableconcept.CodeableConcept, False, "procedure", True),
            ("procedureReference", "procedureReference", fhirreference.FHIRReference, False, "procedure", True),
            ("sequence", "sequence", int, False, None, True),
            ("type", "type", codeableconcept.CodeableConcept, True, None, False),
            ("udi", "udi", fhirreference.FHIRReference, True, None, False),
        ])
        return js


class ExplanationOfBenefitProcessNote(backboneelement.BackboneElement):
    """ 
    N
    o
    t
    e
    c
    o
    n
    c
    e
    r
    n
    i
    n
    g
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    .
    
    
    A
    n
    o
    t
    e
    t
    h
    a
    t
    d
    e
    s
    c
    r
    i
    b
    e
    s
    o
    r
    e
    x
    p
    l
    a
    i
    n
    s
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    r
    e
    s
    u
    l
    t
    s
    i
    n
    a
    h
    u
    m
    a
    n
    r
    e
    a
    d
    a
    b
    l
    e
    f
    o
    r
    m
    .
    
    """
    
    resource_type = "ExplanationOfBenefitProcessNote"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.language = None
        """ 
        L
        a
        n
        g
        u
        a
        g
        e
        o
        f
        t
        h
        e
        t
        e
        x
        t
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.number = None
        """ 
        N
        o
        t
        e
        i
        n
        s
        t
        a
        n
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        Type `int`. """
        
        self.text = None
        """ 
        N
        o
        t
        e
        e
        x
        p
        l
        a
        n
        a
        t
        o
        r
        y
        t
        e
        x
        t
        .
        Type `str`. """
        
        self.type = None
        """ 
        d
        i
        s
        p
        l
        a
        y
        |
        p
        r
        i
        n
        t
        |
        p
        r
        i
        n
        t
        o
        p
        e
        r
        .
        Type `str`. """
        
        super(ExplanationOfBenefitProcessNote, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitProcessNote, self).elementProperties()
        js.extend([
            ("language", "language", codeableconcept.CodeableConcept, False, None, False),
            ("number", "number", int, False, None, False),
            ("text", "text", str, False, None, False),
            ("type", "type", str, False, None, False),
        ])
        return js


class ExplanationOfBenefitRelated(backboneelement.BackboneElement):
    """ 
    P
    r
    i
    o
    r
    o
    r
    c
    o
    r
    o
    l
    l
    a
    r
    y
    c
    l
    a
    i
    m
    s
    .
    
    
    O
    t
    h
    e
    r
    c
    l
    a
    i
    m
    s
    w
    h
    i
    c
    h
    a
    r
    e
    r
    e
    l
    a
    t
    e
    d
    t
    o
    t
    h
    i
    s
    c
    l
    a
    i
    m
    s
    u
    c
    h
    a
    s
    p
    r
    i
    o
    r
    s
    u
    b
    m
    i
    s
    s
    i
    o
    n
    s
    o
    r
    c
    l
    a
    i
    m
    s
    f
    o
    r
    r
    e
    l
    a
    t
    e
    d
    s
    e
    r
    v
    i
    c
    e
    s
    o
    r
    f
    o
    r
    t
    h
    e
    s
    a
    m
    e
    e
    v
    e
    n
    t
    .
    
    """
    
    resource_type = "ExplanationOfBenefitRelated"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.claim = None
        """ 
        R
        e
        f
        e
        r
        e
        n
        c
        e
        t
        o
        t
        h
        e
        r
        e
        l
        a
        t
        e
        d
        c
        l
        a
        i
        m
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.reference = None
        """ 
        F
        i
        l
        e
        o
        r
        c
        a
        s
        e
        r
        e
        f
        e
        r
        e
        n
        c
        e
        .
        Type `Identifier` (represented as `dict` in JSON). """
        
        self.relationship = None
        """ 
        H
        o
        w
        t
        h
        e
        r
        e
        f
        e
        r
        e
        n
        c
        e
        c
        l
        a
        i
        m
        i
        s
        r
        e
        l
        a
        t
        e
        d
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitRelated, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitRelated, self).elementProperties()
        js.extend([
            ("claim", "claim", fhirreference.FHIRReference, False, None, False),
            ("reference", "reference", identifier.Identifier, False, None, False),
            ("relationship", "relationship", codeableconcept.CodeableConcept, False, None, False),
        ])
        return js


class ExplanationOfBenefitSupportingInfo(backboneelement.BackboneElement):
    """ 
    S
    u
    p
    p
    o
    r
    t
    i
    n
    g
    i
    n
    f
    o
    r
    m
    a
    t
    i
    o
    n
    .
    
    
    A
    d
    d
    i
    t
    i
    o
    n
    a
    l
    i
    n
    f
    o
    r
    m
    a
    t
    i
    o
    n
    c
    o
    d
    e
    s
    r
    e
    g
    a
    r
    d
    i
    n
    g
    e
    x
    c
    e
    p
    t
    i
    o
    n
    s
    ,
    s
    p
    e
    c
    i
    a
    l
    c
    o
    n
    s
    i
    d
    e
    r
    a
    t
    i
    o
    n
    s
    ,
    t
    h
    e
    c
    o
    n
    d
    i
    t
    i
    o
    n
    ,
    s
    i
    t
    u
    a
    t
    i
    o
    n
    ,
    p
    r
    i
    o
    r
    o
    r
    c
    o
    n
    c
    u
    r
    r
    e
    n
    t
    i
    s
    s
    u
    e
    s
    .
    
    """
    
    resource_type = "ExplanationOfBenefitSupportingInfo"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.category = None
        """ 
        C
        l
        a
        s
        s
        i
        f
        i
        c
        a
        t
        i
        o
        n
        o
        f
        t
        h
        e
        s
        u
        p
        p
        l
        i
        e
        d
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.code = None
        """ 
        T
        y
        p
        e
        o
        f
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        self.reason = None
        """ 
        E
        x
        p
        l
        a
        n
        a
        t
        i
        o
        n
        f
        o
        r
        t
        h
        e
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        Type `Coding` (represented as `dict` in JSON). """
        
        self.sequence = None
        """ 
        I
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        i
        n
        s
        t
        a
        n
        c
        e
        i
        d
        e
        n
        t
        i
        f
        i
        e
        r
        .
        Type `int`. """
        
        self.timingDate = None
        """ 
        W
        h
        e
        n
        i
        t
        o
        c
        c
        u
        r
        r
        e
        d
        .
        Type `FHIRDate` (represented as `str` in JSON). """
        
        self.timingPeriod = None
        """ 
        W
        h
        e
        n
        i
        t
        o
        c
        c
        u
        r
        r
        e
        d
        .
        Type `Period` (represented as `dict` in JSON). """
        
        self.valueAttachment = None
        """ 
        D
        a
        t
        a
        t
        o
        b
        e
        p
        r
        o
        v
        i
        d
        e
        d
        .
        Type `Attachment` (represented as `dict` in JSON). """
        
        self.valueBoolean = None
        """ 
        D
        a
        t
        a
        t
        o
        b
        e
        p
        r
        o
        v
        i
        d
        e
        d
        .
        Type `bool`. """
        
        self.valueQuantity = None
        """ 
        D
        a
        t
        a
        t
        o
        b
        e
        p
        r
        o
        v
        i
        d
        e
        d
        .
        Type `Quantity` (represented as `dict` in JSON). """
        
        self.valueReference = None
        """ 
        D
        a
        t
        a
        t
        o
        b
        e
        p
        r
        o
        v
        i
        d
        e
        d
        .
        Type `FHIRReference` (represented as `dict` in JSON). """
        
        self.valueString = None
        """ 
        D
        a
        t
        a
        t
        o
        b
        e
        p
        r
        o
        v
        i
        d
        e
        d
        .
        Type `str`. """
        
        super(ExplanationOfBenefitSupportingInfo, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitSupportingInfo, self).elementProperties()
        js.extend([
            ("category", "category", codeableconcept.CodeableConcept, False, None, True),
            ("code", "code", codeableconcept.CodeableConcept, False, None, False),
            ("reason", "reason", coding.Coding, False, None, False),
            ("sequence", "sequence", int, False, None, True),
            ("timingDate", "timingDate", fhirdate.FHIRDate, False, "timing", False),
            ("timingPeriod", "timingPeriod", period.Period, False, "timing", False),
            ("valueAttachment", "valueAttachment", attachment.Attachment, False, "value", False),
            ("valueBoolean", "valueBoolean", bool, False, "value", False),
            ("valueQuantity", "valueQuantity", quantity.Quantity, False, "value", False),
            ("valueReference", "valueReference", fhirreference.FHIRReference, False, "value", False),
            ("valueString", "valueString", str, False, "value", False),
        ])
        return js


class ExplanationOfBenefitTotal(backboneelement.BackboneElement):
    """ 
    A
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    t
    o
    t
    a
    l
    s
    .
    
    
    C
    a
    t
    e
    g
    o
    r
    i
    z
    e
    d
    m
    o
    n
    e
    t
    a
    r
    y
    t
    o
    t
    a
    l
    s
    f
    o
    r
    t
    h
    e
    a
    d
    j
    u
    d
    i
    c
    a
    t
    i
    o
    n
    .
    
    """
    
    resource_type = "ExplanationOfBenefitTotal"
    
    def __init__(self, jsondict=None, strict=True):
        """ Initialize all valid properties.
        
        :raises: FHIRValidationError on validation errors, unless strict is False
        :param dict jsondict: A JSON dictionary to use for initialization
        :param bool strict: If True (the default), invalid variables will raise a TypeError
        """
        
        self.amount = None
        """ 
        F
        i
        n
        a
        n
        c
        i
        a
        l
        t
        o
        t
        a
        l
        f
        o
        r
        t
        h
        e
        c
        a
        t
        e
        g
        o
        r
        y
        .
        Type `Money` (represented as `dict` in JSON). """
        
        self.category = None
        """ 
        T
        y
        p
        e
        o
        f
        a
        d
        j
        u
        d
        i
        c
        a
        t
        i
        o
        n
        i
        n
        f
        o
        r
        m
        a
        t
        i
        o
        n
        .
        Type `CodeableConcept` (represented as `dict` in JSON). """
        
        super(ExplanationOfBenefitTotal, self).__init__(jsondict=jsondict, strict=strict)
    
    def elementProperties(self):
        js = super(ExplanationOfBenefitTotal, self).elementProperties()
        js.extend([
            ("amount", "amount", money.Money, False, None, True),
            ("category", "category", codeableconcept.CodeableConcept, False, None, True),
        ])
        return js


import sys
try:
    from . import address
except ImportError:
    address = sys.modules[__package__ + '.address']
try:
    from . import attachment
except ImportError:
    attachment = sys.modules[__package__ + '.attachment']
try:
    from . import codeableconcept
except ImportError:
    codeableconcept = sys.modules[__package__ + '.codeableconcept']
try:
    from . import coding
except ImportError:
    coding = sys.modules[__package__ + '.coding']
try:
    from . import fhirdate
except ImportError:
    fhirdate = sys.modules[__package__ + '.fhirdate']
try:
    from . import fhirreference
except ImportError:
    fhirreference = sys.modules[__package__ + '.fhirreference']
try:
    from . import identifier
except ImportError:
    identifier = sys.modules[__package__ + '.identifier']
try:
    from . import money
except ImportError:
    money = sys.modules[__package__ + '.money']
try:
    from . import period
except ImportError:
    period = sys.modules[__package__ + '.period']
try:
    from . import quantity
except ImportError:
    quantity = sys.modules[__package__ + '.quantity']
#!/usr/bin/env python # -*- coding: utf-8 -*- # #  Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit) on 2019-01-22. #  2019, SMART Health IT. E     x     p     l     a     n     a     t     i     o     n     o     f     B     e     n     e     f     i     t     r     e     s     o     u     r     c     e     .               T     h     i     s     r     e     s     o     u     r     c     e     p     r     o     v     i     d     e     s     :     t     h     e     c     l     a     i     m     d     e     t     a     i     l     s     ;     a     d     j     u     d     i     c     a     t     i     o     n     d     e     t     a     i     l     s     f     r     o     m     t     h     e     p     r     o     c     e     s     s     i     n     g     o     f     a     C     l     a     i     m     ;     a     n     d     o     p     t     i     o     n     a     l     l     y     a     c     c     o     u     n     t     b     a     l     a     n     c     e     i     n     f     o     r     m     a     t     i     o     n     ,     f     o     r     i     n     f     o     r     m     i     n     g     t     h     e     s     u     b     s     c     r     i     b     e     r     o     f     t     h     e     b     e     n     e     f     i     t     s     p     r     o     v     i     d     e     d     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError D         e         t         a         i         l         s         o         f         t         h         e         e         v         e         n         t         .         Type `ExplanationOfBenefitAccident` (represented as `dict` in JSON). I         n         s         u         r         e         r         a         d         d         e         d         l         i         n         e         i         t         e         m         s         .         List of `ExplanationOfBenefitAddItem` items (represented as `dict` in JSON). H         e         a         d         e         r         -         l         e         v         e         l         a         d         j         u         d         i         c         a         t         i         o         n         .         List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). B         a         l         a         n         c         e         b         y         B         e         n         e         f         i         t         C         a         t         e         g         o         r         y         .         List of `ExplanationOfBenefitBenefitBalance` items (represented as `dict` in JSON). W         h         e         n         t         h         e         b         e         n         e         f         i         t         s         a         r         e         a         p         p         l         i         c         a         b         l         e         .         Type `Period` (represented as `dict` in JSON). R         e         l         e         v         a         n         t         t         i         m         e         f         r         a         m         e         f         o         r         t         h         e         c         l         a         i         m         .         Type `Period` (represented as `dict` in JSON). C         a         r         e         T         e         a         m         m         e         m         b         e         r         s         .         List of `ExplanationOfBenefitCareTeam` items (represented as `dict` in JSON). C         l         a         i         m         r         e         f         e         r         e         n         c         e         .         Type `FHIRReference` (represented as `dict` in JSON). C         l         a         i         m         r         e         s         p         o         n         s         e         r         e         f         e         r         e         n         c         e         .         Type `FHIRReference` (represented as `dict` in JSON). R         e         s         p         o         n         s         e         c         r         e         a         t         i         o         n         d         a         t         e         .         Type `FHIRDate` (represented as `str` in JSON). P         e         r         t         i         n         e         n         t         d         i         a         g         n         o         s         i         s         i         n         f         o         r         m         a         t         i         o         n         .         List of `ExplanationOfBenefitDiagnosis` items (represented as `dict` in JSON). D         i         s         p         o         s         i         t         i         o         n         M         e         s         s         a         g         e         .         Type `str`. A         u         t         h         o         r         o         f         t         h         e         c         l         a         i         m         .         Type `FHIRReference` (represented as `dict` in JSON). S         e         r         v         i         c         i         n         g         F         a         c         i         l         i         t         y         .         Type `FHIRReference` (represented as `dict` in JSON). P         r         i         n         t         e         d         r         e         f         e         r         e         n         c         e         o         r         a         c         t         u         a         l         f         o         r         m         .         Type `Attachment` (represented as `dict` in JSON). P         r         i         n         t         e         d         f         o         r         m         i         d         e         n         t         i         f         i         e         r         .         Type `CodeableConcept` (represented as `dict` in JSON). F         u         n         d         s         r         e         s         e         r         v         e         d         s         t         a         t         u         s         .         Type `CodeableConcept` (represented as `dict` in JSON). F         o         r         w         h         o         m         t         o         r         e         s         e         r         v         e         f         u         n         d         s         .         Type `CodeableConcept` (represented as `dict` in JSON). B         u         s         i         n         e         s         s         I         d         e         n         t         i         f         i         e         r         f         o         r         t         h         e         r         e         s         o         u         r         c         e         .         List of `Identifier` items (represented as `dict` in JSON). P         a         t         i         e         n         t         i         n         s         u         r         a         n         c         e         i         n         f         o         r         m         a         t         i         o         n         .         List of `ExplanationOfBenefitInsurance` items (represented as `dict` in JSON). P         a         r         t         y         r         e         s         p         o         n         s         i         b         l         e         f         o         r         r         e         i         m         b         u         r         s         e         m         e         n         t         .         Type `FHIRReference` (represented as `dict` in JSON). P         r         o         d         u         c         t         o         r         s         e         r         v         i         c         e         p         r         o         v         i         d         e         d         .         List of `ExplanationOfBenefitItem` items (represented as `dict` in JSON). O         r         i         g         i         n         a         l         p         r         e         s         c         r         i         p         t         i         o         n         i         f         s         u         p         e         r         c         e         d         e         d         b         y         f         u         l         f         i         l         l         e         r         .         Type `FHIRReference` (represented as `dict` in JSON). q         u         e         u         e         d         |         c         o         m         p         l         e         t         e         |         e         r         r         o         r         |         p         a         r         t         i         a         l         .         Type `str`. T         h         e         r         e         c         i         p         i         e         n         t         o         f         t         h         e         p         r         o         d         u         c         t         s         a         n         d         s         e         r         v         i         c         e         s         .         Type `FHIRReference` (represented as `dict` in JSON). R         e         c         i         p         i         e         n         t         o         f         b         e         n         e         f         i         t         s         p         a         y         a         b         l         e         .         Type `ExplanationOfBenefitPayee` (represented as `dict` in JSON). P         a         y         m         e         n         t         D         e         t         a         i         l         s         .         Type `ExplanationOfBenefitPayment` (represented as `dict` in JSON). P         r         e         a         u         t         h         o         r         i         z         a         t         i         o         n         r         e         f         e         r         e         n         c         e         .         List of `str` items. P         r         e         a         u         t         h         o         r         i         z         a         t         i         o         n         i         n         -         e         f         f         e         c         t         p         e         r         i         o         d         .         List of `Period` items (represented as `dict` in JSON). P         r         e         c         e         d         e         n         c         e         (         p         r         i         m         a         r         y         ,         s         e         c         o         n         d         a         r         y         ,         e         t         c         .         )         .         Type `int`. P         r         e         s         c         r         i         p         t         i         o         n         a         u         t         h         o         r         i         z         i         n         g         s         e         r         v         i         c         e         s         o         r         p         r         o         d         u         c         t         s         .         Type `FHIRReference` (represented as `dict` in JSON). D         e         s         i         r         e         d         p         r         o         c         e         s         s         i         n         g         u         r         g         e         n         c         y         .         Type `CodeableConcept` (represented as `dict` in JSON). C         l         i         n         i         c         a         l         p         r         o         c         e         d         u         r         e         s         p         e         r         f         o         r         m         e         d         .         List of `ExplanationOfBenefitProcedure` items (represented as `dict` in JSON). N         o         t         e         c         o         n         c         e         r         n         i         n         g         a         d         j         u         d         i         c         a         t         i         o         n         .         List of `ExplanationOfBenefitProcessNote` items (represented as `dict` in JSON). P         a         r         t         y         r         e         s         p         o         n         s         i         b         l         e         f         o         r         t         h         e         c         l         a         i         m         .         Type `FHIRReference` (represented as `dict` in JSON). T         r         e         a         t         m         e         n         t         R         e         f         e         r         r         a         l         .         Type `FHIRReference` (represented as `dict` in JSON). P         r         i         o         r         o         r         c         o         r         o         l         l         a         r         y         c         l         a         i         m         s         .         List of `ExplanationOfBenefitRelated` items (represented as `dict` in JSON). a         c         t         i         v         e         |         c         a         n         c         e         l         l         e         d         |         d         r         a         f         t         |         e         n         t         e         r         e         d         -         i         n         -         e         r         r         o         r         .         Type `str`. M         o         r         e         g         r         a         n         u         l         a         r         c         l         a         i         m         t         y         p         e         .         Type `CodeableConcept` (represented as `dict` in JSON). S         u         p         p         o         r         t         i         n         g         i         n         f         o         r         m         a         t         i         o         n         .         List of `ExplanationOfBenefitSupportingInfo` items (represented as `dict` in JSON). A         d         j         u         d         i         c         a         t         i         o         n         t         o         t         a         l         s         .         List of `ExplanationOfBenefitTotal` items (represented as `dict` in JSON). C         a         t         e         g         o         r         y         o         r         d         i         s         c         i         p         l         i         n         e         .         Type `CodeableConcept` (represented as `dict` in JSON). c         l         a         i         m         |         p         r         e         a         u         t         h         o         r         i         z         a         t         i         o         n         |         p         r         e         d         e         t         e         r         m         i         n         a         t         i         o         n         .         Type `str`. D     e     t     a     i     l     s     o     f     t     h     e     e     v     e     n     t     .               D     e     t     a     i     l     s     o     f     a     a     c     c     i     d     e     n     t     w     h     i     c     h     r     e     s     u     l     t     e     d     i     n     i     n     j     u     r     i     e     s     w     h     i     c     h     r     e     q     u     i     r     e     d     t     h     e     p     r     o     d     u     c     t     s     a     n     d     s     e     r     v     i     c     e     s     l     i     s     t     e     d     i     n     t     h     e     c     l     a     i     m     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError W         h         e         n         t         h         e         i         n         c         i         d         e         n         t         o         c         c         u         r         r         e         d         .         Type `FHIRDate` (represented as `str` in JSON). W         h         e         r         e         t         h         e         e         v         e         n         t         o         c         c         u         r         r         e         d         .         Type `Address` (represented as `dict` in JSON). W         h         e         r         e         t         h         e         e         v         e         n         t         o         c         c         u         r         r         e         d         .         Type `FHIRReference` (represented as `dict` in JSON). T         h         e         n         a         t         u         r         e         o         f         t         h         e         a         c         c         i         d         e         n         t         .         Type `CodeableConcept` (represented as `dict` in JSON). I     n     s     u     r     e     r     a     d     d     e     d     l     i     n     e     i     t     e     m     s     .               T     h     e     f     i     r     s     t     -     t     i     e     r     s     e     r     v     i     c     e     a     d     j     u     d     i     c     a     t     i     o     n     s     f     o     r     p     a     y     o     r     a     d     d     e     d     p     r     o     d     u     c     t     o     r     s     e     r     v     i     c     e     l     i     n     e     s     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError A         d         d         e         d         i         t         e         m         s         a         d         j         u         d         i         c         a         t         i         o         n         .         List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). A         n         a         t         o         m         i         c         a         l         l         o         c         a         t         i         o         n         .         Type `CodeableConcept` (represented as `dict` in JSON). I         n         s         u         r         e         r         a         d         d         e         d         l         i         n         e         i         t         e         m         s         .         List of `ExplanationOfBenefitAddItemDetail` items (represented as `dict` in JSON). D         e         t         a         i         l         s         e         q         u         e         n         c         e         n         u         m         b         e         r         .         List of `int` items. P         r         i         c         e         s         c         a         l         i         n         g         f         a         c         t         o         r         .         Type `float`. I         t         e         m         s         e         q         u         e         n         c         e         n         u         m         b         e         r         .         List of `int` items. P         l         a         c         e         o         f         s         e         r         v         i         c         e         o         r         w         h         e         r         e         p         r         o         d         u         c         t         w         a         s         s         u         p         p         l         i         e         d         .         Type `Address` (represented as `dict` in JSON). P         l         a         c         e         o         f         s         e         r         v         i         c         e         o         r         w         h         e         r         e         p         r         o         d         u         c         t         w         a         s         s         u         p         p         l         i         e         d         .         Type `CodeableConcept` (represented as `dict` in JSON). P         l         a         c         e         o         f         s         e         r         v         i         c         e         o         r         w         h         e         r         e         p         r         o         d         u         c         t         w         a         s         s         u         p         p         l         i         e         d         .         Type `FHIRReference` (represented as `dict` in JSON). S         e         r         v         i         c         e         /         P         r         o         d         u         c         t         b         i         l         l         i         n         g         m         o         d         i         f         i         e         r         s         .         List of `CodeableConcept` items (represented as `dict` in JSON). T         o         t         a         l         i         t         e         m         c         o         s         t         .         Type `Money` (represented as `dict` in JSON). A         p         p         l         i         c         a         b         l         e         n         o         t         e         n         u         m         b         e         r         s         .         List of `int` items. B         i         l         l         i         n         g         ,         s         e         r         v         i         c         e         ,         p         r         o         d         u         c         t         ,         o         r         d         r         u         g         c         o         d         e         .         Type `CodeableConcept` (represented as `dict` in JSON). P         r         o         g         r         a         m         t         h         e         p         r         o         d         u         c         t         o         r         s         e         r         v         i         c         e         i         s         p         r         o         v         i         d         e         d         u         n         d         e         r         .         List of `CodeableConcept` items (represented as `dict` in JSON). A         u         t         h         o         r         i         z         e         d         p         r         o         v         i         d         e         r         s         .         List of `FHIRReference` items (represented as `dict` in JSON). C         o         u         n         t         o         f         p         r         o         d         u         c         t         s         o         r         s         e         r         v         i         c         e         s         .         Type `Quantity` (represented as `dict` in JSON). D         a         t         e         o         r         d         a         t         e         s         o         f         s         e         r         v         i         c         e         o         r         p         r         o         d         u         c         t         d         e         l         i         v         e         r         y         .         Type `FHIRDate` (represented as `str` in JSON). D         a         t         e         o         r         d         a         t         e         s         o         f         s         e         r         v         i         c         e         o         r         p         r         o         d         u         c         t         d         e         l         i         v         e         r         y         .         Type `Period` (represented as `dict` in JSON). S         u         b         d         e         t         a         i         l         s         e         q         u         e         n         c         e         n         u         m         b         e         r         .         List of `int` items. A         n         a         t         o         m         i         c         a         l         s         u         b         -         l         o         c         a         t         i         o         n         .         List of `CodeableConcept` items (represented as `dict` in JSON). F         e         e         ,         c         h         a         r         g         e         o         r         c         o         s         t         p         e         r         i         t         e         m         .         Type `Money` (represented as `dict` in JSON). I     n     s     u     r     e     r     a     d     d     e     d     l     i     n     e     i     t     e     m     s     .               T     h     e     s     e     c     o     n     d     -     t     i     e     r     s     e     r     v     i     c     e     a     d     j     u     d     i     c     a     t     i     o     n     s     f     o     r     p     a     y     o     r     a     d     d     e     d     s     e     r     v     i     c     e     s     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError A         d         d         e         d         i         t         e         m         s         a         d         j         u         d         i         c         a         t         i         o         n         .         List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). P         r         i         c         e         s         c         a         l         i         n         g         f         a         c         t         o         r         .         Type `float`. S         e         r         v         i         c         e         /         P         r         o         d         u         c         t         b         i         l         l         i         n         g         m         o         d         i         f         i         e         r         s         .         List of `CodeableConcept` items (represented as `dict` in JSON). T         o         t         a         l         i         t         e         m         c         o         s         t         .         Type `Money` (represented as `dict` in JSON). A         p         p         l         i         c         a         b         l         e         n         o         t         e         n         u         m         b         e         r         s         .         List of `int` items. B         i         l         l         i         n         g         ,         s         e         r         v         i         c         e         ,         p         r         o         d         u         c         t         ,         o         r         d         r         u         g         c         o         d         e         .         Type `CodeableConcept` (represented as `dict` in JSON). C         o         u         n         t         o         f         p         r         o         d         u         c         t         s         o         r         s         e         r         v         i         c         e         s         .         Type `Quantity` (represented as `dict` in JSON). I         n         s         u         r         e         r         a         d         d         e         d         l         i         n         e         i         t         e         m         s         .         List of `ExplanationOfBenefitAddItemDetailSubDetail` items (represented as `dict` in JSON). F         e         e         ,         c         h         a         r         g         e         o         r         c         o         s         t         p         e         r         i         t         e         m         .         Type `Money` (represented as `dict` in JSON). I     n     s     u     r     e     r     a     d     d     e     d     l     i     n     e     i     t     e     m     s     .               T     h     e     t     h     i     r     d     -     t     i     e     r     s     e     r     v     i     c     e     a     d     j     u     d     i     c     a     t     i     o     n     s     f     o     r     p     a     y     o     r     a     d     d     e     d     s     e     r     v     i     c     e     s     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError A         d         d         e         d         i         t         e         m         s         a         d         j         u         d         i         c         a         t         i         o         n         .         List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). P         r         i         c         e         s         c         a         l         i         n         g         f         a         c         t         o         r         .         Type `float`. S         e         r         v         i         c         e         /         P         r         o         d         u         c         t         b         i         l         l         i         n         g         m         o         d         i         f         i         e         r         s         .         List of `CodeableConcept` items (represented as `dict` in JSON). T         o         t         a         l         i         t         e         m         c         o         s         t         .         Type `Money` (represented as `dict` in JSON). A         p         p         l         i         c         a         b         l         e         n         o         t         e         n         u         m         b         e         r         s         .         List of `int` items. B         i         l         l         i         n         g         ,         s         e         r         v         i         c         e         ,         p         r         o         d         u         c         t         ,         o         r         d         r         u         g         c         o         d         e         .         Type `CodeableConcept` (represented as `dict` in JSON). C         o         u         n         t         o         f         p         r         o         d         u         c         t         s         o         r         s         e         r         v         i         c         e         s         .         Type `Quantity` (represented as `dict` in JSON). F         e         e         ,         c         h         a         r         g         e         o         r         c         o         s         t         p         e         r         i         t         e         m         .         Type `Money` (represented as `dict` in JSON). B     a     l     a     n     c     e     b     y     B     e     n     e     f     i     t     C     a     t     e     g     o     r     y     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError B         e         n         e         f         i         t         c         l         a         s         s         i         f         i         c         a         t         i         o         n         .         Type `CodeableConcept` (represented as `dict` in JSON). D         e         s         c         r         i         p         t         i         o         n         o         f         t         h         e         b         e         n         e         f         i         t         o         r         s         e         r         v         i         c         e         s         c         o         v         e         r         e         d         .         Type `str`. E         x         c         l         u         d         e         d         f         r         o         m         t         h         e         p         l         a         n         .         Type `bool`. B         e         n         e         f         i         t         S         u         m         m         a         r         y         .         List of `ExplanationOfBenefitBenefitBalanceFinancial` items (represented as `dict` in JSON). S         h         o         r         t         n         a         m         e         f         o         r         t         h         e         b         e         n         e         f         i         t         .         Type `str`. I         n         o         r         o         u         t         o         f         n         e         t         w         o         r         k         .         Type `CodeableConcept` (represented as `dict` in JSON). A         n         n         u         a         l         o         r         l         i         f         e         t         i         m         e         .         Type `CodeableConcept` (represented as `dict` in JSON). I         n         d         i         v         i         d         u         a         l         o         r         f         a         m         i         l         y         .         Type `CodeableConcept` (represented as `dict` in JSON). B     e     n     e     f     i     t     S     u     m     m     a     r     y     .               B     e     n     e     f     i     t     s     U     s     e     d     t     o     d     a     t     e     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError B         e         n         e         f         i         t         s         a         l         l         o         w         e         d         .         Type `Money` (represented as `dict` in JSON). B         e         n         e         f         i         t         s         a         l         l         o         w         e         d         .         Type `str`. B         e         n         e         f         i         t         s         a         l         l         o         w         e         d         .         Type `int`. B         e         n         e         f         i         t         c         l         a         s         s         i         f         i         c         a         t         i         o         n         .         Type `CodeableConcept` (represented as `dict` in JSON). B         e         n         e         f         i         t         s         u         s         e         d         .         Type `Money` (represented as `dict` in JSON). B         e         n         e         f         i         t         s         u         s         e         d         .         Type `int`. C     a     r     e     T     e     a     m     m     e     m     b     e     r     s     .               T     h     e     m     e     m     b     e     r     s     o     f     t     h     e     t     e     a     m     w     h     o     p     r     o     v     i     d     e     d     t     h     e     p     r     o     d     u     c     t     s     a     n     d     s     e     r     v     i     c     e     s     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError P         r         a         c         t         i         t         i         o         n         e         r         o         r         o         r         g         a         n         i         z         a         t         i         o         n         .         Type `FHIRReference` (represented as `dict` in JSON). P         r         a         c         t         i         t         i         o         n         e         r         c         r         e         d         e         n         t         i         a         l         o         r         s         p         e         c         i         a         l         i         z         a         t         i         o         n         .         Type `CodeableConcept` (represented as `dict` in JSON). I         n         d         i         c         a         t         o         r         o         f         t         h         e         l         e         a         d         p         r         a         c         t         i         t         i         o         n         e         r         .         Type `bool`. F         u         n         c         t         i         o         n         w         i         t         h         i         n         t         h         e         t         e         a         m         .         Type `CodeableConcept` (represented as `dict` in JSON). O         r         d         e         r         o         f         c         a         r         e         t         e         a         m         .         Type `int`. P     e     r     t     i     n     e     n     t     d     i     a     g     n     o     s     i     s     i     n     f     o     r     m     a     t     i     o     n     .               I     n     f     o     r     m     a     t     i     o     n     a     b     o     u     t     d     i     a     g     n     o     s     e     s     r     e     l     e     v     a     n     t     t     o     t     h     e     c     l     a     i     m     i     t     e     m     s     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError N         a         t         u         r         e         o         f         i         l         l         n         e         s         s         o         r         p         r         o         b         l         e         m         .         Type `CodeableConcept` (represented as `dict` in JSON). N         a         t         u         r         e         o         f         i         l         l         n         e         s         s         o         r         p         r         o         b         l         e         m         .         Type `FHIRReference` (represented as `dict` in JSON). P         r         e         s         e         n         t         o         n         a         d         m         i         s         s         i         o         n         .         Type `CodeableConcept` (represented as `dict` in JSON). P         a         c         k         a         g         e         b         i         l         l         i         n         g         c         o         d         e         .         Type `CodeableConcept` (represented as `dict` in JSON). D         i         a         g         n         o         s         i         s         i         n         s         t         a         n         c         e         i         d         e         n         t         i         f         i         e         r         .         Type `int`. T         i         m         i         n         g         o         r         n         a         t         u         r         e         o         f         t         h         e         d         i         a         g         n         o         s         i         s         .         List of `CodeableConcept` items (represented as `dict` in JSON). P     a     t     i     e     n     t     i     n     s     u     r     a     n     c     e     i     n     f     o     r     m     a     t     i     o     n     .               F     i     n     a     n     c     i     a     l     i     n     s     t     r     u     m     e     n     t     s     f     o     r     r     e     i     m     b     u     r     s     e     m     e     n     t     f     o     r     t     h     e     h     e     a     l     t     h     c     a     r     e     p     r     o     d     u     c     t     s     a     n     d     s     e     r     v     i     c     e     s     s     p     e     c     i     f     i     e     d     o     n     t     h     e     c     l     a     i     m     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError I         n         s         u         r         a         n         c         e         i         n         f         o         r         m         a         t         i         o         n         .         Type `FHIRReference` (represented as `dict` in JSON). C         o         v         e         r         a         g         e         t         o         b         e         u         s         e         d         f         o         r         a         d         j         u         d         i         c         a         t         i         o         n         .         Type `bool`. P         r         i         o         r         a         u         t         h         o         r         i         z         a         t         i         o         n         r         e         f         e         r         e         n         c         e         n         u         m         b         e         r         .         List of `str` items. P     r     o     d     u     c     t     o     r     s     e     r     v     i     c     e     p     r     o     v     i     d     e     d     .               A     c     l     a     i     m     l     i     n     e     .     E     i     t     h     e     r     a     s     i     m     p     l     e     (     a     p     r     o     d     u     c     t     o     r     s     e     r     v     i     c     e     )     o     r     a     '     g     r     o     u     p     '     o     f     d     e     t     a     i     l     s     w     h     i     c     h     c     a     n     a     l     s     o     b     e     a     s     i     m     p     l     e     i     t     e     m     s     o     r     g     r     o     u     p     s     o     f     s     u     b     -     d     e     t     a     i     l     s     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError A         d         j         u         d         i         c         a         t         i         o         n         d         e         t         a         i         l         s         .         List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). A         n         a         t         o         m         i         c         a         l         l         o         c         a         t         i         o         n         .         Type `CodeableConcept` (represented as `dict` in JSON). A         p         p         l         i         c         a         b         l         e         c         a         r         e         t         e         a         m         m         e         m         b         e         r         s         .         List of `int` items. B         e         n         e         f         i         t         c         l         a         s         s         i         f         i         c         a         t         i         o         n         .         Type `CodeableConcept` (represented as `dict` in JSON). A         d         d         i         t         i         o         n         a         l         i         t         e         m         s         .         List of `ExplanationOfBenefitItemDetail` items (represented as `dict` in JSON). A         p         p         l         i         c         a         b         l         e         d         i         a         g         n         o         s         e         s         .         List of `int` items. E         n         c         o         u         n         t         e         r         s         r         e         l         a         t         e         d         t         o         t         h         i         s         b         i         l         l         e         d         i         t         e         m         .         List of `FHIRReference` items (represented as `dict` in JSON). P         r         i         c         e         s         c         a         l         i         n         g         f         a         c         t         o         r         .         Type `float`. A         p         p         l         i         c         a         b         l         e         e         x         c         e         p         t         i         o         n         a         n         d         s         u         p         p         o         r         t         i         n         g         i         n         f         o         r         m         a         t         i         o         n         .         List of `int` items. P         l         a         c         e         o         f         s         e         r         v         i         c         e         o         r         w         h         e         r         e         p         r         o         d         u         c         t         w         a         s         s         u         p         p         l         i         e         d         .         Type `Address` (represented as `dict` in JSON). P         l         a         c         e         o         f         s         e         r         v         i         c         e         o         r         w         h         e         r         e         p         r         o         d         u         c         t         w         a         s         s         u         p         p         l         i         e         d         .         Type `CodeableConcept` (represented as `dict` in JSON). P         l         a         c         e         o         f         s         e         r         v         i         c         e         o         r         w         h         e         r         e         p         r         o         d         u         c         t         w         a         s         s         u         p         p         l         i         e         d         .         Type `FHIRReference` (represented as `dict` in JSON). P         r         o         d         u         c         t         o         r         s         e         r         v         i         c         e         b         i         l         l         i         n         g         m         o         d         i         f         i         e         r         s         .         List of `CodeableConcept` items (represented as `dict` in JSON). T         o         t         a         l         i         t         e         m         c         o         s         t         .         Type `Money` (represented as `dict` in JSON). A         p         p         l         i         c         a         b         l         e         n         o         t         e         n         u         m         b         e         r         s         .         List of `int` items. A         p         p         l         i         c         a         b         l         e         p         r         o         c         e         d         u         r         e         s         .         List of `int` items. B         i         l         l         i         n         g         ,         s         e         r         v         i         c         e         ,         p         r         o         d         u         c         t         ,         o         r         d         r         u         g         c         o         d         e         .         Type `CodeableConcept` (represented as `dict` in JSON). P         r         o         g         r         a         m         t         h         e         p         r         o         d         u         c         t         o         r         s         e         r         v         i         c         e         i         s         p         r         o         v         i         d         e         d         u         n         d         e         r         .         List of `CodeableConcept` items (represented as `dict` in JSON). C         o         u         n         t         o         f         p         r         o         d         u         c         t         s         o         r         s         e         r         v         i         c         e         s         .         Type `Quantity` (represented as `dict` in JSON). R         e         v         e         n         u         e         o         r         c         o         s         t         c         e         n         t         e         r         c         o         d         e         .         Type `CodeableConcept` (represented as `dict` in JSON). I         t         e         m         i         n         s         t         a         n         c         e         i         d         e         n         t         i         f         i         e         r         .         Type `int`. D         a         t         e         o         r         d         a         t         e         s         o         f         s         e         r         v         i         c         e         o         r         p         r         o         d         u         c         t         d         e         l         i         v         e         r         y         .         Type `FHIRDate` (represented as `str` in JSON). D         a         t         e         o         r         d         a         t         e         s         o         f         s         e         r         v         i         c         e         o         r         p         r         o         d         u         c         t         d         e         l         i         v         e         r         y         .         Type `Period` (represented as `dict` in JSON). A         n         a         t         o         m         i         c         a         l         s         u         b         -         l         o         c         a         t         i         o         n         .         List of `CodeableConcept` items (represented as `dict` in JSON). U         n         i         q         u         e         d         e         v         i         c         e         i         d         e         n         t         i         f         i         e         r         .         List of `FHIRReference` items (represented as `dict` in JSON). F         e         e         ,         c         h         a         r         g         e         o         r         c         o         s         t         p         e         r         i         t         e         m         .         Type `Money` (represented as `dict` in JSON). A     d     j     u     d     i     c     a     t     i     o     n     d     e     t     a     i     l     s     .               I     f     t     h     i     s     i     t     e     m     i     s     a     g     r     o     u     p     t     h     e     n     t     h     e     v     a     l     u     e     s     h     e     r     e     a     r     e     a     s     u     m     m     a     r     y     o     f     t     h     e     a     d     j     u     d     i     c     a     t     i     o     n     o     f     t     h     e     d     e     t     a     i     l     i     t     e     m     s     .     I     f     t     h     i     s     i     t     e     m     i     s     a     s     i     m     p     l     e     p     r     o     d     u     c     t     o     r     s     e     r     v     i     c     e     t     h     e     n     t     h     i     s     i     s     t     h     e     r     e     s     u     l     t     o     f     t     h     e     a     d     j     u     d     i     c     a     t     i     o     n     o     f     t     h     i     s     i     t     e     m     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError M         o         n         e         t         a         r         y         a         m         o         u         n         t         .         Type `Money` (represented as `dict` in JSON). T         y         p         e         o         f         a         d         j         u         d         i         c         a         t         i         o         n         i         n         f         o         r         m         a         t         i         o         n         .         Type `CodeableConcept` (represented as `dict` in JSON). E         x         p         l         a         n         a         t         i         o         n         o         f         a         d         j         u         d         i         c         a         t         i         o         n         o         u         t         c         o         m         e         .         Type `CodeableConcept` (represented as `dict` in JSON). N         o         n         -         m         o         n         i         t         a         r         y         v         a         l         u         e         .         Type `float`. A     d     d     i     t     i     o     n     a     l     i     t     e     m     s     .               S     e     c     o     n     d     -     t     i     e     r     o     f     g     o     o     d     s     a     n     d     s     e     r     v     i     c     e     s     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError D         e         t         a         i         l         l         e         v         e         l         a         d         j         u         d         i         c         a         t         i         o         n         d         e         t         a         i         l         s         .         List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). B         e         n         e         f         i         t         c         l         a         s         s         i         f         i         c         a         t         i         o         n         .         Type `CodeableConcept` (represented as `dict` in JSON). P         r         i         c         e         s         c         a         l         i         n         g         f         a         c         t         o         r         .         Type `float`. S         e         r         v         i         c         e         /         P         r         o         d         u         c         t         b         i         l         l         i         n         g         m         o         d         i         f         i         e         r         s         .         List of `CodeableConcept` items (represented as `dict` in JSON). T         o         t         a         l         i         t         e         m         c         o         s         t         .         Type `Money` (represented as `dict` in JSON). A         p         p         l         i         c         a         b         l         e         n         o         t         e         n         u         m         b         e         r         s         .         List of `int` items. B         i         l         l         i         n         g         ,         s         e         r         v         i         c         e         ,         p         r         o         d         u         c         t         ,         o         r         d         r         u         g         c         o         d         e         .         Type `CodeableConcept` (represented as `dict` in JSON). P         r         o         g         r         a         m         t         h         e         p         r         o         d         u         c         t         o         r         s         e         r         v         i         c         e         i         s         p         r         o         v         i         d         e         d         u         n         d         e         r         .         List of `CodeableConcept` items (represented as `dict` in JSON). C         o         u         n         t         o         f         p         r         o         d         u         c         t         s         o         r         s         e         r         v         i         c         e         s         .         Type `Quantity` (represented as `dict` in JSON). R         e         v         e         n         u         e         o         r         c         o         s         t         c         e         n         t         e         r         c         o         d         e         .         Type `CodeableConcept` (represented as `dict` in JSON). P         r         o         d         u         c         t         o         r         s         e         r         v         i         c         e         p         r         o         v         i         d         e         d         .         Type `int`. A         d         d         i         t         i         o         n         a         l         i         t         e         m         s         .         List of `ExplanationOfBenefitItemDetailSubDetail` items (represented as `dict` in JSON). U         n         i         q         u         e         d         e         v         i         c         e         i         d         e         n         t         i         f         i         e         r         .         List of `FHIRReference` items (represented as `dict` in JSON). F         e         e         ,         c         h         a         r         g         e         o         r         c         o         s         t         p         e         r         i         t         e         m         .         Type `Money` (represented as `dict` in JSON). A     d     d     i     t     i     o     n     a     l     i     t     e     m     s     .               T     h     i     r     d     -     t     i     e     r     o     f     g     o     o     d     s     a     n     d     s     e     r     v     i     c     e     s     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError S         u         b         d         e         t         a         i         l         l         e         v         e         l         a         d         j         u         d         i         c         a         t         i         o         n         d         e         t         a         i         l         s         .         List of `ExplanationOfBenefitItemAdjudication` items (represented as `dict` in JSON). B         e         n         e         f         i         t         c         l         a         s         s         i         f         i         c         a         t         i         o         n         .         Type `CodeableConcept` (represented as `dict` in JSON). P         r         i         c         e         s         c         a         l         i         n         g         f         a         c         t         o         r         .         Type `float`. S         e         r         v         i         c         e         /         P         r         o         d         u         c         t         b         i         l         l         i         n         g         m         o         d         i         f         i         e         r         s         .         List of `CodeableConcept` items (represented as `dict` in JSON). T         o         t         a         l         i         t         e         m         c         o         s         t         .         Type `Money` (represented as `dict` in JSON). A         p         p         l         i         c         a         b         l         e         n         o         t         e         n         u         m         b         e         r         s         .         List of `int` items. B         i         l         l         i         n         g         ,         s         e         r         v         i         c         e         ,         p         r         o         d         u         c         t         ,         o         r         d         r         u         g         c         o         d         e         .         Type `CodeableConcept` (represented as `dict` in JSON). P         r         o         g         r         a         m         t         h         e         p         r         o         d         u         c         t         o         r         s         e         r         v         i         c         e         i         s         p         r         o         v         i         d         e         d         u         n         d         e         r         .         List of `CodeableConcept` items (represented as `dict` in JSON). C         o         u         n         t         o         f         p         r         o         d         u         c         t         s         o         r         s         e         r         v         i         c         e         s         .         Type `Quantity` (represented as `dict` in JSON). R         e         v         e         n         u         e         o         r         c         o         s         t         c         e         n         t         e         r         c         o         d         e         .         Type `CodeableConcept` (represented as `dict` in JSON). P         r         o         d         u         c         t         o         r         s         e         r         v         i         c         e         p         r         o         v         i         d         e         d         .         Type `int`. U         n         i         q         u         e         d         e         v         i         c         e         i         d         e         n         t         i         f         i         e         r         .         List of `FHIRReference` items (represented as `dict` in JSON). F         e         e         ,         c         h         a         r         g         e         o         r         c         o         s         t         p         e         r         i         t         e         m         .         Type `Money` (represented as `dict` in JSON). R     e     c     i     p     i     e     n     t     o     f     b     e     n     e     f     i     t     s     p     a     y     a     b     l     e     .               T     h     e     p     a     r     t     y     t     o     b     e     r     e     i     m     b     u     r     s     e     d     f     o     r     c     o     s     t     o     f     t     h     e     p     r     o     d     u     c     t     s     a     n     d     s     e     r     v     i     c     e     s     a     c     c     o     r     d     i     n     g     t     o     t     h     e     t     e     r     m     s     o     f     t     h     e     p     o     l     i     c     y     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError R         e         c         i         p         i         e         n         t         r         e         f         e         r         e         n         c         e         .         Type `FHIRReference` (represented as `dict` in JSON). C         a         t         e         g         o         r         y         o         f         r         e         c         i         p         i         e         n         t         .         Type `CodeableConcept` (represented as `dict` in JSON). P     a     y     m     e     n     t     D     e     t     a     i     l     s     .               P     a     y     m     e     n     t     d     e     t     a     i     l     s     f     o     r     t     h     e     a     d     j     u     d     i     c     a     t     i     o     n     o     f     t     h     e     c     l     a     i     m     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError P         a         y         m         e         n         t         a         d         j         u         s         t         m         e         n         t         f         o         r         n         o         n         -         c         l         a         i         m         i         s         s         u         e         s         .         Type `Money` (represented as `dict` in JSON). E         x         p         l         a         n         a         t         i         o         n         f         o         r         t         h         e         v         a         r         i         a         n         c         e         .         Type `CodeableConcept` (represented as `dict` in JSON). P         a         y         a         b         l         e         a         m         o         u         n         t         a         f         t         e         r         a         d         j         u         s         t         m         e         n         t         .         Type `Money` (represented as `dict` in JSON). E         x         p         e         c         t         e         d         d         a         t         e         o         f         p         a         y         m         e         n         t         .         Type `FHIRDate` (represented as `str` in JSON). B         u         s         i         n         e         s         s         i         d         e         n         t         i         f         i         e         r         f         o         r         t         h         e         p         a         y         m         e         n         t         .         Type `Identifier` (represented as `dict` in JSON). P         a         r         t         i         a         l         o         r         c         o         m         p         l         e         t         e         p         a         y         m         e         n         t         .         Type `CodeableConcept` (represented as `dict` in JSON). C     l     i     n     i     c     a     l     p     r     o     c     e     d     u     r     e     s     p     e     r     f     o     r     m     e     d     .               P     r     o     c     e     d     u     r     e     s     p     e     r     f     o     r     m     e     d     o     n     t     h     e     p     a     t     i     e     n     t     r     e     l     e     v     a     n     t     t     o     t     h     e     b     i     l     l     i     n     g     i     t     e     m     s     w     i     t     h     t     h     e     c     l     a     i     m     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError W         h         e         n         t         h         e         p         r         o         c         e         d         u         r         e         w         a         s         p         e         r         f         o         r         m         e         d         .         Type `FHIRDate` (represented as `str` in JSON). S         p         e         c         i         f         i         c         c         l         i         n         i         c         a         l         p         r         o         c         e         d         u         r         e         .         Type `CodeableConcept` (represented as `dict` in JSON). S         p         e         c         i         f         i         c         c         l         i         n         i         c         a         l         p         r         o         c         e         d         u         r         e         .         Type `FHIRReference` (represented as `dict` in JSON). P         r         o         c         e         d         u         r         e         i         n         s         t         a         n         c         e         i         d         e         n         t         i         f         i         e         r         .         Type `int`. C         a         t         e         g         o         r         y         o         f         P         r         o         c         e         d         u         r         e         .         List of `CodeableConcept` items (represented as `dict` in JSON). U         n         i         q         u         e         d         e         v         i         c         e         i         d         e         n         t         i         f         i         e         r         .         List of `FHIRReference` items (represented as `dict` in JSON). N     o     t     e     c     o     n     c     e     r     n     i     n     g     a     d     j     u     d     i     c     a     t     i     o     n     .               A     n     o     t     e     t     h     a     t     d     e     s     c     r     i     b     e     s     o     r     e     x     p     l     a     i     n     s     a     d     j     u     d     i     c     a     t     i     o     n     r     e     s     u     l     t     s     i     n     a     h     u     m     a     n     r     e     a     d     a     b     l     e     f     o     r     m     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError L         a         n         g         u         a         g         e         o         f         t         h         e         t         e         x         t         .         Type `CodeableConcept` (represented as `dict` in JSON). N         o         t         e         i         n         s         t         a         n         c         e         i         d         e         n         t         i         f         i         e         r         .         Type `int`. N         o         t         e         e         x         p         l         a         n         a         t         o         r         y         t         e         x         t         .         Type `str`. d         i         s         p         l         a         y         |         p         r         i         n         t         |         p         r         i         n         t         o         p         e         r         .         Type `str`. P     r     i     o     r     o     r     c     o     r     o     l     l     a     r     y     c     l     a     i     m     s     .               O     t     h     e     r     c     l     a     i     m     s     w     h     i     c     h     a     r     e     r     e     l     a     t     e     d     t     o     t     h     i     s     c     l     a     i     m     s     u     c     h     a     s     p     r     i     o     r     s     u     b     m     i     s     s     i     o     n     s     o     r     c     l     a     i     m     s     f     o     r     r     e     l     a     t     e     d     s     e     r     v     i     c     e     s     o     r     f     o     r     t     h     e     s     a     m     e     e     v     e     n     t     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError R         e         f         e         r         e         n         c         e         t         o         t         h         e         r         e         l         a         t         e         d         c         l         a         i         m         .         Type `FHIRReference` (represented as `dict` in JSON). F         i         l         e         o         r         c         a         s         e         r         e         f         e         r         e         n         c         e         .         Type `Identifier` (represented as `dict` in JSON). H         o         w         t         h         e         r         e         f         e         r         e         n         c         e         c         l         a         i         m         i         s         r         e         l         a         t         e         d         .         Type `CodeableConcept` (represented as `dict` in JSON). S     u     p     p     o     r     t     i     n     g     i     n     f     o     r     m     a     t     i     o     n     .               A     d     d     i     t     i     o     n     a     l     i     n     f     o     r     m     a     t     i     o     n     c     o     d     e     s     r     e     g     a     r     d     i     n     g     e     x     c     e     p     t     i     o     n     s     ,     s     p     e     c     i     a     l     c     o     n     s     i     d     e     r     a     t     i     o     n     s     ,     t     h     e     c     o     n     d     i     t     i     o     n     ,     s     i     t     u     a     t     i     o     n     ,     p     r     i     o     r     o     r     c     o     n     c     u     r     r     e     n     t     i     s     s     u     e     s     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError C         l         a         s         s         i         f         i         c         a         t         i         o         n         o         f         t         h         e         s         u         p         p         l         i         e         d         i         n         f         o         r         m         a         t         i         o         n         .         Type `CodeableConcept` (represented as `dict` in JSON). T         y         p         e         o         f         i         n         f         o         r         m         a         t         i         o         n         .         Type `CodeableConcept` (represented as `dict` in JSON). E         x         p         l         a         n         a         t         i         o         n         f         o         r         t         h         e         i         n         f         o         r         m         a         t         i         o         n         .         Type `Coding` (represented as `dict` in JSON). I         n         f         o         r         m         a         t         i         o         n         i         n         s         t         a         n         c         e         i         d         e         n         t         i         f         i         e         r         .         Type `int`. W         h         e         n         i         t         o         c         c         u         r         r         e         d         .         Type `FHIRDate` (represented as `str` in JSON). W         h         e         n         i         t         o         c         c         u         r         r         e         d         .         Type `Period` (represented as `dict` in JSON). D         a         t         a         t         o         b         e         p         r         o         v         i         d         e         d         .         Type `Attachment` (represented as `dict` in JSON). D         a         t         a         t         o         b         e         p         r         o         v         i         d         e         d         .         Type `bool`. D         a         t         a         t         o         b         e         p         r         o         v         i         d         e         d         .         Type `Quantity` (represented as `dict` in JSON). D         a         t         a         t         o         b         e         p         r         o         v         i         d         e         d         .         Type `FHIRReference` (represented as `dict` in JSON). D         a         t         a         t         o         b         e         p         r         o         v         i         d         e         d         .         Type `str`. A     d     j     u     d     i     c     a     t     i     o     n     t     o     t     a     l     s     .               C     a     t     e     g     o     r     i     z     e     d     m     o     n     e     t     a     r     y     t     o     t     a     l     s     f     o     r     t     h     e     a     d     j     u     d     i     c     a     t     i     o     n     . Initialize all valid properties.                  :raises: FHIRValidationError on validation errors, unless strict is False         :param dict jsondict: A JSON dictionary to use for initialization         :param bool strict: If True (the default), invalid variables will raise a TypeError F         i         n         a         n         c         i         a         l         t         o         t         a         l         f         o         r         t         h         e         c         a         t         e         g         o         r         y         .         Type `Money` (represented as `dict` in JSON). T         y         p         e         o         f         a         d         j         u         d         i         c         a         t         i         o         n         i         n         f         o         r         m         a         t         i         o         n         .         Type `CodeableConcept` (represented as `dict` in JSON).