Skip to content

Commit ad01f4c

Browse files
authored
Fixed issues around extension. (#12)
* Moved exp-params.json out of input/resources and into input directory. Updated path in publication request. * Suppressed messages related to release 5.2.0 that comes from dependencies. * Got rid of union vs intersection error on value set. * LL5571-6 is not yet in tx.fhir.org. * Added an encounter to the examples.' * Don't need the extension. * Updated JIRA Spec file from the one posted to the JIRA Spec project.
1 parent 9e24787 commit ad01f4c

12 files changed

+66
-37
lines changed

FHIR-us-pacio-toc.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<specification xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ballotUrl="http://hl7.org/fhir/us/pacio-toc/STU1" ciUrl="https://build.fhir.org/ig/HL7/fhir-transitions-of-care-ig/" defaultVersion="1.0.0-ballot" defaultWorkgroup="pc" url="http://hl7.org/fhir/us/pacio-toc">
3-
<version code="current" url="https://build.fhir.org/ig/HL7/fhir-transitions-of-care-ig/"/>
4-
<version code="1.0.0-ballot" url="http://hl7.org/fhir/us/pacio-toc/STU1"/>
2+
<specification xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ballotUrl="http://hl7.org/fhir/us/pacio-toc/2025May" ciUrl="https://build.fhir.org/ig/HL7/fhir-transitions-of-care-ig" defaultVersion="1.0.0-ballot" defaultWorkgroup="pc" url="http://hl7.org/fhir/us/pacio-toc" gitUrl="https://github.com/HL7/fhir-transitions-of-care-ig">
3+
<version code="current" url="https://build.fhir.org/ig/HL7/fhir-transitions-of-care-ig"/>
4+
<version code="1.0.0-ballot" url="http://hl7.org/fhir/us/pacio-toc/2025May"/>
55
<artifactPageExtension value="-definitions"/>
66
<artifactPageExtension value="-examples"/>
77
<artifactPageExtension value="-mappings"/>
@@ -31,6 +31,7 @@
3131
<artifact id="Practitioner/Example-Phil-Chekhov" key="Practitioner-Example-Phil-Chekhov" name="Dr. Phil Chekhov"/>
3232
<artifact id="Practitioner/Example-Tracy-Count" key="Practitioner-Example-Tracy-Count" name="Dr. Tracy Count"/>
3333
<artifact id="Condition/BSJ-DressingConcern" key="Condition-BSJ-DressingConcern" name="Dressing Concerns"/>
34+
<artifact id="Encounter/BSJ-Encounter" key="Encounter-BSJ-Encounter" name="Encounter"/>
3435
<artifact id="Organization/org-Pharm-Everyday-Community-Pharm" key="Organization-org-Pharm-Everyday-Community-Pharm" name="Everyday Community Pharmacy Organization"/>
3536
<artifact id="Organization/org-SNF-Happy-Nursing-Facility" key="Organization-org-SNF-Happy-Nursing-Facility" name="Happy Nursing Facility Organization"/>
3637
<artifact id="Condition/BSJ-HeartDiseaseDiagnosis" key="Condition-BSJ-HeartDiseaseDiagnosis" name="Heart Disease Diagnosis"/>
@@ -69,7 +70,6 @@
6970
<artifact id="Condition/OT-ProblemList-Decondition" key="Condition-OT-ProblemList-Decondition" name="OT Decondition Problem List"/>
7071
<artifact id="Condition/OT-ProblemList-RightWeak" key="Condition-OT-ProblemList-RightWeak" name="OT Right Weakness Problem List"/>
7172
<artifact id="Patient/Example-Smith-Johnson-Patient1" key="Patient-Example-Smith-Johnson-Patient1" name="Patient - Betsy Smith-Johnson"/>
72-
<artifact id="StructureDefinition/toc-reason-extension" key="StructureDefinition-toc-reason-extension" name="Reason"/>
7373
<artifact id="PractitionerRole/Role-IMMD-AnitaChu" key="PractitionerRole-Role-IMMD-AnitaChu" name="Role of Dr. Anita Chu"/>
7474
<artifact id="PractitionerRole/Role-SNFDoc-GeraldPark" key="PractitionerRole-Role-SNFDoc-GeraldPark" name="Role of Dr. Gerald Park"/>
7575
<artifact id="PractitionerRole/Role-OT-JenCadbury" key="PractitionerRole-Role-OT-JenCadbury" name="Role of Dr. Jen Cadbury"/>
@@ -86,7 +86,6 @@
8686
<artifact id="ValueSet/toc-loinc-answered-by-LL5571-6-vs" key="ValueSet-toc-loinc-answered-by-LL5571-6-vs" name="Transitions of Care LOINC Terms Answered by LL5571-6 Answer List Value Set"/>
8787
<artifact id="ValueSet/toc-del-loinc-answered-by-LL5571-6-vs" key="ValueSet-toc-del-loinc-answered-by-LL5571-6-vs" name="Transitions of Care LOINC Terms Included in the DEL Answered by LL5571-6 Answer List Value Set"/>
8888
<artifact id="Condition/BSJ-UndressingConcern" key="Condition-BSJ-UndressingConcern" name="Undressing Concern"/>
89-
<artifact id="Parameters/exp-params" key="Parameters-exp-params" name="exp-params"/>
9089
<page key="NA" name="(NA)"/>
9190
<page key="many" name="(many)"/>
9291
<page key="downloads" name="Downloads"/>

input/fsh/Extensions.fsh

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
Extension: Reason
2-
Id: toc-reason-extension
3-
Title: "Reason"
4-
Description: "Captures the reason for doing something"
5-
Context: Composition
6-
* extension contains
7-
Code 0..* MS and
8-
Reference 0..* MS
9-
* extension[Code] ^short = "(USCDI) Coded reason the encounter takes place"
10-
* extension[Code].value[x] 1..1
11-
* extension[Code].value[x] only CodeableConcept
12-
* extension[Reference].value[x] 1..1
13-
* extension[Reference].value[x] only Reference
14-
* extension[Reference].valueReference only Reference($USCoreConditionProblemsandHealthConcerns or $USCoreConditionEncounterDiagnosis or
15-
$USCoreProcedure or Observation or ImmunizationRecommendation or
16-
$CCDAonFHIRDischargeSummary or $USCoreEncounter)
1+
// Extension: transition-of-care-reason
2+
// Id: TransitionOfCareReason
3+
// Title: "Transition of Care Reason"
4+
// Description: "Captures the reason for a transition of care"
5+
// Context: Composition, CarePlan
6+
// * extension contains
7+
// Code 0..* MS and
8+
// Reference 0..* MS
9+
// * extension[Code] ^short = "Coded reason the transition of care takes place with references"
10+
// * extension[Code].value[x] 1..1
11+
// * extension[Code].value[x] only CodeableConcept
12+
// * extension[Code].value[x] from http://hl7.org/fhir/ValueSet/encounter-reason (extensible)
13+
// * extension[Reference].value[x] 1..1
14+
// * extension[Reference].value[x] only Reference
15+
// * extension[Reference].valueReference only Reference($USCoreConditionProblemsandHealthConcerns or $USCoreConditionEncounterDiagnosis or
16+
// $USCoreProcedure or Observation or ImmunizationRecommendation or
17+
// $CCDAonFHIRDischargeSummary or $USCoreEncounter)

input/fsh/TOCComposition.fsh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,23 @@ Description: "This profile defines constraints that represent common administrat
136136
* section[reason_for_referral].title 1..1 MS
137137
* section[reason_for_referral].code 1..1
138138
* section[reason_for_referral].code = $LOINC#42349-1 "Reason for referral (narrative)"
139-
* section[reason_for_referral].extension contains
140-
toc-reason-extension named ReasonExtension 0..1
139+
* section[reason_for_referral].entry
140+
* section[reason_for_referral].entry only Reference($USCoreConditionProblemsandHealthConcerns or $USCoreConditionEncounterDiagnosis or
141+
$USCoreProcedure or Observation or ImmunizationRecommendation or
142+
$CCDAonFHIRDischargeSummary or $USCoreEncounter)
143+
// * section[reason_for_referral].extension contains
144+
// transition-of-care-reason named ReasonExtension 0..1
141145

142146
* section[reason_for_visit] ^short = "Reason for Visit (Ambulatory)"
143147
* section[reason_for_visit].title 1..1 MS
144148
* section[reason_for_visit].code 1..1
145149
* section[reason_for_visit].code = $LOINC#29299-5 "Reason for visit Narrative"
146-
* section[reason_for_visit].extension contains
147-
toc-reason-extension named ReasonExtension 0..1
150+
* section[reason_for_visit].entry
151+
* section[reason_for_visit].entry only Reference($USCoreConditionProblemsandHealthConcerns or $USCoreConditionEncounterDiagnosis or
152+
$USCoreProcedure or Observation or ImmunizationRecommendation or
153+
$CCDAonFHIRDischargeSummary or $USCoreEncounter)
154+
// * section[reason_for_visit].extension contains
155+
// transition-of-care-reason named ReasonExtension 0..1
148156

149157
* section[results] ^short = "Recent Test Results"
150158
* section[results].title 1..1 MS

input/fsh/alias.fsh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,5 @@ Alias: $pfe-category-cs = http://hl7.org/fhir/us/pacio-pfe/CodeSystem/pfe-catego
108108
Alias: $v2-0203 = http://terminology.hl7.org/CodeSystem/v2-0203
109109
Alias: $v3-NullFlavor = http://terminology.hl7.org/CodeSystem/v3-NullFlavor
110110
Alias: $v3-RoleCode = http://terminology.hl7.org/CodeSystem/v3-RoleCode
111+
Alias: $v3-ActCode = http://terminology.hl7.org/CodeSystem/v3-ActCode
111112
Alias: $taxonomy = http://nucc.org/provider-taxonomy

input/fsh/examples/BSJ-Bundle.fsh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ Description: "Example Transition of Care bundle for fictional patient Betsy Smit
1919
* entry[+].resource = Example-Smith-Johnson-Patient1
2020
* entry[=].fullUrl = "http://www.example.org/fhir/Patient/Example-Smith-Johnson-Patient1"
2121

22+
//-------------------------- Encounters ---------------------------
23+
24+
* entry[+].resource = BSJ-Encounter
25+
* entry[=].fullUrl = "http://www.example.org/fhir/Encounter/BSJ-Encounter"
26+
2227
//-------------------------- Allergies ---------------------------
2328

2429
* entry[+].resource = BSJ-AllergyACE
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Instance: BSJ-Encounter
2+
InstanceOf: $USCoreEncounter
3+
Usage: #example
4+
Title: "Encounter"
5+
Description: "Home Health encounter for Betsy Smith-Johnson"
6+
7+
* meta.profile = Canonical(us-core-encounter|6.1.0)
8+
* subject = Reference(Patient/Example-Smith-Johnson-Patient1)
9+
* status = #finished
10+
* class = $v3-ActCode#HH "Home Health"
11+
* type = $sct#50357006 "Evaluation and management of patient at home (procedure)"
12+
* period.start = "2024-01-18"
13+
* participant.individual = Reference(PractitionerRole/Role-OT-JenCadbury)

input/fsh/examples/BSJ-TOCComposition.fsh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,13 @@ Description: "Transitions of Care Clinical Document for fictional patient Betsy
106106
//* section[procedures].text.status = #additional
107107
//* section[procedures].text.div = "<div>List of procedures prescribed for Betsy Smith-Johnson</div>"
108108

109-
//* section[reason_for_referral].title = "Reason for referring Betsy Smith-Johnson"
110-
//* section[reason_for_referral].code = $LOINC#42349-1 "Reason for referral (narrative)"
111-
//* section[reason_for_referral].text.status = #additional
112-
//* section[reason_for_referral].text.div = "<div xmlns=\"http://www.w3.org/1999/xhtml\">Reason for referring Betsy Smith-Johnson</div>"
113-
//* section[reason_for_referral].reason.code =
114-
//* section[reason_for_referral].reason.reference =
109+
* section[reason_for_referral].title = "Reason for referring Betsy Smith-Johnson"
110+
* section[reason_for_referral].code = $LOINC#42349-1 "Reason for referral (narrative)"
111+
* section[reason_for_referral].text.status = #additional
112+
* section[reason_for_referral].text.div = "<div xmlns=\"http://www.w3.org/1999/xhtml\">Reason for referring Betsy Smith-Johnson</div>"
113+
* section[reason_for_referral].entry[+] = Reference(Encounter/BSJ-Encounter)
114+
// * section[reason_for_referral] extension[ReasonExtension].code = $sct#404684003 "Clinical finding (finding)"
115+
// * section[reason_for_referral] extension[ReasonExtension].reference = Reference(Encounter/BSJ-Encounter)
115116

116117
//* section[reason_for_visit].title = "Reason for visit (ambulatory) for Betsy Smith-Johnson"
117118
//* section[reason_for_visit].code = $LOINC#29299-5 "Reason for visit Narrative"

input/fsh/valueset.fsh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,9 +437,7 @@ Id: toc-del-loinc-vs
437437

438438
ValueSet: TocLoincTermsAnsweredByLL5571
439439
Title: "Transitions of Care LOINC Terms Answered by LL5571-6 Answer List Value Set"
440-
Description: """This value set includes those LOINC terms that are defined to be answered by LOINC answer list LL5571-6.
441-
442-
Ideally, this could be intensionally defined as terms where the answer-list property is "LL5571-6", however at publication time, this property is not supported by the FHIR terminology server at tx.fhir.org."""
440+
Description: "This value set includes those LOINC terms that are defined to be answered by LOINC answer list LL5571-6. Ideally, this could be intentionally defined as terms where the answer-list property is 'LL5571-6', however at publication time, this property is not supported by the FHIR terminology server at tx.fhir.org."
443441
Id: toc-loinc-answered-by-LL5571-6-vs
444442
* ^experimental = false
445443
* ^copyright = "This material contains content from LOINC (http://loinc.org). LOINC is copyright © 1995-2020, Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes (LOINC) Committee and is available at no cost under the license at http://loinc.org/license. LOINC® is a registered United States trademark of Regenstrief Institute, Inc."
@@ -1342,7 +1340,8 @@ Description: "This value set includes those LOINC terms that included in the DEL
13421340
Id: toc-del-loinc-answered-by-LL5571-6-vs
13431341
* ^experimental = false
13441342
* ^copyright = "This material contains content from LOINC (http://loinc.org). LOINC is copyright © 1995-2020, Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes (LOINC) Committee and is available at no cost under the license at http://loinc.org/license. LOINC® is a registered United States trademark of Regenstrief Institute, Inc."
1345-
* include codes from valueset TocLoincTermsAnsweredByLL5571 and TocDELItemsLOINC
1343+
* include codes from valueset TocLoincTermsAnsweredByLL5571
1344+
* include codes from valueset TocDELItemsLOINC
13461345

13471346

13481347
// ValueSet: TocDelLoincTermsAnsweredByLL251

input/ignoreWarnings.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
%Reference to draft CodeSystem http://terminology.hl7.org/CodeSystem/observation-category|4.2.0%
1919
%Reference to draft CodeSystem http://hl7.org/fhir/narrative-status|4.0.1%
2020
%Reference to draft ValueSet http://hl7.org/fhir/ValueSet/servicerequest-category|4.0.1%
21+
%The extension http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet|5.2.0 is deprecated%
22+
%The extension http://hl7.org/fhir/StructureDefinition/composition-clinicaldocument-versionNumber|5.2.0 is deprecated%
2123

2224
# The values for these category do come from the recommended value sets
2325
%None of the codings provided are in the value set 'Observation Category Codes' (http://hl7.org/fhir/ValueSet/observation-category|4.0.1), and a coding is recommended to come from this value set (codes = http://hl7.org/fhir/us/pacio-pfe/CodeSystem/pfe-category-cs%

0 commit comments

Comments
 (0)