Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
07/17/08 15:20:10 (6 months ago)
Author:
catullus
Message:

sync-bidrectional: partly merge

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/data_synchronization_bidirectional

    • Property svn:ignore changed from
      build*
      dist*
      ${env.CATALINA_HOME}
      docs
      .metadata
      setup.inf
      setup.rpt
      to
      build*
      dist*
      ${env.CATALINA_HOME}
      docs
      .metadata
      setup.inf
      setup.rpt
      *.iws
      *.ipr
      *.iml
  • openmrs/branches/data_synchronization_bidirectional/src/api/org/openmrs/Concept.java

    r4295 r4969  
    4545        private Integer conceptId; 
    4646        private Boolean retired = false; 
     47        private User retiredBy; 
     48        private Date dateRetired; 
     49        private String retireReason; 
    4750        private ConceptDatatype datatype; 
    4851        private ConceptClass conceptClass; 
     
    8487                synonyms = new HashSet<ConceptSynonym>(); 
    8588                conceptSets = new HashSet<ConceptSet>(); 
    86                 //conceptNumeric = new ConceptNumeric(); 
    8789        } 
    8890 
     
    334336         */ 
    335337        public ConceptName getName(Locale locale, boolean exact) { 
     338                 
     339                // fail early if this concept has no names defined 
     340                if (getNames() == null || getNames().size() == 0) { 
     341                        log.debug("there are no names defined for: " + conceptId); 
     342                        return null; 
     343                } 
     344                 
    336345                log.debug("Getting conceptName for locale: " + locale); 
    337346                 
     
    343352 
    344353                String desiredLanguage = locale.getLanguage(); 
    345                 String desiredCountry = locale.getCountry(); 
    346  
     354                //String desiredCountry = locale.getCountry(); 
     355                 
    347356                for (Iterator<ConceptName> i = getNames().iterator(); i.hasNext();) { 
    348357                        ConceptName possibleName = i.next(); 
     
    449458 
    450459        /** 
     460     * @return the retiredBy 
     461     */ 
     462    public User getRetiredBy() { 
     463        return retiredBy; 
     464    } 
     465 
     466        /** 
     467     * @param retiredBy the retiredBy to set 
     468     */ 
     469    public void setRetiredBy(User retiredBy) { 
     470        this.retiredBy = retiredBy; 
     471    } 
     472 
     473        /** 
     474     * @return the dateRetired 
     475     */ 
     476    public Date getDateRetired() { 
     477        return dateRetired; 
     478    } 
     479 
     480        /** 
     481     * @param dateRetired the dateRetired to set 
     482     */ 
     483    public void setDateRetired(Date dateRetired) { 
     484        this.dateRetired = dateRetired; 
     485    } 
     486 
     487        /** 
     488     * @return the retireReason 
     489     */ 
     490    public String getRetireReason() { 
     491        return retireReason; 
     492    } 
     493 
     494        /** 
     495     * @param retireReason the retireReason to set 
     496     */ 
     497    public void setRetireReason(String retireReason) { 
     498        this.retireReason = retireReason; 
     499    } 
     500 
     501        /** 
    451502         * @return Returns the synonyms. 
    452503         */