Package org.hl7.fhir.dstu2.utils
Class NarrativeGenerator
- java.lang.Object
-
- org.hl7.fhir.dstu2.utils.NarrativeGenerator
-
- All Implemented Interfaces:
INarrativeGenerator
public class NarrativeGenerator extends Object implements INarrativeGenerator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classNarrativeGenerator.ResourceWithReference
-
Constructor Summary
Constructors Constructor Description NarrativeGenerator(String prefix, String basePath, IWorkerContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringdisplayContactPoint(ContactPoint contact)static StringdisplayHumanName(HumanName name)static StringdisplayPeriod(Period p)voidgenerate(ConceptMap cm)voidgenerate(Conformance conf)voidgenerate(DomainResource r)voidgenerate(OperationDefinition opd)voidgenerate(OperationOutcome op)This generate is optimised for the build tool in that it tracks the source extension.voidgenerate(ValueSet vs, boolean header)This generate is optimised for the FHIR build process itself in as much as it generates hyperlinks in the narrative that are only going to be correct for the purposes of the build.voidgenerate(ValueSet vs, ValueSet src, boolean header)Stringgenerate(Element doc)org.hl7.fhir.utilities.xhtml.XhtmlNodegenerateDocumentNarrative(Bundle feed)ElementgetNarrative(Element er)StringgetTooCostlyNote()booleanisPretty()voidsetPretty(boolean pretty)NarrativeGeneratorsetTooCostlyNote(String tooCostlyNote)
-
-
-
Constructor Detail
-
NarrativeGenerator
public NarrativeGenerator(String prefix, String basePath, IWorkerContext context)
-
-
Method Detail
-
getTooCostlyNote
public String getTooCostlyNote()
-
setTooCostlyNote
public NarrativeGenerator setTooCostlyNote(String tooCostlyNote)
-
generate
public void generate(DomainResource r) throws EOperationOutcome, org.hl7.fhir.exceptions.FHIRException, IOException
- Throws:
EOperationOutcomeorg.hl7.fhir.exceptions.FHIRExceptionIOException
-
generate
public String generate(Element doc) throws IOException
- Throws:
IOException
-
displayPeriod
public static String displayPeriod(Period p)
-
displayHumanName
public static String displayHumanName(HumanName name)
-
displayContactPoint
public static String displayContactPoint(ContactPoint contact)
-
generate
public void generate(ConceptMap cm)
-
getNarrative
public Element getNarrative(Element er)
-
generate
public void generate(ValueSet vs, boolean header)
This generate is optimised for the FHIR build process itself in as much as it generates hyperlinks in the narrative that are only going to be correct for the purposes of the build. This is to be reviewed in the future.- Parameters:
vs-codeSystems-- Throws:
Exception
-
generate
public void generate(OperationOutcome op) throws org.hl7.fhir.exceptions.DefinitionException
This generate is optimised for the build tool in that it tracks the source extension. But it can be used for any other use.- Parameters:
vs-codeSystems-- Throws:
org.hl7.fhir.exceptions.DefinitionExceptionException
-
generate
public void generate(OperationDefinition opd) throws EOperationOutcome, org.hl7.fhir.exceptions.FHIRException, IOException
- Throws:
EOperationOutcomeorg.hl7.fhir.exceptions.FHIRExceptionIOException
-
generate
public void generate(Conformance conf)
-
generateDocumentNarrative
public org.hl7.fhir.utilities.xhtml.XhtmlNode generateDocumentNarrative(Bundle feed)
-
isPretty
public boolean isPretty()
-
setPretty
public void setPretty(boolean pretty)
-
-