fhir-net-api (STU3) - DocumentReference POST parsing error - hl7-fhir

Using the fhir-net-api (STU3, ver - 0.93.4.0), when trying to POST a DocumentReference resource, the following error is generated when parsing the resource (body)-
"IndexedElement : is not a correctly formatted Instant"
This is occurring when parsing the value of the "Indexed" attribute, which is of "instant" datatype.
The value being passed is of the form - yyyy-MM-ddTHH:mm:ss+-Offset.
For example - 2005-12-24T09:43:41+11:00
Is there a different format to be used when passing values to "instant" datatypes?

No, your code seems fine. Can I ask you to:
Create an issue in the .NET API tracker so I can solve it and you'll be updated when I do.
Try the latest (0.93.5-beta6) to see if it got solved already?

Related

Microsoft Power Automate - error with flow - Action 'Parse_JSON' failed

I have an error with my flow - Action 'Parse_JSON' failed:
Details:
Unable to process template language expressions in action 'Parse_JSON' inputs at line '0' and column '0': 'Required property 'content' expects a value but got null. Path ''.'.
Please see the screenshot above, it appears when a the file upload feature on the MS Form is not inputted, but as this question on the Form is optional we need this flow to work either when the file upload is present or not.
Many thanks,
Andy
Most likely your JSON is expection data in a field that got null. In the example her I fixed it by adding "null" as a valid value, so "emailadress2" is no longer mandatory.
See also https://powerusers.microsoft.com/t5/General-Power-Automate/Handling-NULL-in-Parse-JSON/td-p/40906

Mailchimp API merge fields - date format

I am using the Mailchimp API to add a new member.
I have defined a custom merge field called ADDED which is the date I added this member to the list. I want this field to be required when submitting it via the API. I defined it as DD/MM/YYYY format (see below):
This is what my json string looks like:
{
"email_address":"email#server.com",
"status":"subscribed",
"merge_fields":
{"USERLEVEL":"1", "BATCH":"999000", "ADDED":"21/04/2020"}
}
As you can see, my format is indeed `dd/mm/yyyy', but when submitting the API request, I get this error message:
**Your merge fields were invalid: Please enter the date**
{"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/",
"title":"Invalid Resource","status":400,
"detail":"Your merge fields were invalid.",
"instance":"1ad6bc0e-7728-45c1-a308-b751247efb5b",
"errors":[{"field":"ADDED","message":"Please enter the date"}]}
Can anyone explain why I am getting this error, when I do seem to have the correctly formatted date in the request?
Thanks.
OK, it seems that the definition of the field as DD/MM/YYYY might only be for reading purposes. but for submitting, it must be done like this:
"ADDED":"2020-04-21T00:00:00.001Z"

Issue while Executing XPath Function in Automation anywhere

I'm trying to use Execute XPath Function in automation anywhere.
In the response I'm getting the value as "MS.Internal.XML.XPath.XPathSelectionIterator"
XPath looks like :
//GetEmployees/Employee/text()
I'm sure that xpath is correct since I have tested with Java code.
Looks like the control is returning an object instead of text string.
Is there a way we can do it ?
Got the answer to this one by trial and error.
Was trying to parse soap response and I believe it was facing an issue with namespace.
got wit working by using the following expression
string(//soap:Envelope/soap:Body/*[name()='GetEmployees']/*name()='Employee'])
Hope this helps and some one could improve it further.

In #ngxs/form-plugin, what is the definition of the properties mentioned in the example?

Please expand your NgxsFormPluginModule description on gitbook.
I just implemented a reactive forms example with #ngxs/form-plugin.
It works great, but it was a bit of a struggle to get it to work; because it was not clear to me that the form state must have these specific properties:
model: YourFormModel,
dirty: boolean,
status: string,
errors: {}
Maybe you could add an explanation of these properties and their intended use?
What are the possible values for status, or is this up to the developer to define?
What type of object is errors and what is it used for? It appears to be empty even when validation fails. errors would suggest it is an array, but the example defines the default as an object?
I am posting this as a question because of your answer here: Where is it best to post questions about ngxs?
status field is supposed to store latest status of FormGroup.
You can see the code that is responsible for its update here.
The possible values for status are defined here.
errors is supposed to contain validation errors for the whole form group.
Its type is ValidationErrors since it's supposed to copy errors from the corresponding form group.
The code responsible for its update is supposedly here.
But there's an unsolved issue with filling it with actual error data., so it's not available yet and you'll have to rely on controls' error data.

VBScript runtime error '800a01b6'

I'm trying to add data to access database, but its prompting a error
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'directory'
/opac/search/form_ac.asp, line 17
asp code of this error is:
' title = ChkString(Request.directory("title"))
description = ChkString(Request.directory("description"))'
As Martha explained in the comments, the ASP Request Object does not have a directory Property. It is used to access Form or Querystring input.
You can find information about it here, f.i..
You say, you had this code working in another environment? Maybe there was a custom class overriding the default Request object. Such an object could have provided a valid "Directory" property.
You could check all included code.

Resources