Skip to content

Commit ceae94a

Browse files
committed
Avoid multiple links to same target
1 parent a2df580 commit ceae94a

13 files changed

+32
-25
lines changed

add_links.ts

+18-11
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,26 @@ async function addLinks() {
5757
content = content.replace(/\[([^\]]+)\]\(https:\/\/build\.fhir\.org\/ig\/HL7\/[^)]+\)/g, '$1');
5858

5959
let linkCount = 0;
60+
const insertedUrls = new Set<string>();
61+
6062
for (const linkifier of linkifiers) {
6163
if (linkifier.packageId !== currentIGName) {
62-
const regex = new RegExp(`\\b${escapeRegExp(linkifier.term)}\\b(?![^\\[]*\\])`, 'g');
63-
let hasReplaced = false;
64-
content = content.replace(regex, (match) => {
65-
if (!hasReplaced) {
66-
hasReplaced = true;
67-
linkCount++;
68-
const repoName = packageToRepo[linkifier.packageId] || linkifier.packageId;
69-
return `[${match}](https://build.fhir.org/ig/HL7/${repoName})`;
70-
}
71-
return match;
72-
});
64+
const repoName = packageToRepo[linkifier.packageId] || linkifier.packageId;
65+
const targetUrl = `https://build.fhir.org/ig/HL7/${repoName}`;
66+
67+
if (!insertedUrls.has(targetUrl)) {
68+
const regex = new RegExp(`\\b${escapeRegExp(linkifier.term)}\\b(?![^\\[]*\\])`, 'g');
69+
let hasReplaced = false;
70+
content = content.replace(regex, (match) => {
71+
if (!hasReplaced) {
72+
hasReplaced = true;
73+
linkCount++;
74+
insertedUrls.add(targetUrl);
75+
return `[${match}](${targetUrl})`;
76+
}
77+
return match;
78+
});
79+
}
7380
}
7481
}
7582

summaries/hl7.cda.us.ccdar2dot2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This standard, known as Consolidated [CDA](https://build.fhir.org/ig/HL7/hl7.cda.us.ccda) ([C-CDA](https://build.fhir.org/ig/HL7/[CDA](https://build.fhir.org/ig/HL7/CDA-core-sd)-ccda-2.1-sd)) 3.0, aims to improve the exchange of patient information between healthcare systems in the United States. It provides detailed templates for creating various types of clinical documents, such as discharge summaries and referral notes, ensuring consistent formatting and data representation.
1+
This standard, known as [Consolidated CDA](https://build.fhir.org/ig/HL7/[CDA](https://build.fhir.org/ig/HL7/CDA-core-sd)-ccda-2.1-sd) (C-CDA-ccda-2.1-sd)) 3.0, aims to improve the exchange of patient information between healthcare systems in the United States. It provides detailed templates for creating various types of clinical documents, such as discharge summaries and referral notes, ensuring consistent formatting and data representation.
22

33
C-CDA 3.0 consolidates previous versions, removes outdated elements, and adds new templates to align with current data requirements. It uses a library of modular templates for document headers, sections, and entries, allowing for reuse across different document types. The standard also establishes a contextual framework in the document header that applies throughout, with the ability to override at lower levels when needed.
44

summaries/hl7.cda.us.eyecare.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
This standard aims to improve how eyecare data is shared electronically between healthcare systems. It focuses on capturing key information from eye exams, such as visual acuity, refraction, diagnostic tests, and posterior segment observations, in a consistent format.
22

3-
The standard uses [Clinical Document Architecture](https://build.fhir.org/ig/HL7/[CDA](https://build.fhir.org/ig/HL7/CDA-core-sd)-core-sd) (CDA) templates as a foundation, specifically adapting the Physical Exam section for eyecare. It organizes related eye exam observations into groups and uses SNOMED CT codes to ensure consistent terminology for tests, methods, and findings.
3+
The standard uses [Clinical Document Architecture](https://build.fhir.org/ig/HL7/CDA-core-sd)-core-sd) (CDA) templates as a foundation, specifically adapting the Physical Exam section for eyecare. It organizes related eye exam observations into groups and uses SNOMED CT codes to ensure consistent terminology for tests, methods, and findings.
44

55
Specific templates and value sets are defined for various aspects of eye exams, including visual acuity, refraction, and diagnostic tests like dry eye assessments. The standard also provides examples of how to structure this information within clinical documents.
66

summaries/hl7.fhir.us.ccda.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
This standard bridges two major healthcare data formats used in the United States: C-[CDA](https://build.fhir.org/ig/HL7/hl7.cda.us.ccda) and FHIR. It provides a way to translate clinical information between these formats, allowing systems using either standard to exchange data seamlessly.
1+
This standard bridges two major healthcare data formats used in the United States: [C-CDA](https://build.fhir.org/ig/HL7/[CDA](https://build.fhir.org/ig/HL7/CDA-core-sd)-ccda-2.1-sd) and FHIR. It provides a way to translate clinical information between these formats, allowing systems using either standard to exchange data seamlessly.
22

3-
The standard focuses on representing common clinical concepts found in [C-CDA](https://build.fhir.org/ig/HL7/[CDA](https://build.fhir.org/ig/HL7/CDA-core-sd)-ccda-2.1-sd) documents using FHIR resources. It leverages [US Core](https://build.fhir.org/ig/HL7/US-Core) FHIR profiles for key data elements like problems, allergies, medications, and patient demographics. This enables consistent sharing of crucial patient information across different healthcare systems.
3+
The standard focuses on representing common clinical concepts found in C-CDA-ccda-2.1-sd) documents using FHIR resources. It leverages [US Core](https://build.fhir.org/ig/HL7/US-Core) FHIR profiles for key data elements like problems, allergies, medications, and patient demographics. This enables consistent sharing of crucial patient information across different healthcare systems.
44

55
Key features include the use of FHIR's document approach, where a central resource acts as a container for clinical data. It also provides detailed mapping guidance between C-CDA elements and FHIR resources, ensuring accurate translation of medical concepts and terminology.
66

summaries/hl7.fhir.us.cqfmeasures.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
This standard, titled "Quality Measure Implementation Guide," aims to standardize the creation and exchange of electronic clinical quality measures (eCQMs) using FHIR. It focuses on the US healthcare system, referencing regulations from the Centers for Medicare & Medicaid Services (CMS).
22

3-
The standard introduces several key features to improve eCQM development and use. It incorporates [Clinical Quality Language](https://build.fhir.org/ig/HL7/cql) ([CQL](https://build.fhir.org/ig/HL7/cql)) for defining measure logic, which allows for more precise and computable measure specifications. It also outlines how to specify data requirements for measure calculation and describes the use of terminology services for standardized coding.
3+
The standard introduces several key features to improve eCQM development and use. It incorporates [Clinical Quality Language](https://build.fhir.org/ig/HL7/cql) (CQL) for defining measure logic, which allows for more precise and computable measure specifications. It also outlines how to specify data requirements for measure calculation and describes the use of terminology services for standardized coding.
44

55
A significant component of the standard is its guidance on representing composite measures, which combine multiple quality indicators into a single score. It also details the concept of a measure repository service for managing and distributing FHIR-based measures.
66

summaries/hl7.fhir.us.davinci-dtr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
This standard aims to streamline the process of collecting patient documentation required by health insurance payers for purposes like prior authorization and claims processing. It enables payers to express their documentation requirements in a computable format using FHIR Questionnaires, allowing providers to easily gather and submit necessary information.
22

3-
The standard automates data collection by leveraging [Clinical Quality Language](https://build.fhir.org/ig/HL7/cql) ([CQL](https://build.fhir.org/ig/HL7/cql)) to extract existing patient data from EHRs, reducing manual entry and errors. It supports both pre-defined questionnaires and adaptive forms that adjust based on user responses.
3+
The standard automates data collection by leveraging [Clinical Quality Language](https://build.fhir.org/ig/HL7/cql) (CQL) to extract existing patient data from EHRs, reducing manual entry and errors. It supports both pre-defined questionnaires and adaptive forms that adjust based on user responses.
44

55
Key features include the use of FHIR Questionnaires for defining documentation requirements, CQL for data extraction and logic implementation, and [SMART on FHIR](https://build.fhir.org/ig/HL7/smart-app-launch) integration for seamless EHR compatibility.
66

summaries/hl7.fhir.us.hsds.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ The standard builds upon the Human Services Data Specification (HSDS), making it
44

55
Healthcare providers can use this standard to find and refer patients to appropriate social services. Insurance companies can incorporate social service referrals into care management programs. Consumers can use mobile apps to search for and access social services in their communities.
66

7-
This standard is designed to meet requirements outlined in the CMS Interoperability and Patient Access Rule, which mandates standardized API access to provider directories, including social service providers. It also leverages US Core profiles, which are based on the United States Core Data for Interoperability ([USCDI](https://build.fhir.org/ig/HL7/US-Core)).
7+
This standard is designed to meet requirements outlined in the CMS Interoperability and Patient Access Rule, which mandates standardized API access to provider directories, including social service providers. It also leverages US Core profiles, which are based on the United States Core Data for Interoperability (USCDI).

summaries/hl7.fhir.us.ph-library.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ This standard, called the US Public Health Profiles Library (USPHPL), aims to si
22

33
The USPHPL addresses the issue of redundant profile definitions across different public health reporting systems. It establishes a centralized library of reusable profiles, promoting consistency in public health data exchange. The standard leverages FHIR to define profiles, value sets, and extensions specific to public health reporting needs.
44

5-
Key users include healthcare organizations, EHR companies, public health agencies, and researchers. Healthcare organizations use it to structure their public health data for reporting, while public health agencies use it to receive and analyze reports. The USPHPL aligns with broader healthcare standards like [US Core](https://build.fhir.org/ig/HL7/US-Core) and incorporates elements from the United States Core Data Interoperability ([USCDI](https://build.fhir.org/ig/HL7/US-Core)) standard, ensuring compliance with federal regulations.
5+
Key users include healthcare organizations, EHR companies, public health agencies, and researchers. Healthcare organizations use it to structure their public health data for reporting, while public health agencies use it to receive and analyze reports. The USPHPL aligns with broader healthcare standards like [US Core](https://build.fhir.org/ig/HL7/US-Core) and incorporates elements from the United States Core Data Interoperability (USCDI) standard, ensuring compliance with federal regulations.
66

77
By standardizing public health data exchange, the USPHPL supports improved disease tracking and outbreak detection, contributing to better population health outcomes.

summaries/hl7.fhir.us.pq-cmc-fda.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
This standard aims to streamline how pharmaceutical companies submit drug information to the U.S. Food and Drug Administration (FDA) for review. It focuses on the quality, chemistry, manufacturing, and controls ([PQ/CMC](https://build.fhir.org/ig/HL7/FHIR-us-pq-cmc)) section of drug applications, making this information structured and machine-readable using FHIR.
1+
This standard aims to streamline how pharmaceutical companies submit drug information to the U.S. Food and Drug Administration (FDA) for review. It focuses on the quality, chemistry, manufacturing, and controls (PQ/CMC) section of drug applications, making this information structured and machine-readable using FHIR.
22

3-
The standard aligns with the electronic [Common Technical Document](https://build.fhir.org/ig/HL7/FHIR-us-pq-cmc) ([eCTD](https://build.fhir.org/ig/HL7/FHIR-us-pq-cmc)) format and follows a phased approach, starting with solid oral dosage forms. It uses various FHIR resources to represent PQ/CMC information while maintaining human-readable narratives within the data bundles.
3+
The standard aligns with the electronic [Common Technical Document](https://build.fhir.org/ig/HL7/FHIR-us-pq-cmc) (eCTD) format and follows a phased approach, starting with solid oral dosage forms. It uses various FHIR resources to represent PQ/CMC information while maintaining human-readable narratives within the data bundles.
44

55
Pharmaceutical companies are the primary users, structuring PQ/CMC data according to the standard for FDA submission. FDA reviewers benefit from receiving structured data, enabling more efficient and accurate review of drug applications. Software vendors developing regulatory submission systems also need to align with this standard.
66

summaries/hl7.fhir.uv.bulkdata.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Security and privacy are prioritized, with mandatory encryption and recommended
66

77
Key beneficiaries include developers of backend services and FHIR servers, healthcare organizations, and researchers. It enables improved data sharing and interoperability, potentially accelerating healthcare research and supporting quality improvement initiatives.
88

9-
The standard aligns with the [US Core](https://build.fhir.org/ig/HL7/US-Core) Data for Interoperability ([USCDI](https://build.fhir.org/ig/HL7/US-Core)) and recommends the SMART Backend Services Authorization Profile for secure access management.
9+
The standard aligns with the [US Core](https://build.fhir.org/ig/HL7/US-Core) Data for Interoperability (USCDI) and recommends the SMART Backend Services Authorization Profile for secure access management.

summaries/hl7.fhir.uv.cpg.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ This standard aims to improve healthcare by making clinical practice guidelines
22

33
The standard streamlines CPG development, sharing, and implementation. It reduces duplicate efforts by providing a common format, minimizing inconsistencies across healthcare organizations. This accelerates the adoption of best practices into clinical workflows and enables better measurement of guideline compliance and effectiveness.
44

5-
Key features include a conceptual knowledge architecture separating patient state, care plans, and workflow execution. It uses [Clinical Quality Language](https://build.fhir.org/ig/HL7/cql) ([CQL](https://build.fhir.org/ig/HL7/cql)) to express CPG logic in a computable format and defines a standardized lifecycle for guideline activities.
5+
Key features include a conceptual knowledge architecture separating patient state, care plans, and workflow execution. It uses [Clinical Quality Language](https://build.fhir.org/ig/HL7/cql) (CQL) to express CPG logic in a computable format and defines a standardized lifecycle for guideline activities.
66

77
The standard benefits multiple stakeholders. Guideline developers gain structured tools for creating computable CPGs. Healthcare providers can more easily integrate guidelines into their systems. Clinicians receive more consistent decision support based on best practices. Ultimately, patients may experience improved quality and consistency of care based on up-to-date clinical guidelines.

summaries/hl7.fhir.uv.cql.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This standard aims to streamline the use of [Clinical Quality Language](https://build.fhir.org/ig/HL7/cql) ([CQL](https://build.fhir.org/ig/HL7/cql)) with FHIR resources in healthcare settings. It provides a unified approach for representing and evaluating clinical logic across various scenarios, including decision support, public health reporting, and research eligibility criteria.
1+
This standard aims to streamline the use of [Clinical Quality Language](https://build.fhir.org/ig/HL7/cql) (CQL) with FHIR resources in healthcare settings. It provides a unified approach for representing and evaluating clinical logic across various scenarios, including decision support, public health reporting, and research eligibility criteria.
22

33
The standard defines profiles for packaging CQL and its compiled form as FHIR Library resources. It also includes profiles for representing information about logic libraries and their evaluation results. A key feature is the specification of a CQL evaluation service, enabling consistent implementation across different systems.
44

summaries/hl7.fhir.uv.fhirpath.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ This standard defines FHIRPath, a language for navigating and extracting data fr
22

33
FHIRPath is designed to work with various healthcare information models, not just FHIR. Its lightweight nature makes it easier to implement and use compared to more complex languages. The standard supports literals, operators, functions, and type checking, with its formal syntax defined using an Antlr 4.0 grammar.
44

5-
Developers can use FHIRPath to create interoperable healthcare applications with streamlined data navigation and manipulation. This enables the development of more powerful decision support systems, quality measures, and clinical workflows. FHIRPath aligns with the [Clinical Quality Language](https://build.fhir.org/ig/HL7/cql) ([CQL](https://build.fhir.org/ig/HL7/cql)) standard, simplifying data traversal for quality measure definitions.
5+
Developers can use FHIRPath to create interoperable healthcare applications with streamlined data navigation and manipulation. This enables the development of more powerful decision support systems, quality measures, and clinical workflows. FHIRPath aligns with the [Clinical Quality Language](https://build.fhir.org/ig/HL7/cql) (CQL) standard, simplifying data traversal for quality measure definitions.

0 commit comments

Comments
 (0)