47
47
import org .hl7 .fhir .r5 .model .StructureDefinition .StructureDefinitionKind ;
48
48
import org .hl7 .fhir .r5 .model .StructureDefinition .TypeDerivationRule ;
49
49
import org .hl7 .fhir .r5 .model .ValueSet ;
50
+ import org .hl7 .fhir .r5 .utils .UserDataNames ;
50
51
import org .hl7 .fhir .r5 .utils .XVerExtensionManager ;
51
52
import org .hl7 .fhir .utilities .LoincLinker ;
52
53
import org .hl7 .fhir .utilities .Utilities ;
@@ -426,7 +427,7 @@ else if ((bc.getUrl().startsWith(canonical) || (altCanonical != null && bc.getUr
426
427
if (r .getConfig () == null )
427
428
findConfiguration (f , r );
428
429
JsonObject e = r .getConfig ();
429
- bc .setUserData ("config" , e );
430
+ bc .setUserData (UserDataNames . pub_resource_config , e );
430
431
String base = getProperty (r , "base" );
431
432
if (base != null )
432
433
bc .setWebPath (doReplacements (base , r , null , null ));
@@ -449,7 +450,7 @@ public void checkForPath(FetchedFile f, FetchedResource r, Element res) throws F
449
450
if (r .getConfig () == null )
450
451
findConfiguration (f , r );
451
452
JsonObject e = r .getConfig ();
452
- res .setUserData ("config" , e );
453
+ res .setUserData (UserDataNames . pub_resource_config , e );
453
454
String base = getProperty (r , "base" );
454
455
if (base != null )
455
456
res .setWebPath (doReplacements (base , r , null , null ));
@@ -586,7 +587,7 @@ else if (ref.equals("http://www.iso.org/iso/country_codes.htm"))
586
587
br .url = vs .getWebPath ();
587
588
br .display = vs .getName ();
588
589
br .uri = vs .getVersionedUrl ();
589
- br .external = vs .hasUserData ("External.Link" );
590
+ br .external = vs .hasUserData (UserDataNames . render_external_link );
590
591
}
591
592
} else {
592
593
if (ref .startsWith ("http://hl7.org/fhir/ValueSet/" )) {
@@ -595,7 +596,7 @@ else if (ref.equals("http://www.iso.org/iso/country_codes.htm"))
595
596
br .url = vs .getWebPath ();
596
597
br .display = vs .getName ();
597
598
br .uri = vs .getUrl ();
598
- br .external = vs .hasUserData ("External.Link" );
599
+ br .external = vs .hasUserData (UserDataNames . render_external_link );
599
600
} else {
600
601
String nvref = ref ;
601
602
if (nvref .contains ("|" )) {
@@ -641,7 +642,7 @@ else if (ref.equals("http://www.iso.org/iso/country_codes.htm"))
641
642
br .display = vs .getName ();
642
643
}
643
644
br .uri = vs .getUrl ();
644
- br .external = vs .hasUserData ("External.Link" );
645
+ br .external = vs .hasUserData (UserDataNames . render_external_link );
645
646
} else if (ref .startsWith ("http://cts.nlm.nih.gov/fhir/ValueSet/" )) {
646
647
String oid = ref .substring ("http://cts.nlm.nih.gov/fhir/ValueSet/" .length ());
647
648
br .url = "https://vsac.nlm.nih.gov/valueset/" +oid +"/expansion" ;
0 commit comments