toDataSample method

DataSample toDataSample(
  1. String? batchId
)

Implementation

DataSample toDataSample(String? batchId) => DataSample(
    id: this.id,
    identifiers: this.identifier.map((it) => it.toIdentifier()).toList(),
    content: this.content.map((k, v) => MapEntry(k, v.toContent())),
    qualifiedLinks: this.qualifiedLinks.map((k, v) => MapEntry(k, v)),
    codes: this.codes.map((it) => it.toCodingReference()).toSet(),
    labels: this.tags.map((it) => it.toCodingReference()).toSet(),
    transactionId: this.transactionId,
    batchId: this.contactId ?? batchId,
    healthcareElementsIds: this.healthElementsIds,
    canvasesIds: this.formIds,
    index: this.index,
    valueDate: this.valueDate,
    openingDate: this.openingDate,
    closingDate: this.closingDate,
    created: this.created,
    modified: this.modified,
    endOfLife: this.endOfLife,
    author: this.author,
    responsible: this.responsible,
    comment: this.comment);