Skip to content

Commit

Permalink
Error checks code refactors generate docs (#95)
Browse files Browse the repository at this point in the history
* Regenerate docs

* The first segment to an empty Message should always be MSH

* Add missing files

* Misc code refactor

* Composer update

* Bump PHP to 8.1

* Refactor test

* Run actions on pushing to all branches
  • Loading branch information
senaranya authored Jun 24, 2023
1 parent b0713e6 commit 851e267
Show file tree
Hide file tree
Showing 47 changed files with 16,316 additions and 1,357 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

Expand All @@ -11,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '8.0', '8.1', '8.2' ]
php-versions: [ 8.1', '8.2' ]
name: PHP ${{ matrix.php-versions }} Test on ubuntu-latest
steps:
- name: Checkout
Expand Down
58 changes: 42 additions & 16 deletions .phpdoc-md
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
<?php

use Aranyasen\HL7;
use Aranyasen\HL7\Segments\PV1;
use Aranyasen\HL7\Segments\ORC;
use Aranyasen\HL7\Segments\OBX;
use Aranyasen\HL7\Segments\OBR;
use Aranyasen\HL7\Segments\AIG;
use Aranyasen\HL7\Segments\AIL;
use Aranyasen\HL7\Segments\AIP;
use Aranyasen\HL7\Segments\DG1;
use Aranyasen\HL7\Segments\NTE;
use Aranyasen\HL7\Segments\IN3;
use Aranyasen\HL7\Segments\EQU;
use Aranyasen\HL7\Segments\EVN;
use Aranyasen\HL7\Segments\FHS;
use Aranyasen\HL7\Segments\FTS;
use Aranyasen\HL7\Segments\GT1;
use Aranyasen\HL7\Segments\IN1;
use Aranyasen\HL7\Segments\PID;
use Aranyasen\HL7\Segments\IN3;
use Aranyasen\HL7\Segments\MRG;
use Aranyasen\HL7\Segments\MSA;
use Aranyasen\HL7\Segments\MSH;
use Aranyasen\HL7\Segments\EVN;
use Aranyasen\HL7\Segments\EQU;
use Aranyasen\HL7\Segments\NK1;
use Aranyasen\HL7\Segments\NTE;
use Aranyasen\HL7\Segments\OBR;
use Aranyasen\HL7\Segments\OBX;
use Aranyasen\HL7\Segments\ORC;
use Aranyasen\HL7\Segments\PID;
use Aranyasen\HL7\Segments\PV1;
use Aranyasen\HL7\Segments\PV2;
use Aranyasen\HL7\Segments\RGS;
use Aranyasen\HL7\Segments\SAC;
use Aranyasen\HL7\Segments\SCH;
use Aranyasen\HL7\Segments\TQ1;
use Aranyasen\HL7\Segment;
use Aranyasen\HL7\Messages\ACK;
use Aranyasen\HL7\Message;
Expand All @@ -24,22 +37,35 @@ return (object)[
'destDirectory' => 'docs',
'format' => 'github',
'classes' => [
Connection::class,
Message::class,
ACK::class,
Segment::class,
MSH::class,
PID::class,
ACK::class,
Connection::class,
AIG::class,
AIL::class,
AIP::class,
DG1::class,
EQU::class,
EVN::class,
FHS::class,
FTS::class,
GT1::class,
IN1::class,
IN3::class,
MRG::class,
MSA::class,
MSH::class,
NK1::class,
NTE::class,
DG1::class,
OBR::class,
OBX::class,
ORC::class,
PID::class,
PV1::class,
EVN::class,
EQU::class,
PV2::class,
RGS::class,
SAC::class,
SCH::class,
TQ1::class,
],
];
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 Aranya Sen
Copyright (c) 2017-2023 Aranya Sen

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<a href="https://packagist.org/packages/aranyasen/hl7"><img src="https://poser.pugx.org/aranyasen/hl7/license" alt="License"></a>
</p>

**Important: Minimum supported PHP version has been updated to 8.0 <br>
Last supported versions: <br>
-> PHP 7.0 or 7.1 => [1.5.4](https://github.com/senaranya/HL7/tree/1.5.4)<br>
**Important: "new Message()" is deprecated and could be removed in a future release. Use HL7 factory class instead. See documents below <br><br>
Final releases for old PHP versions: <br>
-> PHP 7.0/7.1 => [1.5.4](https://github.com/senaranya/HL7/tree/1.5.4)<br>
-> PHP 7.2 => [2.0.2](https://github.com/senaranya/HL7/tree/2.0.2)<br>
-> PHP 7.4 => [2.1.7](https://github.com/senaranya/HL7/tree/2.1.7)**

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"minimum-stability": "dev",
"prefer-stable" : true,
"require": {
"php": "^8.0",
"php": ">=8.1",
"ext-mbstring": "*"
},
"require-dev": {
Expand Down
Loading

0 comments on commit 851e267

Please sign in to comment.