PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# Details of a Health Insurance product/plan provided by an organization
CLOSED {
a [fhir:InsurancePlan];
fhir:nodeRole [fhir:treeRoot]?;
fhir:Resource.id id?; # Logical id of this artifact
fhir:Resource.meta @?; # Metadata about the resource
fhir:Resource.implicitRules @?; # A set of rules under which this
# content was created
fhir:Resource.language @?; # Language of the resource content
fhir:DomainResource.text @?; # Text summary of the resource, for
# human interpretation
fhir:DomainResource.contained @*; # Contained, inline Resources
fhir:DomainResource.extension @*; # Additional content defined by
# implementations
fhir:DomainResource.modifierExtension @*; # Extensions that cannot be ignored
fhir:InsurancePlan.identifier @*; # Business Identifier for Product
fhir:InsurancePlan.status @ AND
{fhir:value @fhirvs:publication-status}?; # draft | active | retired | unknown
fhir:InsurancePlan.type @*; # Kind of product
fhir:InsurancePlan.name @?; # Official name
fhir:InsurancePlan.alias @*; # Alternate names
fhir:InsurancePlan.period @?; # When the product is available
fhir:InsurancePlan.ownedBy @?; # Plan issuer
fhir:InsurancePlan.administeredBy @?; # Product administrator
fhir:InsurancePlan.coverageArea @*; # Where product applies
fhir:InsurancePlan.contact @*; # Contact for the product
fhir:InsurancePlan.endpoint @*; # Technical endpoint
fhir:InsurancePlan.network @*; # What networks are Included
fhir:InsurancePlan.coverage @*; # Coverage details
fhir:InsurancePlan.plan @*; # Plan details
fhir:index xsd:integer? # Relative position in a list
}
# Plan details
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:InsurancePlan.plan.identifier @*; # Business Identifier for Product
fhir:InsurancePlan.plan.type @?; # Type of plan
fhir:InsurancePlan.plan.coverageArea @*; # Where product applies
fhir:InsurancePlan.plan.network @*; # What networks provide coverage
fhir:InsurancePlan.plan.generalCost @*; # Overall costs
fhir:InsurancePlan.plan.specificCost @*; # Specific costs
fhir:index xsd:integer? # Relative position in a list
}
# Contact for the product
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:InsurancePlan.contact.purpose @?; # The type of contact
fhir:InsurancePlan.contact.name @?; # A name associated with the contact
fhir:InsurancePlan.contact.telecom @*; # Contact details (telephone, email,
# etc.) for a contact
fhir:InsurancePlan.contact.address @?; # Visiting or postal addresses for
# the contact
fhir:index xsd:integer? # Relative position in a list
}
# Coverage details
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:InsurancePlan.coverage.type @; # Type of coverage
fhir:InsurancePlan.coverage.network @*; # What networks provide coverage
fhir:InsurancePlan.coverage.benefit @+; # List of benefits
fhir:index xsd:integer? # Relative position in a list
}
# Specific costs
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:InsurancePlan.plan.specificCost.category @; # General category of benefit
fhir:InsurancePlan.plan.specificCost.benefit @*; # Benefits list
fhir:index xsd:integer? # Relative position in a list
}
# List of benefits
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:InsurancePlan.coverage.benefit.type @; # Type of benefit
fhir:InsurancePlan.coverage.benefit.requirement @?; # Referral requirements
fhir:InsurancePlan.coverage.benefit.limit @*; # Benefit limits
fhir:index xsd:integer? # Relative position in a list
}
# Overall costs
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:InsurancePlan.plan.generalCost.type @?; # Type of cost
fhir:InsurancePlan.plan.generalCost.groupSize @?; # Number of enrollees
fhir:InsurancePlan.plan.generalCost.cost @?; # Cost value
fhir:InsurancePlan.plan.generalCost.comment @?; # Additional cost information
fhir:index xsd:integer? # Relative position in a list
}
# Benefit limits
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:InsurancePlan.coverage.benefit.limit.value @?; # Maximum value allowed
fhir:InsurancePlan.coverage.benefit.limit.code @?; # Benefit limit details
fhir:index xsd:integer? # Relative position in a list
}
# Benefits list
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:InsurancePlan.plan.specificCost.benefit.type @; # Type of specific benefit
fhir:InsurancePlan.plan.specificCost.benefit.cost @*; # List of the costs
fhir:index xsd:integer? # Relative position in a list
}
# List of the costs
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:InsurancePlan.plan.specificCost.benefit.cost.type @; # Type of cost
fhir:InsurancePlan.plan.specificCost.benefit.cost.applicability @?; # in-network | out-of-network | other
fhir:InsurancePlan.plan.specificCost.benefit.cost.qualifiers @*; # Additional information about the
# cost
fhir:InsurancePlan.plan.specificCost.benefit.cost.value @?; # The actual cost value
fhir:index xsd:integer? # Relative position in a list
}
#---------------------- Data Types -------------------
# Metadata about a resource
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Meta.versionId @?; # Version specific identifier
fhir:Meta.lastUpdated @?; # When the resource version last
# changed
fhir:Meta.source @?; # Identifies where the resource
# comes from
fhir:Meta.profile @*; # Profiles this resource claims to
# conform to
fhir:Meta.security @*; # Security Labels applied to this
# resource
fhir:Meta.tag @*; # Tags applied to this resource
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type code
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value code?; # Primitive value for code
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type string
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value string MAXLENGTH 1048576?; # Primitive value for string
fhir:index xsd:integer? # Relative position in a list
}
# An address expressed using postal conventions (as opposed to GPS or other location definition formats)
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Address.use @ AND
{fhir:value @fhirvs:address-use}?; # home | work | temp | old | billing
# - purpose of this address
fhir:Address.type @ AND
{fhir:value @fhirvs:address-type}?; # postal | physical | both
fhir:Address.text @?; # Text representation of the address
fhir:Address.line @*; # Street name, number, direction &
# P.O. Box etc.
fhir:Address.city @?; # Name of city, town etc.
fhir:Address.district @?; # District name (aka county)
fhir:Address.state @?; # Sub-unit of country (abbreviations
# ok)
fhir:Address.postalCode @?; # Postal code for area
fhir:Address.country @?; # Country (e.g. can be ISO 3166 2 or
# 3 letter code)
fhir:Address.period @?; # Time period when address was/is in
# use
fhir:index xsd:integer? # Relative position in a list
}
# A reference from one resource to another
CLOSED {
fhir:link IRI?;
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Reference.reference @?; # Literal reference, Relative,
# internal or absolute URL
fhir:Reference.type @?; # Type the reference refers to (e.g.
# "Patient")
fhir:Reference.identifier @?; # Logical reference, when literal
# reference is not known
fhir:Reference.display @?; # Text alternative for the resource
fhir:index xsd:integer? # Relative position in a list
}
# Base Resource
{a .+;
fhir:Resource.id id?; # Logical id of this artifact
fhir:Resource.meta @?; # Metadata about the resource
fhir:Resource.implicitRules @?; # A set of rules under which this
# content was created
fhir:Resource.language @?; # Language of the resource content
fhir:index xsd:integer?
}
# Time range defined by start and end date/time
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Period.start @?; # Starting time with inclusive
# boundary
fhir:Period.end @?; # End time with inclusive boundary,
# if not ongoing
fhir:index xsd:integer? # Relative position in a list
}
# A measured or measurable amount
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Quantity.value @?; # Numerical value (with implicit
# precision)
fhir:Quantity.comparator @ AND
{fhir:value @fhirvs:quantity-comparator}?; # < | <= | >= | > - how to
# understand the value
fhir:Quantity.unit @?; # Unit representation
fhir:Quantity.system @?; # System that defines coded unit form
fhir:Quantity.code @?; # Coded form of the unit
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type uri
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value uri?; # Primitive value for uri
fhir:index xsd:integer? # Relative position in a list
}
# Optional Extensions Element
CLOSED {
fhir:Element.id id?;
fhir:Element.extension @*;
fhir:Extension.url uri;
(
fhir:Extension.valueBase64Binary @ |
fhir:Extension.valueBoolean @ |
fhir:Extension.valueCanonical @ |
fhir:Extension.valueCode @ |
fhir:Extension.valueDate @ |
fhir:Extension.valueDateTime @ |
fhir:Extension.valueDecimal @ |
fhir:Extension.valueId @ |
fhir:Extension.valueInstant @ |
fhir:Extension.valueInteger @ |
fhir:Extension.valueMarkdown @ |
fhir:Extension.valueOid @ |
fhir:Extension.valuePositiveInt @ |
fhir:Extension.valueString @ |
fhir:Extension.valueTime @