use of org.hl7.fhir.r5.model.NamingSystem in project org.hl7.fhir.core by hapifhir.
the class TurtleTests method test_namingsystem_example_id.
@Test
public void test_namingsystem_example_id() throws FileNotFoundException, IOException, Exception {
System.out.println("namingsystem-example-id.ttl");
new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\namingsystem-example-id.ttl"));
}
use of org.hl7.fhir.r5.model.NamingSystem in project org.hl7.fhir.core by hapifhir.
the class TurtleTests method test_namingsystem_example_replaced.
@Test
public void test_namingsystem_example_replaced() throws FileNotFoundException, IOException, Exception {
System.out.println("namingsystem-example-replaced.ttl");
new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\namingsystem-example-replaced.ttl"));
}
use of org.hl7.fhir.r5.model.NamingSystem in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeNamingSystemNamingSystemUniqueIdComponent.
protected void composeNamingSystemNamingSystemUniqueIdComponent(Complex parent, String parentType, String name, NamingSystem.NamingSystemUniqueIdComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "uniqueId", name, element, index);
if (element.hasTypeElement())
composeEnum(t, "NamingSystem", "type", element.getTypeElement(), -1);
if (element.hasValueElement())
composeString(t, "NamingSystem", "value", element.getValueElement(), -1);
if (element.hasPreferredElement())
composeBoolean(t, "NamingSystem", "preferred", element.getPreferredElement(), -1);
if (element.hasCommentElement())
composeString(t, "NamingSystem", "comment", element.getCommentElement(), -1);
if (element.hasPeriod())
composePeriod(t, "NamingSystem", "period", element.getPeriod(), -1);
}
use of org.hl7.fhir.r5.model.NamingSystem in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeNamingSystemNamingSystemContactComponent.
protected void composeNamingSystemNamingSystemContactComponent(Complex parent, String parentType, String name, NamingSystem.NamingSystemContactComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "contact", name, element, index);
if (element.hasNameElement())
composeString(t, "NamingSystem", "name", element.getNameElement(), -1);
for (int i = 0; i < element.getTelecom().size(); i++) composeContactPoint(t, "NamingSystem", "telecom", element.getTelecom().get(i), i);
}
use of org.hl7.fhir.r5.model.NamingSystem in project org.hl7.fhir.core by hapifhir.
the class DataRenderer method isCanonical.
private boolean isCanonical(String path) {
if (!path.endsWith(".url"))
return false;
String t = path.substring(0, path.length() - 4);
StructureDefinition sd = getContext().getWorker().fetchTypeDefinition(t);
if (sd == null)
return false;
if (Utilities.existsInList(t, VersionUtilities.getCanonicalResourceNames(getContext().getWorker().getVersion()))) {
return true;
}
if (Utilities.existsInList(t, "ActivityDefinition", "CapabilityStatement", "CapabilityStatement2", "ChargeItemDefinition", "Citation", "CodeSystem", "CompartmentDefinition", "ConceptMap", "ConditionDefinition", "EventDefinition", "Evidence", "EvidenceReport", "EvidenceVariable", "ExampleScenario", "GraphDefinition", "ImplementationGuide", "Library", "Measure", "MessageDefinition", "NamingSystem", "PlanDefinition"))
return true;
return sd.getBaseDefinitionElement().hasExtension("http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super");
}
Aggregations