Examples of generateNarrative()


Examples of ca.uhn.fhir.narrative.INarrativeGenerator.generateNarrative()

  private void encodeCompositeElementChildrenToStreamWriter(RuntimeResourceDefinition theResDef, IResource theResource, IElement theElement, JsonGenerator theEventWriter, List<? extends BaseRuntimeChildDefinition> theChildren) throws IOException {
    for (BaseRuntimeChildDefinition nextChild : theChildren) {
      if (nextChild instanceof RuntimeChildNarrativeDefinition) {
        INarrativeGenerator gen = myContext.getNarrativeGenerator();
        if (gen != null) {
          NarrativeDt narr = gen.generateNarrative(theResDef.getResourceProfile(), theResource);
          if (narr != null) {
            RuntimeChildNarrativeDefinition child = (RuntimeChildNarrativeDefinition) nextChild;
            String childName = nextChild.getChildNameByDatatype(child.getDatatype());
            BaseRuntimeElementDefinition<?> type = child.getChildByName(childName);
            encodeChildElementToStreamWriter(theResDef, theResource, theEventWriter, narr, type, childName);
View Full Code Here

Examples of ca.uhn.fhir.narrative.INarrativeGenerator.generateNarrative()

      List<? extends BaseRuntimeChildDefinition> children, boolean theIncludedResource) throws XMLStreamException, DataFormatException {
    for (BaseRuntimeChildDefinition nextChild : children) {
      if (nextChild instanceof RuntimeChildNarrativeDefinition && !theIncludedResource) {
        INarrativeGenerator gen = myContext.getNarrativeGenerator();
        if (gen != null) {
          NarrativeDt narr = gen.generateNarrative(theResDef.getResourceProfile(), theResource);
          if (narr != null) {
            RuntimeChildNarrativeDefinition child = (RuntimeChildNarrativeDefinition) nextChild;
            String childName = nextChild.getChildNameByDatatype(child.getDatatype());
            BaseRuntimeElementDefinition<?> type = child.getChildByName(childName);
            encodeChildElementToStreamWriter(theResDef, theResource, theEventWriter, narr, childName, type, null, theIncludedResource);
View Full Code Here

Examples of ca.uhn.fhir.narrative.INarrativeGenerator.generateNarrative()

    for (BaseRuntimeChildDefinition nextChild : children) {
      if (nextChild instanceof RuntimeChildNarrativeDefinition && !theIncludedResource) {
        INarrativeGenerator gen = myContext.getNarrativeGenerator();
        NarrativeDt narr = theResource.getText();
        if (gen != null && narr.isEmpty()) {
          narr = gen.generateNarrative(theResDef.getResourceProfile(), theResource);
        }
        if (narr != null) {
          RuntimeChildNarrativeDefinition child = (RuntimeChildNarrativeDefinition) nextChild;
          String childName = nextChild.getChildNameByDatatype(child.getDatatype());
          BaseRuntimeElementDefinition<?> type = child.getChildByName(childName);
View Full Code Here

Examples of ca.uhn.fhir.narrative.INarrativeGenerator.generateNarrative()

      List<? extends BaseRuntimeChildDefinition> theChildren) throws IOException {
    for (BaseRuntimeChildDefinition nextChild : theChildren) {
      if (nextChild instanceof RuntimeChildNarrativeDefinition) {
        INarrativeGenerator gen = myContext.getNarrativeGenerator();
        if (gen != null) {
          NarrativeDt narr = gen.generateNarrative(theResDef.getResourceProfile(), theResource);
          if (narr != null) {
            RuntimeChildNarrativeDefinition child = (RuntimeChildNarrativeDefinition) nextChild;
            String childName = nextChild.getChildNameByDatatype(child.getDatatype());
            BaseRuntimeElementDefinition<?> type = child.getChildByName(childName);
            encodeChildElementToStreamWriter(theResDef, theResource, theEventWriter, narr, type, childName);
View Full Code Here

Examples of ca.uhn.fhir.narrative.INarrativeGenerator.generateNarrative()

      throws XMLStreamException, DataFormatException {
    for (BaseRuntimeChildDefinition nextChild : children) {
      if (nextChild instanceof RuntimeChildNarrativeDefinition && !theIncludedResource) {
        INarrativeGenerator gen = myContext.getNarrativeGenerator();
        if (gen != null) {
          NarrativeDt narr = gen.generateNarrative(theResDef.getResourceProfile(), theResource);
          if (narr != null) {
            RuntimeChildNarrativeDefinition child = (RuntimeChildNarrativeDefinition) nextChild;
            String childName = nextChild.getChildNameByDatatype(child.getDatatype());
            BaseRuntimeElementDefinition<?> type = child.getChildByName(childName);
            encodeChildElementToStreamWriter(theResDef, theResource, theEventWriter, narr, childName, type, null, theIncludedResource);
View Full Code Here

Examples of ca.uhn.fhir.narrative.INarrativeGenerator.generateNarrative()

      List<? extends BaseRuntimeChildDefinition> theChildren) throws IOException {
    for (BaseRuntimeChildDefinition nextChild : theChildren) {
      if (nextChild instanceof RuntimeChildNarrativeDefinition) {
        INarrativeGenerator gen = myContext.getNarrativeGenerator();
        if (gen != null) {
          NarrativeDt narr = gen.generateNarrative(theResDef.getResourceProfile(), theResource);
          if (narr != null) {
            RuntimeChildNarrativeDefinition child = (RuntimeChildNarrativeDefinition) nextChild;
            String childName = nextChild.getChildNameByDatatype(child.getDatatype());
            BaseRuntimeElementDefinition<?> type = child.getChildByName(childName);
            encodeChildElementToStreamWriter(theResDef, theResource, theEventWriter, narr, type, childName);
View Full Code Here

Examples of ca.uhn.fhir.narrative.INarrativeGenerator.generateNarrative()

      List<? extends BaseRuntimeChildDefinition> theChildren) throws IOException {
    for (BaseRuntimeChildDefinition nextChild : theChildren) {
      if (nextChild instanceof RuntimeChildNarrativeDefinition) {
        INarrativeGenerator gen = myContext.getNarrativeGenerator();
        if (gen != null) {
          NarrativeDt narr = gen.generateNarrative(theResDef.getResourceProfile(), theResource);
          if (narr != null) {
            RuntimeChildNarrativeDefinition child = (RuntimeChildNarrativeDefinition) nextChild;
            String childName = nextChild.getChildNameByDatatype(child.getDatatype());
            BaseRuntimeElementDefinition<?> type = child.getChildByName(childName);
            encodeChildElementToStreamWriter(theResDef, theResource, theEventWriter, narr, type, childName);
View Full Code Here

Examples of ca.uhn.fhir.narrative.INarrativeGenerator.generateNarrative()

      List<? extends BaseRuntimeChildDefinition> children, boolean theIncludedResource) throws XMLStreamException, DataFormatException {
    for (BaseRuntimeChildDefinition nextChild : children) {
      if (nextChild instanceof RuntimeChildNarrativeDefinition && !theIncludedResource) {
        INarrativeGenerator gen = myContext.getNarrativeGenerator();
        if (gen != null) {
          NarrativeDt narr = gen.generateNarrative(theResDef.getResourceProfile(), theResource);
          if (narr != null) {
            RuntimeChildNarrativeDefinition child = (RuntimeChildNarrativeDefinition) nextChild;
            String childName = nextChild.getChildNameByDatatype(child.getDatatype());
            BaseRuntimeElementDefinition<?> type = child.getChildByName(childName);
            encodeChildElementToStreamWriter(theResDef, theResource, theEventWriter, narr, childName, type, null, theIncludedResource);
View Full Code Here

Examples of ca.uhn.fhir.narrative.INarrativeGenerator.generateNarrative()

    for (BaseRuntimeChildDefinition nextChild : children) {
      if (nextChild instanceof RuntimeChildNarrativeDefinition && !theIncludedResource) {
        INarrativeGenerator gen = myContext.getNarrativeGenerator();
        NarrativeDt narr = theResource.getText();
        if (gen != null && narr.isEmpty()) {
          narr = gen.generateNarrative(theResDef.getResourceProfile(), theResource);
        }
        if (narr != null) {
          RuntimeChildNarrativeDefinition child = (RuntimeChildNarrativeDefinition) nextChild;
          String childName = nextChild.getChildNameByDatatype(child.getDatatype());
          BaseRuntimeElementDefinition<?> type = child.getChildByName(childName);
View Full Code Here

Examples of ca.uhn.fhir.narrative.INarrativeGenerator.generateNarrative()

  private void encodeCompositeElementChildrenToStreamWriter(RuntimeResourceDefinition theResDef, IResource theResource, IElement theElement, JsonGenerator theEventWriter, List<? extends BaseRuntimeChildDefinition> theChildren) throws IOException {
    for (BaseRuntimeChildDefinition nextChild : theChildren) {
      if (nextChild instanceof RuntimeChildNarrativeDefinition) {
        INarrativeGenerator gen = myContext.getNarrativeGenerator();
        if (gen != null) {
          NarrativeDt narr = gen.generateNarrative(theResDef.getResourceProfile(), theResource);
          if (narr != null) {
            RuntimeChildNarrativeDefinition child = (RuntimeChildNarrativeDefinition) nextChild;
            String childName = nextChild.getChildNameByDatatype(child.getDatatype());
            BaseRuntimeElementDefinition<?> type = child.getChildByName(childName);
            encodeChildElementToStreamWriter(theResDef, theResource, theEventWriter, narr, type, childName);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.