Skip to content

Commit

Permalink
updated loinc & loinc answer class
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanwilliammd committed Nov 29, 2024
1 parent 535b7d4 commit e143314
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
51 changes: 51 additions & 0 deletions src/Terminology/Loinc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php

namespace Satusehat\Integration\Terminology;

use Illuminate\Database\Eloquent\Model;

/**
* Satusehat\Integration\Models\Loinc.
*
* @property string $LOINC_NUM
* @property string $COMPONENT
* @property string $PROPERTY
* @property string $TIME_ASPCT
* @property string $SYSTEM
* @property string $SCALE_TYP
* @property string $METHOD_TYP
* @property string $CLASS
* @property string $CLASSTYPE
* @property string $LOINC_COMMON_NAME
* @property string $SHORTNAME
* @property string $STATUS
* @property string $VersionFirstReleased
* @property string $VersionLastChanged
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
*/
class Loinc extends Model
{
public $table;

public $guarded = [];

public function __construct(array $attributes = [])
{
if (! isset($this->connection)) {
$this->setConnection(config('satusehatintegration.database_connection_master'));
}

if (! isset($this->table)) {
$this->setTable(config('satusehatintegration.loinc_table_name'));
}

parent::__construct($attributes);
}

protected $primaryKey = 'id';

public $incrementing = false;

protected $casts = [];
}
46 changes: 46 additions & 0 deletions src/Terminology/LoincAnswer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php

namespace Satusehat\Integration\Terminology;

use Illuminate\Database\Eloquent\Model;

/**
* Satusehat\Integration\Models\LoincAnswer.
*
* @property string $LoincNumber
* @property string $AnswerListId
* @property string $AnswerListName
* @property string $AnswerStringId
* @property integer $SequenceNumber
* @property string $DisplayText
* @property string $ExtCodeId
* @property string $ExtCodeDisplayName
* @property string $ExtCodeSystem
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
*/
class LoincAnswer extends Model
{
public $table;

public $guarded = [];

public function __construct(array $attributes = [])
{
if (! isset($this->connection)) {
$this->setConnection(config('satusehatintegration.database_connection_master'));
}

if (! isset($this->table)) {
$this->setTable(config('satusehatintegration.loinc_answer_table_name'));
}

parent::__construct($attributes);
}

protected $primaryKey = 'id';

public $incrementing = false;

protected $casts = [];
}

0 comments on commit e143314

Please sign in to comment.