MML Processing Instruction command mmlResult |
mmlResultThis is the command used in the return result for Query, Append and Delete in the MML data.
This action is set to return the message as a return message for the above 3 commands.
The mmlResult command requires 4 additional fields: status, continue, partNo, and reqId. The reqId format is the same as that of the query previously described.
To identify that a document is an electronic document of results for a document requested by mmlAppend, mmlDelete, or mmlQuery as previously described, the reqId that was received is set for return.
A response as to whether or not reception of an electronic document (message) corresponding to reqId, requested by the aforementioned mmlAppend, mmlDelete, and mmlQuery, was successful is returned to Status. If the message is received, a lower case success character string is returned. If not, a lower case failed character string is returned. The errorReason field can be returned as an option field. In errorReason, the reason for error is returned when the status has failed.
The following is defined for the errorReason value. All values must be upper case character strings as shown below.
Error value
Explanation
SYSTEMERROR
Some sort of system error on receiving system side
HEADERINVALID
Invalid
information NOTSUPPORTED
Processing of requested electronic document is not supported.
REQUESTDENIED
Processing of requested electronic document is denied. (For example, service is currently suspended.)
continue indicates whether all data have been returned with this message. continue=true indicates that there is the same reqId message other than this message.
continue=false indicates that it is the last message for request of reqId.
partNo shows serial numbers when the message is separated into multiple blocks. Numbers beginning from 0 must be entered in partNo for return.
The following gives an example.
Example: A referral request was received and was a success, but since diagnosis information did not exist, a module-unit request failed.
Note: Essential elements and essential attributes that are not directly related to the comment are omitted.
--------------------------------------------------------
<Mml>
<?mmlResult status="success" continue="false" partNo="0"
reqid="0aae5960-667c-11d3-9751-00105a6792e8"?>
<MmlHeader>
<masterId>
<mmlCm:Id
mmlCm:type="facility"
mmlCm:checkDigitSchema="M10"
mmlCm:checkDigit="5"
mmlCm:tableId="JPN453010100003" >
12345678
</mmlCm:Id>
</masterId>
</MmlHeader>
<MmlBody>
<MmlModuleItem type="registeredDiagnosis">
<?mmlItemResult status="failed" errorRason="NOTHINGDATA"
reqid=" 0aae5960-667c-11d3-9751-00105a67"?>
</MmlModuleItem>
</MmlBody>
<Mml>--------------------------------------------------------