smilecdr / FHIR.ts

TypeScript/JavaScript FHIR Library
https://www.npmjs.com/package/@smile-cdr/fhirts
Apache License 2.0
37 stars 10 forks source link

FHIR r4 Allows undefined resourceType #37

Closed TahaAttari closed 1 year ago

TahaAttari commented 1 year ago
export declare class Resource {
    resourceType?: string;
    id?: Id;
    meta?: Meta;
    implicitRules?: Uri;
    language?: Code;
}

It doesn't make sense for resourceType to be optional, is there any case where a resource is valid with no resourceType?