Search in sources :

Example 16 with TypeDefn

use of org.hl7.fhir.definitions.model.TypeDefn in project kindling by HL7.

the class PageProcessor method produceDataTypeTx.

private String produceDataTypeTx(String dtname) throws Exception {
    TypeDefn dt = definitions.getElementDefn(dtname);
    ByteArrayOutputStream bs = new ByteArrayOutputStream();
    TerminologyNotesGenerator tgen = new TerminologyNotesGenerator(bs, this);
    tgen.setNoHeader(true);
    tgen.generate("", dt);
    tgen.close();
    return new String(bs.toByteArray());
}
Also used : TypeDefn(org.hl7.fhir.definitions.model.TypeDefn) TerminologyNotesGenerator(org.hl7.fhir.definitions.generators.specification.TerminologyNotesGenerator) ByteArrayOutputStream(java.io.ByteArrayOutputStream)

Aggregations

TypeDefn (org.hl7.fhir.definitions.model.TypeDefn)10 StructureDefinition (org.hl7.fhir.r5.model.StructureDefinition)7 IOException (java.io.IOException)5 FHIRException (org.hl7.fhir.exceptions.FHIRException)5 FileNotFoundException (java.io.FileNotFoundException)4 UnsupportedEncodingException (java.io.UnsupportedEncodingException)4 ArrayList (java.util.ArrayList)4 ElementDefn (org.hl7.fhir.definitions.model.ElementDefn)4 ResourceDefn (org.hl7.fhir.definitions.model.ResourceDefn)4 TypeRef (org.hl7.fhir.definitions.model.TypeRef)4 JsonObject (com.google.gson.JsonObject)3 TransformerException (javax.xml.transform.TransformerException)3 DefinedCode (org.hl7.fhir.definitions.model.DefinedCode)3 XhtmlNode (org.hl7.fhir.utilities.xhtml.XhtmlNode)3 ProfileGenerator (org.hl7.fhir.definitions.generators.specification.ProfileGenerator)2 BindingSpecification (org.hl7.fhir.definitions.model.BindingSpecification)2 ElementDefinition (org.hl7.fhir.r5.model.ElementDefinition)2 JsonArray (com.google.gson.JsonArray)1 JsonPrimitive (com.google.gson.JsonPrimitive)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1