Skip to content

Commit

Permalink
Fix FHIR 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 86665af commit f2f5937
Show file tree
Hide file tree
Showing 305 changed files with 67,500 additions and 7,884 deletions.
51 changes: 51 additions & 0 deletions patches/fhir/0001-Fix-Draft-6-schemas-using-id-instead-of-id.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
From 410b497ba1a76a31c92eca13a00ee1e2a1c9a0fc Mon Sep 17 00:00:00 2001
From: Juan Cruz Viotti <[email protected]>
Date: Thu, 30 Jan 2025 15:12:19 -0400
Subject: [PATCH] Fix Draft 6 schemas using `id` instead of `$id`

Signed-off-by: Juan Cruz Viotti <[email protected]>
---
hl7.fhir.rX/hl7.fhir.r4.core/package/openapi/fhir.schema.json | 2 +-
hl7.fhir.rX/hl7.fhir.r4b.core/package/openapi/fhir.schema.json | 2 +-
hl7.fhir.rX/hl7.fhir.r5.core/package/openapi/fhir.schema.json | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/hl7.fhir.rX/hl7.fhir.r4.core/package/openapi/fhir.schema.json b/hl7.fhir.rX/hl7.fhir.r4.core/package/openapi/fhir.schema.json
index 6688301a20..a0a52cbcbd 100644
--- a/hl7.fhir.rX/hl7.fhir.r4.core/package/openapi/fhir.schema.json
+++ b/hl7.fhir.rX/hl7.fhir.r4.core/package/openapi/fhir.schema.json
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
- "id": "http://hl7.org/fhir/json-schema/4.0",
+ "$id": "http://hl7.org/fhir/json-schema/4.0",
"description": "see http://hl7.org/fhir/json.html#schema for information about the FHIR Json Schemas",
"discriminator": {
"propertyName": "resourceType",
diff --git a/hl7.fhir.rX/hl7.fhir.r4b.core/package/openapi/fhir.schema.json b/hl7.fhir.rX/hl7.fhir.r4b.core/package/openapi/fhir.schema.json
index 45062a3e7d..9fa58541f7 100644
--- a/hl7.fhir.rX/hl7.fhir.r4b.core/package/openapi/fhir.schema.json
+++ b/hl7.fhir.rX/hl7.fhir.r4b.core/package/openapi/fhir.schema.json
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
- "id": "http://hl7.org/fhir/json-schema/4.3",
+ "$id": "http://hl7.org/fhir/json-schema/4.3",
"description": "see http://hl7.org/fhir/json.html#schema for information about the FHIR Json Schemas",
"discriminator": {
"propertyName": "resourceType",
diff --git a/hl7.fhir.rX/hl7.fhir.r5.core/package/openapi/fhir.schema.json b/hl7.fhir.rX/hl7.fhir.r5.core/package/openapi/fhir.schema.json
index 0a03b0b668..8ece572590 100644
--- a/hl7.fhir.rX/hl7.fhir.r5.core/package/openapi/fhir.schema.json
+++ b/hl7.fhir.rX/hl7.fhir.r5.core/package/openapi/fhir.schema.json
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-06/schema#",
- "id": "http://hl7.org/fhir/json-schema/4.6",
+ "$id": "http://hl7.org/fhir/json-schema/4.6",
"description": "see http://hl7.org/fhir/json.html#schema for information about the FHIR Json Schemas",
"discriminator": {
"propertyName": "resourceType",
--
2.48.1

59,565 changes: 59,565 additions & 0 deletions patches/fhir/0002-Fix-references-that-point-to-files-instead-of-URIs.patch

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"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"
"$ref": "Identifier#/definitions/Identifier"
}
},
"status": {
Expand All @@ -37,35 +37,35 @@
},
"_status": {
"description": "Extensions for status",
"$ref": "Element.schema.json#/definitions/Element"
"$ref": "Element#/definitions/Element"
},
"type": {
"description": "Categorizes the account for reporting and searching purposes.",
"$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept"
"$ref": "CodeableConcept#/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"
"$ref": "Element#/definitions/Element"
},
"subject": {
"description": "Identifies the patient, device, practitioner, location or other object the account is associated with.",
"$ref": "Reference.schema.json#/definitions/Reference"
"$ref": "Reference#/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"
"$ref": "Period#/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"
"$ref": "Period#/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"
"$ref": "Money#/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.",
Expand All @@ -76,15 +76,15 @@
},
"owner": {
"description": "Indicates the organization, department, etc. with responsibility for the account.",
"$ref": "Reference.schema.json#/definitions/Reference"
"$ref": "Reference#/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"
"$ref": "Element#/definitions/Element"
},
"guarantor": {
"description": "Parties financially responsible for the account.",
Expand All @@ -110,7 +110,7 @@
"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"
"$ref": "Reference#/definitions/Reference"
},
"priority": {
"description": "The priority of the coverage in the context of this account.",
Expand All @@ -119,7 +119,7 @@
},
"_priority": {
"description": "Extensions for priority",
"$ref": "Element.schema.json#/definitions/Element"
"$ref": "Element#/definitions/Element"
}
},
"required": [
Expand All @@ -138,19 +138,19 @@
"properties": {
"party": {
"description": "The entity who is responsible.",
"$ref": "Reference.schema.json#/definitions/Reference"
"$ref": "Reference#/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"
"$ref": "Element#/definitions/Element"
},
"period": {
"description": "The timeframe during which the guarantor accepts responsibility for the account.",
"$ref": "Period.schema.json#/definitions/Period"
"$ref": "Period#/definitions/Period"
}
},
"required": [
Expand Down
Loading

0 comments on commit f2f5937

Please sign in to comment.