Skip to content

Commit

Permalink
Add FHIR r4b and r5 schemas
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Jan 30, 2025
1 parent f0a88ea commit 216ed10
Show file tree
Hide file tree
Showing 318 changed files with 326,302 additions and 0 deletions.
1 change: 1 addition & 0 deletions DEPENDENCIES
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ geojson-1-0-1 https://github.com/geojson/schema v1.0.1
geojson-1-0-0 https://github.com/geojson/schema v1.0.0
hca-metadata-5-0-0 https://github.com/HumanCellAtlas/metadata-schema 5.0.0
dats-1-0-0 https://github.com/datatagsuite/schema 1.0.0
fhir https://github.com/FHIR/packages b401fbd45566006a21243a9b88f1391e32b1ed40
20 changes: 20 additions & 0 deletions configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,18 @@
"description": "A data model for describing datasets",
"github": "datatagsuite",
"website": "https://datatagsuite.github.io/docs/html"
},
"hl7": {
"title": "Health Level Seven (HL7)",
"description": "A range of global standards for the transfer of clinical and administrative health",
"website": "https://www.hl7.org"
},
"hl7/fhir": {
"title": "Fast Healthcare Interoperability Resources (FHIR)",
"description": "A standard for health care data exchange",
"email": "[email protected]",
"github": "fhir",
"website": "https://www.hl7.org/implement/standards/fhir/"
}
},
"schemas": {
Expand Down Expand Up @@ -355,6 +367,14 @@
"dats/v1.0.0": {
"base": "https://w3id.org/dats/schema",
"path": "./vendor/dats-1-0-0"
},
"hl7/fhir/r5": {
"base": "http://hl7.org/fhir/json-schema",
"path": "./vendor/fhir/hl7.fhir.rX/hl7.fhir.r5.core/package/openapi"
},
"hl7/fhir/r4b": {
"base": "http://hl7.org/fhir/json-schema",
"path": "./vendor/fhir/hl7.fhir.rX/hl7.fhir.r4b.core/package/openapi"
}
}
}
23,737 changes: 23,737 additions & 0 deletions vendor/fhir.mask

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions vendor/fhir/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2018, FHIR
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://hl7.org/fhir/json-schema/Account",
"$ref": "#/definitions/Account",
"description": "see http://hl7.org/fhir/json.html#schema for information about the FHIR Json Schemas",
"definitions": {
"Account": {
"allOf": [
{
"$ref": "DomainResource#/definitions/DomainResource"
},
{
"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.",
"properties": {
"resourceType": {
"description": "This is a Account resource",
"type": "string",
"enum": [
"Account"
]
},
"identifier": {
"description": "Unique identifier used to reference the account. May or may not be intended for human use (e.g. credit card number).",
"type": "array",
"items": {
"$ref": "Identifier.schema.json#/definitions/Identifier"
}
},
"status": {
"description": "Indicates whether the account is presently used/usable or not.",
"enum": [
"active",
"inactive",
"entered-in-error"
],
"type": "string"
},
"_status": {
"description": "Extensions for status",
"$ref": "Element.schema.json#/definitions/Element"
},
"type": {
"description": "Categorizes the account for reporting and searching purposes.",
"$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept"
},
"name": {
"description": "Name used for the account when displaying it to humans in reports, etc.",
"type": "string"
},
"_name": {
"description": "Extensions for name",
"$ref": "Element.schema.json#/definitions/Element"
},
"subject": {
"description": "Identifies the patient, device, practitioner, location or other object the account is associated with.",
"$ref": "Reference.schema.json#/definitions/Reference"
},
"period": {
"description": "Identifies the period of time the account applies to; e.g. accounts created per fiscal year, quarter, etc.",
"$ref": "Period.schema.json#/definitions/Period"
},
"active": {
"description": "Indicates the period of time over which the account is allowed to have transactions posted to it.\nThis period may be different to the coveragePeriod which is the duration of time that services may occur.",
"$ref": "Period.schema.json#/definitions/Period"
},
"balance": {
"description": "Represents the sum of all credits less all debits associated with the account. Might be positive, zero or negative.",
"$ref": "Money.schema.json#/definitions/Money"
},
"coverage": {
"description": "The party(s) that are responsible for covering the payment of this account, and what order should they be applied to the account.",
"type": "array",
"items": {
"$ref": "#/definitions/Account_Coverage"
}
},
"owner": {
"description": "Indicates the organization, department, etc. with responsibility for the account.",
"$ref": "Reference.schema.json#/definitions/Reference"
},
"description": {
"description": "Provides additional information about what the account tracks and how it is used.",
"type": "string"
},
"_description": {
"description": "Extensions for description",
"$ref": "Element.schema.json#/definitions/Element"
},
"guarantor": {
"description": "Parties financially responsible for the account.",
"type": "array",
"items": {
"$ref": "#/definitions/Account_Guarantor"
}
}
},
"required": [
"resourceType"
]
}
]
},
"Account_Coverage": {
"allOf": [
{
"$ref": "BackboneElement#/definitions/BackboneElement"
},
{
"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.",
"properties": {
"coverage": {
"description": "The party(s) that are responsible for payment (or part of) of charges applied to this account (including self-pay).\n\nA coverage may only be resposible for specific types of charges, and the sequence of the coverages in the account could be important when processing billing.",
"$ref": "Reference.schema.json#/definitions/Reference"
},
"priority": {
"description": "The priority of the coverage in the context of this account.",
"type": "number",
"pattern": "[1-9][0-9]*"
},
"_priority": {
"description": "Extensions for priority",
"$ref": "Element.schema.json#/definitions/Element"
}
},
"required": [
"coverage"
]
}
]
},
"Account_Guarantor": {
"allOf": [
{
"$ref": "BackboneElement#/definitions/BackboneElement"
},
{
"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.",
"properties": {
"party": {
"description": "The entity who is responsible.",
"$ref": "Reference.schema.json#/definitions/Reference"
},
"onHold": {
"description": "A guarantor may be placed on credit hold or otherwise have their role temporarily suspended.",
"type": "boolean"
},
"_onHold": {
"description": "Extensions for onHold",
"$ref": "Element.schema.json#/definitions/Element"
},
"period": {
"description": "The timeframe during which the guarantor accepts responsibility for the account.",
"$ref": "Period.schema.json#/definitions/Period"
}
},
"required": [
"party"
]
}
]
}
}
}
Loading

0 comments on commit 216ed10

Please sign in to comment.