Difference between revisions of "Default Languages"

From HL7Wiki
Jump to navigation Jump to search
 
 
Line 4: Line 4:
 
Other methods like lookupConceptCodesByDesignation specify that language is optional, and they use the default language if none is provided.  This method does not specify that language is optional, so it throws an exception if you don't pass a langauge.
 
Other methods like lookupConceptCodesByDesignation specify that language is optional, and they use the default language if none is provided.  This method does not specify that language is optional, so it throws an exception if you don't pass a langauge.
  
My two suggestions are:
+
My two suggestions are:<br>
a) make the language parameter of lookupDesignation optional.
+
a) make the language parameter of lookupDesignation optional.<br>
  
 
b) specify that the first language returned in the array of supported languages is the default language.
 
b) specify that the first language returned in the array of supported languages is the default language.

Latest revision as of 21:28, 20 April 2005

Message: Since the default language isn't accessable through the API, and the Runtime method lookupDesignation requires that a language be provided, it is hard for a CTS client to know what a good language is to ask for. They can get a list of all available languages, but they don't know what the default is.

Other methods like lookupConceptCodesByDesignation specify that language is optional, and they use the default language if none is provided. This method does not specify that language is optional, so it throws an exception if you don't pass a langauge.

My two suggestions are:
a) make the language parameter of lookupDesignation optional.

b) specify that the first language returned in the array of supported languages is the default language.