Comments (4)
Can you give me an full example code?
from hl7v2.
/* eslint-disable react/state-in-constructor */
/* eslint-disable import/no-unresolved */
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable react/jsx-props-no-spreading */
import cal from '@iatric/fastlane-client-app-library';
import React, { Component } from 'react';
//import { Card, CardBody, CardHeader, Col, Row } from 'reactstrap';
import classes from './message.css';
const { HL7Message } = require('hl7v2')
const { ContentArea } = cal;
class Message extends Component {
constructor(props) {
super(props);
this.state = {
messenger: null,
message: null,
hl7: null
};
const msg = new HL7Message()
console.log(msg)
msg.add('MSH')
console.log(msg)
//const msg2 = HL7Message.parse('MSH|^~\\&|A^B^C^D')
//console.log(msg2)
}
render() {
return (
<ContentArea header="Message 2">
{/*<div>{this.state.hl7}</div>*/}
</ContentArea>
);
}
}
export default Message;
I get results from the initial console.log after instantiating msg, but after that doing the msg.add('MSH') does not console log also my render doesn't get displayed. It does if I comment out the msg.add('MSH')
from hl7v2.
Hi, the library is built to be use in NodeJS applications and didn't tested with any browser. The library loads dictionary files on the fly when it needs. You can use browserify to bundle whole library files into one file to use in browser.
from hl7v2.
Thanks for the input.
from hl7v2.
Related Issues (19)
- getting value of array elements HOT 1
- Example client & server - with some code HOT 1
- \n replace in test message HOT 1
- How to process all ADT messages? HOT 2
- "Encoding not recognized" error message HOT 3
- Null value handling HOT 1
- Custom (Z) segment support HOT 3
- Set HL7 dictionary version when receiving a message HOT 1
- Add component to a field HOT 1
- How to return two HL7 messages in one callback HOT 1
- Wrong Message Control ID used in sendReceive? HOT 2
- Default message timezone support is missing HOT 1
- Time fractions (ms) not decoded from Date/Time and Time HOT 1
- Documentation HOT 1
- [ERROR] this._data[0].value = value; TypeError: Cannot create property 'value' on string 'Y' HOT 2
- Can't send the HL7v2 message to DCM4CHEE HOT 7
- Any Example on how to use it HOT 1
- Include an example server.js HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hl7v2.