Search in sources :

Example 26 with DefinedCode

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

the class CodeListParser method processLine.

private void processLine(List<DefinedCode> codes, String[] titles, String[] values) throws Exception {
    DefinedCode c = new DefinedCode();
    c.setId(getColumn(titles, values, "Id"));
    c.setCode(getColumn(titles, values, "Code"));
    c.setDefinition(Utilities.appendPeriod(getColumn(titles, values, "Definition")));
    c.setComment(Utilities.appendPeriod(getColumn(titles, values, "Comment")));
    c.setParent(getColumn(titles, values, "Parent"));
    c.setAbstract(getColumn(titles, values, "Abstract").toUpperCase().equals("Y"));
    codes.add(c);
}
Also used : DefinedCode(org.hl7.fhir.definitions.model.DefinedCode)

Aggregations

DefinedCode (org.hl7.fhir.definitions.model.DefinedCode)19 ArrayList (java.util.ArrayList)8 ElementDefn (org.hl7.fhir.definitions.model.ElementDefn)7 IOException (java.io.IOException)6 ResourceDefn (org.hl7.fhir.definitions.model.ResourceDefn)6 PrimitiveType (org.hl7.fhir.definitions.model.PrimitiveType)5 FHIRException (org.hl7.fhir.exceptions.FHIRException)5 JsonObject (com.google.gson.JsonObject)4 DefinedStringPattern (org.hl7.fhir.definitions.model.DefinedStringPattern)4 TypeDefn (org.hl7.fhir.definitions.model.TypeDefn)4 CommaSeparatedStringBuilder (org.hl7.fhir.utilities.CommaSeparatedStringBuilder)4 FileNotFoundException (java.io.FileNotFoundException)3 UnsupportedEncodingException (java.io.UnsupportedEncodingException)3 ProfiledType (org.hl7.fhir.definitions.model.ProfiledType)3 TypeRef (org.hl7.fhir.definitions.model.TypeRef)3 StructureDefinition (org.hl7.fhir.r5.model.StructureDefinition)3 CSFile (org.hl7.fhir.utilities.CSFile)3 File (java.io.File)2 TransformerException (javax.xml.transform.TransformerException)2 ConstraintStructure (org.hl7.fhir.definitions.model.ConstraintStructure)2