What happens to CSE-relative resourceIDs in attributes of announced resources? - onem2m

Let's say an MN-CSE announces an areaNwkInfo to an IN-CSE. The areaNwkInfoAnnc resource in the IN-CSE has a listOfDevices attribute that contains a list of MN-CSE-relative resourceIDs.
Is that correct? If so, what use are those resourceIDs in the IN-CSE? How, for example would one map those resourceIDs to announced areaNwkDeviceInfoAnncs ?

No, that's not correct. The MN-CSE (as originator of the announced resource request) should set any resource identifier reference to the correct format (as per TS-0001 clause 7.2, latest paragraphs). In your case, SP-relative.
In addition, if I am not wrong, areaNwkInfo resource cannot be announced as per TS-0001 Annex D.5, table D.5-2.

Related

Which Result Content types are valid for discovery and which are valid for non-discovery retrieves?

The oneM2M specs (various versions) seem to be very unclear about what should be returned for various combinations of rcn & fu flags.
can some please clarify? possibly with pointers to spec sections?
for example:
In TS-0001 v2.27, section 8.1.2, the only 'Result Content' type description that mentions discovery is child-resource-references which says "This option can be used within the context of resource discovery mechanisms". Does this imply that none of the other Result Content types can be used within the context of resource discovery mechanisms, since their descriptions do not explicitly allow this?
If that is the case, then why does TS-0004, section (7.2.1.2) talk about both URIList and resourceRefList in Discovery responses? These two things seem to be in conflict.
You may have a look at TS-0001 v4.4.0 table 8.1.2-1 "Summary of Result Content Values". This table, and the text above it, gives an overview about which result content types are allowed for which request type.
Some of the RCN types return just references (or attributes + references). In this case some resource attributes as well as a list of URI's (resource ID's) is returned.
as per my discussion with #andreas-kraft, the answer is:
attributes
attributes+child-resources
attributes+child-resource-references
child-resource-references (default)
original-resource
child-resources
semantic-content

Eventbrite APi : Get ticket /price information for events

Im using Eventbrites api to get information about events. I cant find any price information on the event, even though I can see price information if I check the events page at eventbrite site.
I can see from here that there is an optional property "ticket_availability", but its seems to be non-existing, even though I can see price info on the eventĀ“s eventbrite page)
Further down in the documentation its also mention something called "Ticket class", that should be an anonymous object, but I cant find it anywhere,
(and yes, I have contacted their dev support)
[Accepted answer, cant set it until tomorrow]
Answer from eventbrite:s dev support. If you see this: THANKS!(again) :D
Ticket Classes are the object that we use to represent the prices of an event.
I think this is the endpoint you're looking for:
GET /v3/event/[EVENT ID]/ticket_classes/
https://www.eventbrite.com/developer/v3/endpoints/events/#ebapi-get-events-id-ticket-classes
That will return a list of Ticket Class objects (since events can have more than one price). Here's the documentation on the Ticket Class object it self. The cost field is what you are likely interested in.
I ran into this issue and it turns out ticket_availability is an expansion field for the event endpoints, so you have to request it specifically.
For example, this request:
https://www.eventbriteapi.com/v3/venues/28582043/events/
Would need to become:
https://www.eventbriteapi.com/v3/venues/28582043/events/?expand=ticket_availability
This section of the documentation explains expansions: https://www.eventbrite.com/platform/api#/introduction/expansions
At the top of the documentation for Events you can see the list of expansions that are available for event endpoints: https://www.eventbrite.com/platform/api#/reference/event
ticket_availability doesn't contain the full data on the tickets, so using Ticket Classes as the other answer mentions is the way to go if you need a lot of information about tickets for a particular event. For example:
https://www.eventbriteapi.com/v3/events/216395423537/ticket_classes/for_sale/

Google Drive API Folder/Child ID

Does anyone knows if the google folder id changes over time? Assuming, obviously, the folder is not deleted and recreated.
I'm trying to be limit the quota usage as much as possible, by storing the ID on our side.
Thanks
UPDATE (2015/09/01) Per 'BSEs' comment below.
Sorry, I assumed it is Android (being professionally distorted).
Anyway, to make sure, look at the ID string in question and compare it with the ID you get from drive.google.com > right click > Get link. You should see something like:
https://drive.google.com/open?id=0B1mqwertyasdfghZxCvbItM0E
If the id= string matches your resource ID, you're cool. Sorry for the confusion.
ORIGINAL (incorrect for .NET, applies to GooPlaySvcs/GDAA on Android)
I believe it does.
When testing the ResourceId availability here, I remember getting DriveId in one form immediately in the 'onResult()' callback. Later, when the 'onCompletion()' event occured, the DriveId of the same object looked very different (applies to both file and folder) .
Also, look at Daniel's comment here, it suggests that you should not rely on the value of the DriveId in any moment and use 'equals()'.
The ResourceId would be more appropriate ID to store, shuttle around, etc... DriveId is useless outside the GooPlaySvcs instance. And, based on some hints from Drive-Involved-Googlers, relying on a concrete value of DriveId is dangerous. That makes existence of 'encodeToString() / decodeFromString()' somewhat questionable, right?
Good Luck

How do we represent the Patient's room number in a FHIR resource?

Looking at the FHIR documentation for Patient resource https://www.hl7.org/fhir/patient.html I can't find a way to specify a Patient's room number as it pertains to an organization (facility) that they may be associated to. I found the Location resource type https://www.hl7.org/fhir/location.html#Location but don't see how to associated that with a Patient.
Thoughts?
The linkage would be through the Encounter resource.
In v0.0.82 spec on the HL7.org website, the Encounter resource has a set of optional Hospitalization fields. Those in turn can point to Accommodation. One of the Accommodation fields is called 'bed', and refers to a location.
The "Current Build" documentation on github (http://hl7-fhir.github.io/encounter.html), has the Encounter directly referencing a more generic Location. But I've never been able to figure out how to reference these current builds by version number or time-date stamp, and thus: I don't know how long this 2nd paragraph of my reply will remain true/valid.

Has anyone used the ConstraintRelationship class for Dynamics CRM?

As documented here there is a property on the AppointmentRequest class for the CRM webservice that allows you to add constraints to what possible appointments are returned from a search.
The actual constraint is specified as an xml string, but I can find almost no documentation about it. Can any one point me to any relevant resources?
I was never able to find any quality documentation on this property or an accepted schema. About all that is available (that I've found) exists on this example from the SDK: Schedule A Resource
You can kind of see how you would limit the search results to a set of resources/users. The list of which properties can be replaced for "name" in the example is in the article ConstraintRelation.Constraints Property.
Hope this helps...

Resources