toJsonLd method

  1. @override
Map<String, dynamic> toJsonLd()
override

Serialize SchemaMedicalProcedure to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'MedicalProcedure',
      'bodyLocation': convertToJsonLd(bodyLocation, [String]),
      'followup': convertToJsonLd(followup, [String]),
      'howPerformed': convertToJsonLd(howPerformed, [String]),
      'preparation':
          convertToJsonLd(preparation, [SchemaMedicalEntity, String]),
      'procedureType':
          convertToJsonLd(procedureType, [SchemaMedicalProcedureType]),
      'status': convertToJsonLd(
          status, [SchemaEventStatusType, SchemaMedicalStudyStatus, String]),
    });