{
  "resourceType": "StructureDefinition",
  "id": "Account",
  "meta": {
    "lastUpdated": "2021-01-01T21:58:31.578+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Financial.General"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 2
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "patient"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pa"
    },
    {
      "url": "http://hl7.org/fhir/build/StructureDefinition/entered-in-error-status",
      "valueCode": ".status = entered-in-error"
    }
  ],
  "url": "http://hl7.org/fhir/StructureDefinition/Account",
  "version": "4.6.0",
  "name": "Account",
  "status": "draft",
  "date": "2021-01-01T21:58:31+00:00",
  "publisher": "Health Level Seven International (Patient Administration)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/fhir"
        }
      ]
    },
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/pafm/index.cfm"
        }
      ]
    }
  ],
  "description": "A financial tool for tracking value accrued for a particular purpose.  In the healthcare field, used to track charges for a patient, cost centers, etc.",
  "fhirVersion": "4.6.0",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Account",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "derivation": "specialization",
  "differential": {
    "element": [
      {
        "id": "Account",
        "extension": [
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/svg",
            "valueCode": "0,0"
          }
        ],
        "path": "Account",
        "short": "Tracks balance, charges, for patient or cost center",
        "definition": "A financial tool for tracking value accrued for a particular purpose.  In the healthcare field, used to track charges for a patient, cost centers, etc.",
        "alias": [
          "Cost center",
          "Record"
        ],
        "min": 0,
        "max": "*",
        "mapping": [
          {
            "identity": "rim",
            "map": "Account"
          },
          {
            "identity": "w5",
            "map": "financial.support"
          }
        ]
      },
      {
        "id": "Account.identifier",
        "path": "Account.identifier",
        "short": "Account number",
        "definition": "Unique identifier used to reference the account.  Might or might not be intended for human use (e.g. credit card number).",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.identifier"
          },
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "id": "Account.status",
        "path": "Account.status",
        "short": "active | inactive | entered-in-error | on-hold | unknown",
        "definition": "Indicates whether the account is presently used/usable or not.",
        "comment": "This element is labeled as a modifier because the status contains the codes inactive and entered-in-error that mark the Account as not currently valid.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "isModifier": true,
        "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "AccountStatus"
            }
          ],
          "strength": "required",
          "description": "Indicates whether the account is available to be used.",
          "valueSet": "http://hl7.org/fhir/ValueSet/account-status"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.status"
          },
          {
            "identity": "rim",
            "map": ".statusCode"
          }
        ]
      },
      {
        "id": "Account.billingStatus",
        "path": "Account.billingStatus",
        "short": "Tracks the lifecycle of the account through the billing process",
        "definition": "The BillingStatus tracks the lifecycle of the account through the billing process. It indicates how transactions are treated when they are allocated to the account.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "AccountBillingStatus"
            }
          ],
          "strength": "example",
          "description": "Indicates whether the account is available to be used for billing purposes.",
          "valueSet": "http://hl7.org/fhir/ValueSet/account-billing-status"
        }
      },
      {
        "id": "Account.type",
        "path": "Account.type",
        "short": "E.g. patient, expense, depreciation",
        "definition": "Categorizes the account for reporting and searching purposes.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "AccountType"
            }
          ],
          "strength": "example",
          "description": "The usage type of this account, permits categorization of accounts.",
          "valueSet": "http://hl7.org/fhir/ValueSet/account-type"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Account.name",
        "path": "Account.name",
        "short": "Human-readable label",
        "definition": "Name used for the account when displaying it to humans in reports, etc.",
        "alias": [
          "Title"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.what[x]"
          },
          {
            "identity": "rim",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Account.subject",
        "path": "Account.subject",
        "short": "The entity that caused the expenses",
        "definition": "Identifies the entity which incurs the expenses. While the immediate recipients of services or goods might be entities related to the subject, the expenses were ultimately incurred by the subject of the Account.",
        "comment": "Accounts can be applied to non-patients for tracking other non-patient related activities, such as group services (patients not tracked, and costs charged to another body), or might not be allocated.",
        "alias": [
          "target"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/Device",
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
              "http://hl7.org/fhir/StructureDefinition/Location",
              "http://hl7.org/fhir/StructureDefinition/HealthcareService",
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.subject[x]"
          },
          {
            "identity": "rim",
            "map": ".subject"
          },
          {
            "identity": "w5",
            "map": "FiveWs.subject"
          }
        ]
      },
      {
        "id": "Account.servicePeriod",
        "extension": [
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/committee-notes",
            "valueString": "Name was coveragePeriod, have renamed simply to period."
          }
        ],
        "path": "Account.servicePeriod",
        "short": "Transaction window",
        "definition": "The date range of services associated with this account.",
        "comment": "It is possible for transactions to be posted outside the service period, as long as the service was provided within the defined service period.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.done[x]"
          },
          {
            "identity": "rim",
            "map": ".coverage.insurancePolicy.effectiveTime"
          }
        ]
      },
      {
        "id": "Account.coverage",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Coverage"
          },
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/svg",
            "valueCode": "360,0"
          }
        ],
        "path": "Account.coverage",
        "short": "The party(s) that are responsible for covering the payment of this account, and what order should they be applied to the account",
        "definition": "The party(s) that are responsible for covering the payment of this account, and what order should they be applied to the account.",
        "comment": "Typically. this may be some form of insurance, internal charges, or self-pay.\n\nLocal or jurisdictional business rules may determine which coverage covers which types of billable items charged to the account, and in which order.\nWhere the order is important, a local/jurisdictional extension may be defined to specify the order for the type of charge.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".coverage"
          }
        ]
      },
      {
        "id": "Account.coverage.coverage",
        "path": "Account.coverage.coverage",
        "short": "The party(s), such as insurances, that may contribute to the payment of this account",
        "definition": "The party(s) that contribute to payment (or part of) of the charges applied to this account (including self-pay).\n\nA coverage may only be responsible for specific types of charges, and the sequence of the coverages in the account could be important when processing billing.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Coverage"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".coverage.insurancePolicy.author"
          }
        ]
      },
      {
        "id": "Account.coverage.priority",
        "path": "Account.coverage.priority",
        "short": "The priority of the coverage in the context of this account",
        "definition": "The priority of the coverage in the context of this account.",
        "comment": "It is common in some jurisdictions for there to be multiple coverages allocated to an account, and a sequence is required to order the settling of the account (often with insurance claiming).",
        "alias": [
          "coordination of benefit priority"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "positiveInt"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".coverage.sequenceNumber"
          }
        ]
      },
      {
        "id": "Account.owner",
        "path": "Account.owner",
        "short": "Entity managing the Account",
        "definition": "Indicates the service area, hospital, department, etc. with responsibility for managing the Account.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".holder"
          }
        ]
      },
      {
        "id": "Account.description",
        "path": "Account.description",
        "short": "Explanation of purpose/use",
        "definition": "Provides additional information about what the account tracks and how it is used.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".subjectOf.observationEvent[code=\"annotation\"].value"
          }
        ]
      },
      {
        "id": "Account.guarantor",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Guarantor"
          },
          {
            "url": "http://hl7.org/fhir/build/StructureDefinition/svg",
            "valueCode": "360,150"
          }
        ],
        "path": "Account.guarantor",
        "short": "The parties ultimately responsible for balancing the Account",
        "definition": "The parties responsible for balancing the account if other payment options fall short.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".holder.guarantorRole"
          }
        ]
      },
      {
        "id": "Account.guarantor.party",
        "path": "Account.guarantor.party",
        "short": "Responsible entity",
        "definition": "The entity who is responsible.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".holder.guarantorRole[guarantorPerson|guarantorOrganization]"
          }
        ]
      },
      {
        "id": "Account.guarantor.onHold",
        "path": "Account.guarantor.onHold",
        "short": "Credit or other hold applied",
        "definition": "A guarantor may be placed on credit hold or otherwise have their role temporarily suspended.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".holder.guarantorRole.statusCode"
          }
        ]
      },
      {
        "id": "Account.guarantor.period",
        "path": "Account.guarantor.period",
        "short": "Guarantee account during",
        "definition": "The timeframe during which the guarantor accepts responsibility for the account.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".holder.guarantorRole.effectiveTime"
          }
        ]
      },
      {
        "id": "Account.partOf",
        "path": "Account.partOf",
        "short": "Reference to a parent Account",
        "definition": "Reference to a parent Account.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Account"
            ]
          }
        ]
      }
    ]
  }
}