mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-09 22:34:42 +00:00
Code generation
This commit is contained in:
parent
d6c3a9df0b
commit
9dc08c213c
@ -870,10 +870,21 @@ public class ValidationService {
|
||||
}
|
||||
|
||||
for (String profile : cliContext.getProfiles()) {
|
||||
gen.setCanonical(profile);
|
||||
System.out.print("Generate for "+profile);
|
||||
String s = gen.execute();
|
||||
System.out.println(": "+s);
|
||||
if (profile.endsWith("*")) {
|
||||
for (StructureDefinition sd : validationEngine.getContext().fetchResourcesByType(StructureDefinition.class)) {
|
||||
if (sd.getUrl().startsWith(profile.replace("*", ""))) {
|
||||
gen.setCanonical(sd.getUrl());
|
||||
System.out.print("Generate for "+sd.getUrl());
|
||||
String s = gen.execute();
|
||||
System.out.println(": "+s);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
gen.setCanonical(profile);
|
||||
System.out.print("Generate for "+profile);
|
||||
String s = gen.execute();
|
||||
System.out.println(": "+s);
|
||||
}
|
||||
}
|
||||
System.out.println("Done");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user